bnxt_en: fix switchdev port naming for external-port-rep and vf-reps
authorSathya Perla <sathya.perla@broadcom.com>
Tue, 25 Jul 2017 17:28:41 +0000 (13:28 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 25 Jul 2017 19:48:19 +0000 (12:48 -0700)
commit53f70b8b5aa06db53eb06f092342e6073891729a
treead49fbd2ddb2214efd045008417397b9bd367821
parente408ebdc41aa53f0aa552132384daaa5f5c6301d
bnxt_en: fix switchdev port naming for external-port-rep and vf-reps

Fix the phys_port_name for the external physical port to be in
"pA" format and that of VF-rep to be in "pCvfD" format as
suggested by Jakub Kicinski.

Fixes: c124a62ff2dd ("bnxt_en: add support for port_attr_get and get_phys_port_name")
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_vfr.c