]> 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)
commit90fe158dcdd8bb89a9c10bf829c463985a0817c3
tree3ad72c8b3a32d4ede8ee5566f1c21af48bac6dbf
parentdada0d7a92d91a84d7e6dd60461f7f8b60c40d29
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