]> 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)
commit76ec4f01cbf87c58b41bde38547dc803978a346f
tree28637af1f33673498e0a6cfb250d50b0111bea91
parent52d5d2e6b8c9471320756c3cabc1500888d77fa3
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