summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/broadcom/bcmsysport.h
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2017-11-01 19:29:47 +0100
committerDavid S. Miller <davem@davemloft.net>2017-11-02 08:49:28 +0100
commit3ded76a8ff53fd2a9b011e86c6f3588a984d432d (patch)
tree28637af1f33673498e0a6cfb250d50b0111bea91 /drivers/net/ethernet/broadcom/bcmsysport.h
parentMerge branch 'nfp-bpf-rename-ALU_OP_NEG-and-support-BPF_NEG' (diff)
downloadlinux-3ded76a8ff53fd2a9b011e86c6f3588a984d432d.tar.xz
linux-3ded76a8ff53fd2a9b011e86c6f3588a984d432d.zip
net: systemport: Only inspect valid switch port & queues
Hesoteric board configurations where port 0 is not available would still make SYSTEMPORT inspect the switch port 0, queue 0, which, not being enabled, would cause transmit timeouts over time. Just ignore those unconfigured rings instead. Fixes: 84ff33eeb23d ("net: systemport: Establish DSA network device queue mapping") Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bcmsysport.h')
-rw-r--r--drivers/net/ethernet/broadcom/bcmsysport.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/broadcom/bcmsysport.h b/drivers/net/ethernet/broadcom/bcmsysport.h
index 82f70a6783cb..f5a984c1c986 100644
--- a/drivers/net/ethernet/broadcom/bcmsysport.h
+++ b/drivers/net/ethernet/broadcom/bcmsysport.h
@@ -714,6 +714,7 @@ struct bcm_sysport_tx_ring {
unsigned long bytes; /* bytes statistics */
unsigned int switch_queue; /* switch port queue number */
unsigned int switch_port; /* switch port queue number */
+ bool inspect; /* inspect switch port and queue */
};
/* Driver private structure */