fix madwifi napi polling packet counting
authorFelix Fietkau <nbd@openwrt.org>
Sat, 16 Aug 2008 17:00:13 +0000 (17:00 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 16 Aug 2008 17:00:13 +0000 (17:00 +0000)
final fix for #3880

SVN-Revision: 12323

package/madwifi/patches/300-napi_polling.patch

index 0d7b566..fae35b5 100644 (file)
                        break;
                }
 +
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24)
-+              processed++;
-+#endif
 +              if (rx_limit-- < 2) {
 +                      early_stop = 1;
 +                      break;
 +              }
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24)
++              processed++;
++#endif
 +
                skb = bf->bf_skb;
                if (skb == NULL) {