summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorDavid S. Miller <davem@sunset.davemloft.net>2007-10-11 18:08:29 -0700
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-11 18:08:29 -0700
commit6f535763165331bb91277d7519b507fed22034e5 (patch)
tree1968a01affa1cce3a3199c455d1fe1ebdca3ff47 /net
parentb08d6cb22c777c8c91c16d8e3b8aafc93c98cbd9 (diff)
downloadlinux-3.10-6f535763165331bb91277d7519b507fed22034e5.tar.gz
linux-3.10-6f535763165331bb91277d7519b507fed22034e5.tar.bz2
linux-3.10-6f535763165331bb91277d7519b507fed22034e5.zip
[NET]: Fix NAPI completion handling in some drivers.
In order for the list handling in net_rx_action() to be correct, drivers must follow certain rules as stated by this comment in net_rx_action(): /* Drivers must not modify the NAPI state if they * consume the entire weight. In such cases this code * still "owns" the NAPI instance and therefore can * move the instance around on the list at-will. */ A few drivers do not do this because they mix the budget checks with reading hardware state, resulting in crashes like the one reported by takano@axe-inc.co.jp. BNX2 and TG3 are taken care of here, SKY2 fix is from Stephen Hemminger. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions