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)
commit0dde80268ee0a5a1511935bdb9c547191d616aa9
treedbd67e401f549d480908765bd5b8ef8a11a0f3a4
parent734d2725db879f3f6fcdc2b1d2a5deae105f5e95
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