Skip to contentSkip to conversation

staging: et131x: Implement NAPI support

PATCH New Mark Einon 1 participant 1 message Aug 21, 2014 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore

Mark Einon

author
#1 lore raw

PATCH v2 8/8 staging: et131x: Implement NAPI support

In reply to a message not in the archive

This implements NAPI support for et131x by:

-adding a napi_struct to the private adapter struct -changing netfif_rx_skb() call to netif_receive_skb() -changing et131x_handle_recv_interrupt() to et131x_handle_recv_pkts()
and taking a budget allocation.
-changing et131x_handle_send_interrupt() to et131x_handle_send_pkts() -replacing bottom half workqueue with poll function which handles
send & receive of skbs.
-adding various other necessary standard napi calls.

Also remove this item from the README TODO list.

---

Updated after Stephen Hemminger commented that using a negative variable isn't such a good idea (bool not_done -> bool done).

 drivers/staging/et131x/README   |   1 -
 drivers/staging/et131x/et131x.c | 112 ++++++++++++++++++----------------------
 2 files changed, 50 insertions(+), 63 deletions(-)
drivers/staging/et131x/README +0 -1
index 3befc45..05555a3 100644
@@ -10,7 +10,6 @@ driver as they did not build properly at the time.
 TODO:
 	- Look at reducing the number of spinlocks
 	- Simplify code in nic_rx_pkts(), when determining multicast_pkts_rcvd
-	- Implement NAPI support
 	- In et131x_tx(), don't return NETDEV_TX_BUSY, just drop the packet with kfree_skb().
 	- Reduce the number of split lines by careful consideration of variable names etc.
 
drivers/staging/et131x/et131x.c +50 -62

214 lines not on this page · raw message

Signature · 1 line
2.1.0