ethdev: support PF index in representor
authorXueming Li <xuemingl@nvidia.com>
Thu, 11 Mar 2021 13:13:29 +0000 (13:13 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 16 Mar 2021 19:15:29 +0000 (20:15 +0100)
commitda97592635bbee01f72d76659d00720a62fa2d04
treed1d367bf1c0558018ee1db0ae8b2eba56e2b5d58
parent9be46b4308a5d5d458b7f60d448893cc65ebb5ae
ethdev: support PF index in representor

With Kernel bonding, multiple underlying PFs are bonded, VFs come
from different PF, need to identify representor of VFs unambiguously by
adding PF index.

This patch introduces optional 'pf' section to representor devargs
syntax, examples:
 representor=pf0vf0             - single VF representor
 representor=pf[0-1]sf[0-1023]  - SF representors from 2 PFs

PF type representor is supported by using standalone 'pf' section:
 representor=pf1                - PF representor

Signed-off-by: Xueming Li <xuemingl@nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
Acked-by: Thomas Monjalon <thomas@monjalon.net>
Acked-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
doc/guides/prog_guide/poll_mode_drv.rst
doc/guides/rel_notes/release_21_05.rst
lib/librte_ethdev/ethdev_private.c
lib/librte_ethdev/rte_ethdev.h