]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
bnxt_en: Report firmware DCBX agent.
authorMichael Chan <michael.chan@broadcom.com>
Mon, 24 Jul 2017 16:34:25 +0000 (12:34 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 25 Jul 2017 00:29:58 +0000 (17:29 -0700)
commit9315edca9b1d0daf41f81e1f5d4fb995d3cbc634
tree6fb04a9f9f529c6e2a7f6a368c83a1b75449173b
parentadcc331e42e639ea44ac3c746db6c7207c3f69c0
bnxt_en: Report firmware DCBX agent.

Report DCB_CAP_DCBX_LLD_MANAGED only if the firmware DCBX agent is enabled
and running for PF or VF.  Otherwise, if both LLDP and DCBX agents are
disabled in firmware, we report DCB_CAP_DCBX_LLD_HOST and allow host
IEEE DCB settings.  This patch refines the current logic in the driver.

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
drivers/net/ethernet/broadcom/bnxt/bnxt.h
drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c