diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2017-11-01 19:29:47 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-11-02 08:49:28 +0100 |
commit | 3ded76a8ff53fd2a9b011e86c6f3588a984d432d (patch) | |
tree | 28637af1f33673498e0a6cfb250d50b0111bea91 /drivers/net/ethernet/broadcom/bcmsysport.h | |
parent | Merge branch 'nfp-bpf-rename-ALU_OP_NEG-and-support-BPF_NEG' (diff) | |
download | linux-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.h | 1 |
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 */ |