OSDN Git Service

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)
commit3ded76a8ff53fd2a9b011e86c6f3588a984d432d
tree28637af1f33673498e0a6cfb250d50b0111bea91
parent9681ab0667642db54200ab63a361d650ce302781
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