ethdev: support new VF representor syntax
authorXueming Li <xuemingl@nvidia.com>
Thu, 11 Mar 2021 13:13:26 +0000 (13:13 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 16 Mar 2021 19:15:29 +0000 (20:15 +0100)
commitcebf7f17159a80e10243ff4f42214646fb76a6a7
treec7ab6d61ec36b86fe6a6dca3d4a46d021f9f34cf
parent83a675177fdcf8f6cb2f6a65450a71e5424b80fb
ethdev: support new VF representor syntax

Current VF representor syntax:
 representor=2          - single representor
 representor=[0-3]      - single range

To prepare for more representor types, this patch adds compatible VF
representor devargs syntax:

vf#:
 representor=vf2          - single representor
 representor=vf[1,3,5]    - single list
 representor=vf[0-3]      - single range
 representor=vf[0,1,4-7]  - list with singles and range

For backwards compatibility, representor "#" is interpreted as "vf#".

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