From: Felix Fietkau Date: Mon, 11 Aug 2008 14:36:50 +0000 (+0000) Subject: madwifi: napi polling fix - fix u_int negative comparison - add some reserve for... X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=5745e536d410a5f3b4a1e261a627cb98eb5e7e35;p=openwrt%2Fstaging%2Fkaloz.git madwifi: napi polling fix - fix u_int negative comparison - add some reserve for polling packets (ff has two frames in one descriptor) SVN-Revision: 12280 --- diff --git a/package/madwifi/patches/300-napi_polling.patch b/package/madwifi/patches/300-napi_polling.patch index 609e74cd21..0d7b566b8d 100644 --- a/package/madwifi/patches/300-napi_polling.patch +++ b/package/madwifi/patches/300-napi_polling.patch @@ -234,7 +234,7 @@ +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24) + processed++; +#endif -+ if (rx_limit-- < 0) { ++ if (rx_limit-- < 2) { + early_stop = 1; + break; + }