aboutsummaryrefslogtreecommitdiff
path: root/lib/net_utils.c
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2023-06-06 18:08:25 -0700
committerJakub Kicinski <kuba@kernel.org>2023-06-07 21:53:11 -0700
commit649c3fed36730a53447d8f479c14e431363563b6 (patch)
treea408a7c5b0572856b576588636bcb9e0413b7c43 /lib/net_utils.c
parentc9d99cfa66dfff4350e064adb98367cb922accf8 (diff)
eth: bnxt: fix the wake condition
The down condition should be the negation of the wake condition, IOW when I moved it from: if (cond && wake()) to if (__netif_txq_completed_wake(cond)) Cond should have been negated. Flip it now. This bug leads to occasional crashes with netconsole. It may also lead to queue never waking up in case BQL is not enabled. Reported-by: David Wei <davidhwei@meta.com> Fixes: 08a096780d92 ("bnxt: use new queue try_stop/try_wake macros") Reviewed-by: Michael Chan <michael.chan@broadcom.com> Link: https://lore.kernel.org/r/20230607010826.960226-1-kuba@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'lib/net_utils.c')
0 files changed, 0 insertions, 0 deletions