summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/sun/sunvnet_common.h
diff options
context:
space:
mode:
authorShannon Nelson <shannon.nelson@oracle.com>2017-03-14 20:24:41 +0300
committerDavid S. Miller <davem@davemloft.net>2017-03-17 06:29:54 +0300
commite1f1e5f711265ee9d881afd12ff252b2d01e1174 (patch)
treed973d04b411290eb82d6ca53d2eaab9079df3adf /drivers/net/ethernet/sun/sunvnet_common.h
parent0f512c84544b9a8f8de53b6f4bc0c372c45d8693 (diff)
downloadlinux-e1f1e5f711265ee9d881afd12ff252b2d01e1174.tar.xz
sunvnet: track port queues correctly
Track our used and unused queue indexies correctly. Otherwise, as ports dropped out and returned, they all eventually ended up with the same queue index. Orabug: 25190537 Signed-off-by: Shannon Nelson <shannon.nelson@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/sun/sunvnet_common.h')
-rw-r--r--drivers/net/ethernet/sun/sunvnet_common.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/drivers/net/ethernet/sun/sunvnet_common.h b/drivers/net/ethernet/sun/sunvnet_common.h
index c0fac03cb87a..b20d6fa7ef25 100644
--- a/drivers/net/ethernet/sun/sunvnet_common.h
+++ b/drivers/net/ethernet/sun/sunvnet_common.h
@@ -112,22 +112,15 @@ struct vnet_mcast_entry {
};
struct vnet {
- /* Protects port_list and port_hash. */
- spinlock_t lock;
-
+ spinlock_t lock; /* Protects port_list and port_hash. */
struct net_device *dev;
-
u32 msg_enable;
-
+ u8 q_used[VNET_MAX_TXQS];
struct list_head port_list;
-
struct hlist_head port_hash[VNET_PORT_HASH_SIZE];
-
struct vnet_mcast_entry *mcast_list;
-
struct list_head list;
u64 local_mac;
-
int nports;
};