bnxt_en: Call bnxt_dcb_init() after getting firmware DCBX configuration.
authorMichael Chan <michael.chan@broadcom.com>
Tue, 16 May 2017 20:39:43 +0000 (16:39 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 May 2017 19:12:49 +0000 (15:12 -0400)
commit87fe603274aa9889c05cca3c3e45675e1997cb13
tree4c84c37f004bb99b7e43d27fbdb9fbb6fe488d27
parent9142e9007f2d7ab58a587a1e1d921b0064a339aa
bnxt_en: Call bnxt_dcb_init() after getting firmware DCBX configuration.

In the current code, bnxt_dcb_init() is called too early before we
determine if the firmware DCBX agent is running or not.  As a result,
we are not setting the DCB_CAP_DCBX_HOST and DCB_CAP_DCBX_LLD_MANAGED
flags properly to report to DCBNL.

Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt.c