]> git.baikalelectronics.ru Git - kernel.git/commit
myri10ge: Add support for ndo_busy_poll
authorHyong-Youb Kim <hykim@myri.com>
Mon, 19 Aug 2013 09:02:19 +0000 (02:02 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Aug 2013 22:05:37 +0000 (15:05 -0700)
commite9a0af382a2f7cecd2d66e7cca644c5039555911
treedbd67e401f549d480908765bd5b8ef8a11a0f3a4
parent64d5590199e4ba37dd6ca921eb796d869b812849
myri10ge: Add support for ndo_busy_poll

Add the ndo_busy_poll handler. Use skb_mark_napi_id to mark receive
packets with the napi id. For each slice, use per-slice spinlock and
state variable to ensure that only one handler processes receive
pacekts.

Locking, statistics counters, and the ndo_busy_poll handler follow
those in the ixgbe driver. So, credit goes to that driver's authors.

Signed-off-by: Hyong-Youb Kim <hykim@myri.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/myricom/myri10ge/myri10ge.c