Skip to content

Commit

Permalink
net/bnxt: reset filters before registering interrupts
Browse files Browse the repository at this point in the history
[ upstream commit 161964c ]

If interrupt registration fails during device init, driver invokes
uninit which in turn causes error messages while trying to free
vnic filters. Fix this by moving filter initialization call before
interrupt registration.

Fixes: 1b53379 ("net/bnxt: avoid invalid vnic id in set L2 Rx mask")

Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
  • Loading branch information
Kalesh AP authored and kevintraynor committed Aug 28, 2019
1 parent 65bfa74 commit cab07f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/bnxt/bnxt_ethdev.c
Expand Up @@ -3551,12 +3551,12 @@ bnxt_dev_init(struct rte_eth_dev *eth_dev)
if (rc)
goto error_free;

bnxt_init_nic(bp);

rc = bnxt_request_int(bp);
if (rc)
goto error_free;

bnxt_init_nic(bp);

return 0;

error_free:
Expand Down

0 comments on commit cab07f5

Please sign in to comment.