ethdev: support sub-function representor
authorXueming Li <xuemingl@nvidia.com>
Thu, 11 Mar 2021 13:13:27 +0000 (13:13 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 16 Mar 2021 19:15:29 +0000 (20:15 +0100)
commitfa4f3fecb9688af1ece6a1c1c544d7758c39ef4e
tree6f121295866ab128ffd447ac90c974081bbd1be3
parentcebf7f17159a80e10243ff4f42214646fb76a6a7
ethdev: support sub-function representor

SubFunction is a portion of the PCI device, created on demand, a SF
netdev has its own dedicated queues(txq, rxq). A SF netdev supports
eswitch representation offload similar to existing PF and VF
representors.

To support SF representor, this patch introduces new devargs syntax,
examples:
 representor=sf0               - single SubFunction representor
 representor=sf[1,3,5]         - single list
 representor=sf[0-3],          - single range
 representor=sf[0,2-6,8,10-12] - list with singles and ranges

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/prog_guide/switch_representation.rst
doc/guides/rel_notes/release_21_05.rst
lib/librte_ethdev/ethdev_private.c
lib/librte_ethdev/rte_ethdev.c
lib/librte_ethdev/rte_ethdev.h