]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: Forward VF MAC address to the PF.
authorVasundhara Volam <vasundhara-v.volam@broadcom.com>
Wed, 17 Jan 2018 08:21:14 +0000 (03:21 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Jan 2018 19:48:27 +0000 (14:48 -0500)
commit010b76530de87f9eba994c198af55c84cabc82be
tree94cfc2ec88565a81682cec57d5ff4710d68454d5
parente20bd554ba43be3e8a0ed39393f63486bf1cc520
bnxt_en: Forward VF MAC address to the PF.

Forward hwrm_func_vf_cfg command from VF to PF driver, to store
VF MAC address in PF's context.  This will allow "ip link show"
to display all VF MAC addresses.

Maintain 2 locations of MAC address in VF info structure, one for
a PF assigned MAC and one for VF assigned MAC.

Display VF assigned MAC in "ip link show", only if PF assigned MAC is
not valid.

Signed-off-by: Vasundhara Volam <vasundhara-v.volam@broadcom.com>
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_sriov.c