]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bnxt: do not busy-poll when link is down
authorAndy Gospodarek <gospo@broadcom.com>
Tue, 22 Nov 2016 18:14:08 +0000 (13:14 -0500)
committerDhaval Giani <dhaval.giani@oracle.com>
Fri, 20 Jan 2017 18:08:08 +0000 (13:08 -0500)
commit610dcdc2bc8f141cf0c2b5dd3fda16113857821a
tree1ee748733a3586aa5fe08cfd71ea3bf98070d729
parenta68b3f275eb51972b3e29738d6cbee6c4a45253b
bnxt: do not busy-poll when link is down

Orabug: 24567991

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>
(cherry picked from commit 867d1212bf3c53dc057f7bca72155048cc51d18c)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
Signed-off-by: Dhaval Giani <dhaval.giani@oracle.com>
drivers/net/ethernet/broadcom/bnxt/bnxt.c