Skip to contentSkip to conversation

be2net: remove napi from tx path

PATCH New Ajit Khaparde 1 participant 1 message May 17, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 be2net: remove napi from tx path

Hi,
- this patch removes napi in the tx path.
- provides a switch to enable or disable lro.
Please apply the patch to net-2.6

Thanks
Ajit

----

drivers/net/benet/be.h +1 -2
index b4bb06f..6d149a4 100644
@@ -159,8 +159,6 @@ struct be_eq_obj {
 	u16 min_eqd;		/* in usecs */
 	u16 max_eqd;		/* in usecs */
 	u16 cur_eqd;		/* in usecs */
-
-	struct napi_struct napi;
 };
 
 struct be_tx_obj {
@@ -179,6 +177,7 @@ struct be_rx_page_info {
 };
 
 struct be_rx_obj {
+	struct napi_struct napi;
 	struct be_queue_info q;
 	struct be_queue_info cq;
 	struct be_rx_page_info page_info_tbl[RX_Q_LEN];
drivers/net/benet/be_main.c +73 -59

215 lines not on this page · raw message