summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/sun/sunvnet.h
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2014-10-30 19:56:34 -0400
committerDavid S. Miller <davem@davemloft.net>2014-10-30 19:56:34 -0400
commitf0c65567b3c1b23f79e8a49139580a3872a68d1f (patch)
treec761942e2ba52f6892521ab8b9292628a2850c02 /drivers/net/ethernet/sun/sunvnet.h
parentcd2145358e7a5bb1798a185e5ef199ea49c69dd7 (diff)
parentd51bffd16d39d7fe8b374a5fdebf16210ca41892 (diff)
Merge branch 'sunvnet-multi-tx-queue'
Sowmini Varadhan says: ==================== sunvnet: Use multiple Tx queues. v2: moved tcp fix out of this series per David Miller feedback The primary objective of this patch-set is to address the suggestion from http://marc.info/?l=linux-netdev&m=140790778931563&w=2 With the changes in Patch 2, every vnet_port will get packets from a single tx-queue, and flow-control/head-of-line-blocking is confined to the vnet_ports that share that tx queue (as opposed to flow-controlling *all* peers). Patch 1 is an optimization that resets the DATA_READY bit when we re-enable Rx interrupts. This optimization lets us exit quickly from vnet_event_napi() when new data has not triggered an interrupt. ==================== 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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/sun/sunvnet.h b/drivers/net/ethernet/sun/sunvnet.h
index c8a862e471dd..cd5d343ea232 100644
--- a/drivers/net/ethernet/sun/sunvnet.h
+++ b/drivers/net/ethernet/sun/sunvnet.h
@@ -61,6 +61,7 @@ struct vnet_port {
u32 napi_stop_idx;
bool napi_resume;
int rx_event;
+ u16 q_index;
};
static inline struct vnet_port *to_vnet_port(struct vio_driver_state *vio)
@@ -102,6 +103,7 @@ struct vnet {
struct list_head list;
u64 local_mac;
+ int nports;
};
#endif /* _SUNVNET_H */