]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: add support for port_attr_get and and get_phys_port_name
authorSathya Perla <sathya.perla@broadcom.com>
Mon, 24 Jul 2017 16:34:29 +0000 (12:34 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 25 Jul 2017 00:29:58 +0000 (17:29 -0700)
commit697127f919405558491b25c00051318029867fed
tree3ad72c8b3a32d4ede8ee5566f1c21af48bac6dbf
parent5189435ff6e57849fca2401332ef00a9dfa4d06f
bnxt_en: add support for port_attr_get and and get_phys_port_name

This patch adds support for the switchdev_port_attr_get() and
ndo_get_phys_port_name() methods for the PF and the VF-reps.
Using this support a user application can deduce that the PF
(when in the ESWITCH_SWDEV mode) and it's VF-reps form a switch.

Signed-off-by: Sathya Perla <sathya.perla@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_vfr.c