diff options
author | Jakub Kicinski <jakub.kicinski@netronome.com> | 2017-03-08 08:57:02 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-03-09 16:39:58 -0800 |
commit | 47465aed3220c3b95646bd53d3a6fd11cbf1ebfe (patch) | |
tree | 450b183f0b8e4c28f199ef6b500551ec1b48969f /drivers/net/ethernet/netronome/nfp/nfp_net_debugfs.c | |
parent | nfp: add support for reporting CRC32 hash function (diff) | |
download | linux-dev-47465aed3220c3b95646bd53d3a6fd11cbf1ebfe.tar.xz linux-dev-47465aed3220c3b95646bd53d3a6fd11cbf1ebfe.zip |
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>
Diffstat (limited to 'drivers/net/ethernet/netronome/nfp/nfp_net_debugfs.c')
0 files changed, 0 insertions, 0 deletions