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)
commitc124a62ff2dde9eaa9e8083de8206a142535c04e
tree3ad72c8b3a32d4ede8ee5566f1c21af48bac6dbf
parentee5c7fb3404724b9e25fe24c81fbcda60f3f2659
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