Skip to content

Remove limitations coming from legacy VMDq

David Marchand dpdk-dev 6 versions – Applied

Status from this message: Applied to next-net

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest3 patches 4 repliesApplied
  2. v510 patches 2 repliesSuperseded
  3. v410 patches 5 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v35 patches5 repliesSuperseded
v25 patches4 repliesSuperseded
v14 patches8 repliesSuperseded

Patches in v6 Applied

#Subject and filesSizeRepliesApplied
1/3ethdev: check VMDq availabilitydoc/guides/rel_notes/release_26_11.rst lib/ethdev/rte_ethdev.c+22 -00 replies
2/3ethdev: skip VMDq pools unless configureddoc/guides/rel_notes/release_26_11.rst drivers/net/cnxk/cnxk_ethdev_ops.c lib/ethdev/rte_ethdev.c +1 more+39 -183 replies
3/3ethdev: hide VMDq internal sizesdoc/guides/rel_notes/release_26_11.rst lib/ethdev/ethdev_driver.h lib/ethdev/rte_ethdev.h+10 -70 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchAndrew Rybchenko
1/3A-b
2/3A-b
3/3A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v6 thread

Cover letter [PATCH v6 0/3] Remove limitations coming from legacy VMDq

Since the commit 88ac4396ad29 ("ethdev: add VMDq support"), VMDq has been imposing a maximum number of mac addresses in the mac_addr_add/del API.

Nowadays, new Intel drivers do not support the feature and few other drivers implement this feature.

This series enforces that the driver announces VMDq pools before using VMDq related features, then remove the limit of number of mac addresses for others.

Next step could be to remove the VMDq pool notion from the generic API. However I have some concern about this, as changing the quite stable mac_addr_add/del API now seems a lot of noise for not much benefit.

Signature · 42 lines
David Marchand

Changes since v5:
- no change, simply split out (intel and mlx) drivers update in
  separate series,

Changes since v4:
- rebased,
- moved mac restoration in dedicated IAVF reset helper,
- fixed inverted arguments when calling mlx5 mac sync,

Changes since v3:
- rebased (this series is too late for 26.07),
- update some doxygen comments,
- added mlx5 changes,

Changes since v2:
- changed approach: did not introduce a new device capability,
  relied on already existing dev_info->max_vmdq_pools,
- fixed duplicate mac addition without VMDq,
- updated documentation,

Changes since v1:
- dropped incorrect VMDq feature announce for bnxt representors, em,
  i40e representors, ipn3ke representors,
- fixed buffer overflow on mailbox messages during port restart/VF reset,
- fixed duplicate MAC address installation on port start/restart,

David Marchand (3):
  ethdev: check VMDq availability
  ethdev: skip VMDq pools unless configured
  ethdev: hide VMDq internal sizes

 doc/guides/rel_notes/release_26_11.rst | 11 +++++
 drivers/net/cnxk/cnxk_ethdev_ops.c     |  1 -
 lib/ethdev/ethdev_driver.h             |  8 ++-
 lib/ethdev/rte_ethdev.c                | 68 ++++++++++++++++++++------
 lib/ethdev/rte_ethdev.h                |  8 +--
 5 files changed, 71 insertions(+), 25 deletions(-)

-- 
2.54.0