numam-dpdk/drivers/net/mlx5
Viacheslav Ovsiienko 420bbdae89 net/mlx5: fix host physical function representor naming
The new kernel adds the names like "pf0" for Host PCI physical
function representor on Bluefield SmartNIC hosts. This patch
provides correct HPF representor recognition over the kernel
versions 5.7 and laters.

The following port naming formats are supported:

  - missing physical port name (no sysfs/netlink key) at all,
    master is assumed

  - decimal digits (for example "12"), representor is
    assumed, the value is the index of attached VF

  - "p" followed by decimal digits, for example "p2", master
    is assumed

  - "pf" followed by PF index, for example "pf0", Host PF
     representor is assumed on SmartNIC systems.

  - "pf" followed by PF index concatenated with "vf" followed by
     VF index, for example "pf0vf1", representor is assumed.
     If index of VF is "-1" it is a special case of Host PF
     representor, this representor must be indexed in devargs
     as 65535, for example representor=[0-3,65535] will
     allow representors for VF0, VF1, VF2, VF3 and for host PF.

Fixes: 79aa430721 ("common/mlx5: split common file under Linux directory")
Cc: stable@dpdk.org

Signed-off-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
Acked-by: Matan Azrad <matan@mellanox.com>
2020-06-30 14:52:30 +02:00
..
linux net/mlx5: fix host physical function representor naming 2020-06-30 14:52:30 +02:00
Makefile net/mlx5/linux: add memory region callbacks to Verbs 2020-06-17 16:32:01 +02:00
meson.build net/mlx5: move socket files in Linux directory 2020-06-16 19:21:07 +02:00
mlx5_defs.h net/mlx5: add device parameter for MPRQ stride size 2020-04-21 13:57:08 +02:00
mlx5_ethdev.c net/mlx5: move Linux-specific functions 2020-06-16 19:21:07 +02:00
mlx5_flow_dv.c common/mlx5: move some getter functions from net driver 2020-06-30 14:52:30 +02:00
mlx5_flow_meter.c net/mlx5: fix typos in meter error messages 2020-06-16 19:21:07 +02:00
mlx5_flow_verbs.c net/mlx5: optimize free counter lookup 2020-06-30 14:52:30 +02:00
mlx5_flow.c net/mlx5: optimize free counter lookup 2020-06-30 14:52:30 +02:00
mlx5_flow.h net/mlx5: fix flow counter container resize 2020-05-18 20:35:57 +02:00
mlx5_mac.c common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5_mp.c net/mlx5: add Linux-specific file with getter functions 2020-06-16 19:21:07 +02:00
mlx5_mr.c net/mlx5: add memory region callbacks in per-device cache 2020-06-17 16:32:01 +02:00
mlx5_mr.h common/mlx5: refactor memory management 2020-04-21 13:57:08 +02:00
mlx5_rss.c common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5_rxmode.c net/mlx5: reduce Netlink commands dependencies 2020-02-05 09:51:20 +01:00
mlx5_rxq.c common/mlx5: move doorbell record from net driver 2020-06-30 14:52:30 +02:00
mlx5_rxtx_vec_altivec.h net/mlx5: fix vectorized Rx burst termination 2020-06-03 17:20:32 +02:00
mlx5_rxtx_vec_neon.h net/mlx5: fix vectorized Rx burst termination 2020-06-03 17:20:32 +02:00
mlx5_rxtx_vec_sse.h net/mlx5: fix vectorized Rx burst termination 2020-06-03 17:20:32 +02:00
mlx5_rxtx_vec.c net/mlx5: fix vectorized Rx burst termination 2020-06-03 17:20:32 +02:00
mlx5_rxtx_vec.h common/mlx5: refactor memory management 2020-04-21 13:57:08 +02:00
mlx5_rxtx.c net/mlx5: fix LRO checksum 2020-06-16 19:21:07 +02:00
mlx5_rxtx.h net/mlx5: fix secondary process resources release 2020-06-02 16:06:24 +02:00
mlx5_stats.c net/mlx5: refactor statistics 2020-06-16 19:21:07 +02:00
mlx5_trigger.c net/mlx5: refactor statistics 2020-06-16 19:21:07 +02:00
mlx5_txq.c net/mlx5: fix descriptors number adjustment 2020-06-16 19:21:07 +02:00
mlx5_utils.c net/mlx5: add three-level table utility 2020-06-30 14:52:29 +02:00
mlx5_utils.h net/mlx5: add three-level table utility 2020-06-30 14:52:29 +02:00
mlx5_vlan.c common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5.c common/mlx5: move doorbell record from net driver 2020-06-30 14:52:30 +02:00
mlx5.h common/mlx5: move doorbell record from net driver 2020-06-30 14:52:30 +02:00
rte_pmd_mlx5_version.map net/mlx5: support fine grain dynamic flag 2020-02-05 09:51:20 +01:00
rte_pmd_mlx5.h net/mlx5: support fine grain dynamic flag 2020-02-05 09:51:20 +01:00