]> git.droids-corp.org - dpdk.git/commit
net/mlx5: support represented port item in flow rules
authorSean Zhang <xiazhang@nvidia.com>
Tue, 7 Jun 2022 11:17:32 +0000 (14:17 +0300)
committerRaslan Darawsheh <rasland@nvidia.com>
Thu, 23 Jun 2022 15:23:23 +0000 (17:23 +0200)
commite8146c63c3f2dca7855bbca339918e475e23e4be
treead5ae6e785173972acb7f3589ca0e91cf6d4a2c8
parent42fbb8e85d1f0b6c1d397d4e7559bc5877ba985e
net/mlx5: support represented port item in flow rules

Add support for represented_port item in pattern. And if the spec and mask
both are NULL, translate function will not add source vport to matcher.

For example, testpmd starts with PF, VF-rep0 and VF-rep1, below command
will redirect packets from VF0 and VF1 to wire:
testpmd> flow create 0 ingress transfer group 0 pattern eth /
represented_port / end actions represented_port ethdev_id is 0 / end

Signed-off-by: Sean Zhang <xiazhang@nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
doc/guides/nics/features/mlx5.ini
doc/guides/nics/mlx5.rst
doc/guides/rel_notes/release_22_07.rst
drivers/net/mlx5/mlx5_flow.h
drivers/net/mlx5/mlx5_flow_dv.c