diff options
author | Sowmini Varadhan <sowmini.varadhan@oracle.com> | 2014-10-25 15:12:12 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-10-25 16:20:15 -0400 |
commit | 69088822abe7a09145fc86e1d5dd4996e29abc2d (patch) | |
tree | 8a9d646a416fc472c68bc7e9c2c67727547f357a /drivers/net/ethernet/sun/sunvnet.h | |
parent | 132fb57984e4f4d49c79b2f0749236fe277de1f8 (diff) | |
download | op-kernel-dev-69088822abe7a09145fc86e1d5dd4996e29abc2d.zip op-kernel-dev-69088822abe7a09145fc86e1d5dd4996e29abc2d.tar.gz |
sunvnet: NAPIfy sunvnet
Move Rx packet procssing to the NAPI poll callback.
Disable VIO interrupt and unconditioanlly go into NAPI
context from vnet_event.
Note that we want to minimize the number of LDC
STOP/START messages sent. Specifically, do not send a STOP
message if vnet_walk_rx does not read all the available descriptors
because of the NAPI budget limitation. Instead, note the end index
as part of port state, and resume from this index when the
next poll callback is triggered.
Signed-off-by: Sowmini Varadhan <sowmini.varadhan@oracle.com>
Acked-by: Raghuram Kothakota <raghuram.kothakota@oracle.com>
Acked-by: Dwight Engen <dwight.engen@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/sun/sunvnet.h')
-rw-r--r-- | drivers/net/ethernet/sun/sunvnet.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/net/ethernet/sun/sunvnet.h b/drivers/net/ethernet/sun/sunvnet.h index c911045..c8a862e 100644 --- a/drivers/net/ethernet/sun/sunvnet.h +++ b/drivers/net/ethernet/sun/sunvnet.h @@ -56,6 +56,11 @@ struct vnet_port { struct timer_list clean_timer; u64 rmtu; + + struct napi_struct napi; + u32 napi_stop_idx; + bool napi_resume; + int rx_event; }; static inline struct vnet_port *to_vnet_port(struct vio_driver_state *vio) @@ -97,7 +102,6 @@ struct vnet { struct list_head list; u64 local_mac; - struct tasklet_struct vnet_tx_wakeup; }; #endif /* _SUNVNET_H */ |