linux/drivers/net/ethernet/netronome/nfp
Jakub Kicinski 47465aed32 nfp: implement .ndo_get_phys_port_name()
NSP reports to us port labels.  First id is the id of the physical
port, the other one tells us which logical interface is it within a
split port.  Instead of printing them as string keep them in integer
format.  Compute which interfaces are part of port split.

On netdev side use port labels and split information to provide a
.ndo_get_phys_port_name() implementation.  We follow the name format
of mlxsw which is also suggested in "Port Netdev Naming" section
of Documentation/networking/switchdev.txt.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-03-09 16:39:58 -08:00
..
nfpcore nfp: implement .ndo_get_phys_port_name() 2017-03-09 16:39:58 -08:00
Makefile nfp: add the PF driver 2017-02-10 15:52:27 -05:00
nfp_asm.h nfp: add BPF to NFP code translator 2016-09-21 19:50:02 -04:00
nfp_bpf_jit.c nfp: add support for offload of XDP programs 2016-11-04 14:56:16 -04:00
nfp_bpf_verifier.c nfp: add support for offload of XDP programs 2016-11-04 14:56:16 -04:00
nfp_bpf.h bitfield.h: add FIELD_FIT() helper 2017-02-10 15:52:24 -05:00
nfp_main.c nfp: allow application firmware to limit number of SR-IOV VFs 2017-02-20 11:18:49 -05:00
nfp_main.h nfp: allow application firmware to limit number of SR-IOV VFs 2017-02-20 11:18:49 -05:00
nfp_net_common.c nfp: implement .ndo_get_phys_port_name() 2017-03-09 16:39:58 -08:00
nfp_net_ctrl.h nfp: add support for reporting CRC32 hash function 2017-03-09 16:39:58 -08:00
nfp_net_debugfs.c nfp: add port layer to debugfs directories 2017-02-10 15:52:26 -05:00
nfp_net_ethtool.c nfp: add support for reporting CRC32 hash function 2017-03-09 16:39:58 -08:00
nfp_net_main.c nfp: implement .ndo_get_phys_port_name() 2017-03-09 16:39:58 -08:00
nfp_net_offload.c nfp: add support for offload of XDP programs 2016-11-04 14:56:16 -04:00
nfp_net.h nfp: implement .ndo_get_phys_port_name() 2017-03-09 16:39:58 -08:00
nfp_netvf_main.c nfp: allocate irqs in lower driver 2017-02-10 15:52:27 -05:00