summaryrefslogtreecommitdiff
path: root/drivers/net/dsa/bcm_sf2.c
diff options
context:
space:
mode:
authorAndy Gospodarek <gospo@broadcom.com>2016-11-22 21:14:08 +0300
committerDavid S. Miller <davem@davemloft.net>2016-11-24 23:39:21 +0300
commit867d1212bf3c53dc057f7bca72155048cc51d18c (patch)
tree81799be8dfc1d0731cc40ddb822ca1b64a63d981 /drivers/net/dsa/bcm_sf2.c
parent30c7be26fd3587abcb69587f781098e3ca2d565b (diff)
downloadlinux-867d1212bf3c53dc057f7bca72155048cc51d18c.tar.xz
bnxt: do not busy-poll when link is down
When busy polling while a link is down (during a link-flap test), TX timeouts were observed as well as the following messages in the ring buffer: bnxt_en 0008:01:00.2 enP8p1s0f2d2: Resp cmpl intr err msg: 0x51 bnxt_en 0008:01:00.2 enP8p1s0f2d2: hwrm_ring_free tx failed. rc:-1 bnxt_en 0008:01:00.2 enP8p1s0f2d2: Resp cmpl intr err msg: 0x51 bnxt_en 0008:01:00.2 enP8p1s0f2d2: hwrm_ring_free rx failed. rc:-1 These were resolved by checking for link status and returning if link was not up. Signed-off-by: Andy Gospodarek <gospo@broadcom.com> Signed-off-by: Michael Chan <michael.chan@broadcom.com> Tested-by: Rob Miller <rob.miller@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/bcm_sf2.c')
0 files changed, 0 insertions, 0 deletions