]> git.baikalelectronics.ru Git - kernel.git/commit
net: systemport: Only inspect valid switch port & queues
authorFlorian Fainelli <f.fainelli@gmail.com>
Wed, 1 Nov 2017 18:29:47 +0000 (11:29 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Nov 2017 07:49:28 +0000 (16:49 +0900)
commit6fda091f11aaaaa60a37c91eb5e74e6e0dbb9b62
tree28637af1f33673498e0a6cfb250d50b0111bea91
parent78de537efcedffa518e7eb0ef085b83b9b88c96e
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>
drivers/net/ethernet/broadcom/bcmsysport.c
drivers/net/ethernet/broadcom/bcmsysport.h