This patch uses the temp variable to check the current action type,
to avoid overlap the sample action following the decap.
Fixes: 7356aec64c48 ("net/mlx5: fix mirror flow split with L3 encapsulation")
Cc: sta...@dpdk.org
Signed-off-by: Jiawei Wang
Acked-by: Suanming Mou
---
driver
, and
it's possible that PF1 device scan results in no switch ports.
This patch supports the new configuration by allowing a PF scan with
empty switch ports.
Signed-off-by: Xueming Li
Signed-off-by: Jiawei Wang
---
drivers/net/mlx5/linux/mlx5_os.c | 7 ---
1 file changed, 7 dele
("net/mlx5: support E-Switch mirroring and jump in one
flow")
Cc: sta...@dpdk.org
Signed-off-by: Jiawei Wang
---
doc/guides/nics/mlx5.rst| 5 ++
drivers/net/mlx5/mlx5_flow_dv.c | 93 +
2 files changed, 76 insertions(+), 22 deletions(-)
diff -
creating action at the VF/SF ports
on the FDB table.
Fixes: b2cd39187cd4 ("net/mlx5: extend send to kernel action support")
Signed-off-by: Jiawei Wang
Acked-by: Suanming Mou
---
drivers/net/mlx5/mlx5_flow_hw.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/net/mlx5/mlx5
This patch adds mlx5 description about E-Switch mirroring
flow (RTE_FLOW_ACTION_TYPE_SAMPLE with sample ratio=1) with
encap action, then supports the uplink port only in the sample
actions list or in the one flow.
Signed-off-by: Jiawei Wang
---
doc/guides/nics/mlx5.rst | 2 ++
1 file changed, 2
set the layer attributes correctly.
This patch reverts the below code changes to support the match, and
adjusts the layers update in case of decap with outer tunnel header.
Fixes: fa06906a48ee ("net/mlx5: fix IPIP multi-tunnel validation")
Cc: sta...@dpdk.org
Signed-off-by: Jiawei Wang
Some fixes for sample/mirror issues.
Jiawei Wang (2):
net/mlx5: fix flow source port checking in sample flow rule
net/mlx5: fix mirror flow validation with ASO action
drivers/net/mlx5/mlx5_flow.c| 55 +---
drivers/net/mlx5/mlx5_flow.h| 19 ++
drivers/net/mlx5
ation.
Fixes: 04c0d3f20f54 ("net/mlx5: fix port matching in sample flow rule")
Fixes: 255b8f86eb6e ("net/mlx5: fix E-Switch egress mirror flow validation")
Cc: sta...@dpdk.org
Signed-off-by: Jiawei Wang
Acked-by: Viacheslav Ovsiienko
---
drivers/net
("net/mlx5: support flow hit action for aging")
Cc: sta...@dpdk.org
Signed-off-by: Jiawei Wang
Acked-by: Viacheslav Ovsiienko
---
drivers/net/mlx5/mlx5_flow_dv.c | 53 -
1 file changed, 32 insertions(+), 21 deletions(-)
diff --git a/drivers/net/mlx5/mlx5_f
.
RFC:
http://patches.dpdk.org/project/dpdk/cover/20221221102934.13822-1-jiaw...@nvidia.com/
Jiawei Wang (2):
ethdev: add mhpsdp hardware port match item
ethdev: introduce the mhpsdp hwport field in Tx queue API
app/test-pmd/cmdline.c | 84 +
app/test
mhpsdp_hw_port hwport is 1 /
end actions queue index 0 / end
The above command means that creates a flow on a single DPDK port and
matches the packet from the first physical port (the hwport 1
stands for the first port) and redirects these packets into RxQ 0.
Signed-off-by: Jiawei Wang
---
app
0 txq 3 mhpsdp_hwport 2
These commands config the TxQ index 0 and TxQ index 1 with mhpsdp_hwport 1,
uses TxQ 0 or TxQ 1 send packets, these packets will be sent from the
hardware port 0, and similar with hardware port 1 if sending packets
with TxQ 2 or TxQ 3.
Signed-off-by: Jiawei Wang
---
app/
finity 2
These commands config the TxQ index 0 and TxQ index 1 with phy affinity 1,
uses TxQ 0 or TxQ 1 send packets, these packets will be sent from the
hardware port 0, and similar with hardware port 1 if sending packets
with TxQ 2 or TxQ 3.
Signed-off-by: Jiawei Wang
---
app/test-pmd/c
port with received.
RFC:
http://patches.dpdk.org/project/dpdk/cover/20221221102934.13822-1-jiaw...@nvidia.com/
The PMD patch will be sent soon.
Jiawei Wang (2):
ethdev: add PHY affinity match item
ethdev: introduce the PHY affinity field in Tx queue API
app/test-pmd/cmdline.c
-off-by: Jiawei Wang
---
app/test-pmd/cmdline_flow.c | 29 +
doc/guides/prog_guide/rte_flow.rst | 8 ++
doc/guides/rel_notes/release_23_03.rst | 5
doc/guides/testpmd_app_ug/testpmd_funcs.rst | 4 +++
lib/ethdev/rte_flow.c
PHY affinity and numbering definition
* Add the number of physical ports into device info
* Change the patch order
v2: Update based on the comments
Jiawei Wang (2):
ethdev: introduce the PHY affinity field in Tx queue API
ethdev: add PHY affinity match item
app/test-pmd/cmdline.c
port config 0 txq 3 phy_affinity 2
These commands config the TxQ index 0 and TxQ index 1 with phy affinity 1,
uses TxQ 0 or TxQ 1 send packets, these packets will be sent from the
hardware port 0, and similar with hardware port 1 if sending packets
with TxQ 2 or TxQ 3.
Signed-off-by: Jiawei Wang
the first port) and redirects these packets into RxQ 0.
Signed-off-by: Jiawei Wang
Acked-by: Ori Kam
---
app/test-pmd/cmdline_flow.c | 29 ++
doc/guides/prog_guide/rte_flow.rst | 8 +
doc/guides/rel_notes/release_23_03.rst | 6
doc/guides
This patch series implement PHY affinity item support in MLX5 PMD and
the support for TIS creation with tx_phy_affinity value of
Tx queue.
This patch series relies on the preceding ethdev API:
http://patches.dpdk.org/project/dpdk/patch/20230203050717.46914-2-jiaw...@nvidia.com/
Jiawei Wang (3
This patch adds function to query hca capability via Devx for
lag_rx_port_affinity.
Signed-off-by: Jiawei Wang
---
drivers/common/mlx5/mlx5_devx_cmds.c | 3 +++
drivers/common/mlx5/mlx5_devx_cmds.h | 1 +
drivers/common/mlx5/mlx5_prm.h | 7 +--
drivers/net/mlx5/linux/mlx5_os.c | 4
This patch adds the new phy affinity item support in PMD:
RTE_FLOW_ITEM_TYPE_PHY_AFFINITY.
This patch adds the validation function for the new item,
it works for NIC-RX and FDB rule on ROOT-table only.
Signed-off-by: Jiawei Wang
---
doc/guides/nics/features/default.ini | 1 +
doc/guides/nics
reserved for default HWS hash mode.
Signed-off-by: Jiawei Wang
---
drivers/common/mlx5/mlx5_prm.h | 8 ---
drivers/net/mlx5/mlx5.c| 43 +++---
drivers/net/mlx5/mlx5_devx.c | 24 ++-
drivers/net/mlx5/mlx5_ethdev.c | 1 +
drivers/net/mlx5
commit log to make clear
v3:
* Update exception rule
* Update the commit log
* Add the description for PHY affinity and numbering definition
* Add the number of physical ports into device info
* Change the patch order
v2: Update based on the comments
Jiawei Wang (2):
ethdev: introduce the PHY
e second physical port if sending packets with Tx Queue 2
or Tx Queue 3.
Signed-off-by: Jiawei Wang
---
app/test-pmd/cmdline.c | 100
app/test-pmd/config.c | 1 +
devtools/libabigail.abignore| 5 +
doc/guides/r
first physical port and redirects
these packets into Rx queue 0.
Signed-off-by: Jiawei Wang
Acked-by: Ori Kam
---
app/test-pmd/cmdline_flow.c | 28 +
doc/guides/prog_guide/rte_flow.rst | 8 +
doc/guides/rel_notes/release_23_03.rst | 1 +
doc/guides
packets into the kernel through the FDB
table.
This patchset adds the FDB and NIC-TX tables support for sending to the kernel
action, also updates the documentation.
[1]
https://patchwork.dpdk.org/project/dpdk/list/?series=25318
Jiawei Wang (3):
net/mlx5: extend send to kernel action support
packets into the kernel through the FDB
table.
This patch adds the FDB and NIC-TX tables support for sending to the kernel
action.
Signed-off-by: Jiawei Wang
---
drivers/net/mlx5/linux/mlx5_os.c | 25 +++--
drivers/net/mlx5/mlx5.h | 4 +++-
drivers/net/mlx5/mlx5_flow.h
The hws send to kernel action was supported in NIC and FDB tables,
Currently, the send to kernel action is created in NIC RX only.
This patch adds the FDB and NIC-TX tables support for sending to the kernel
action for HWS.
Signed-off-by: Jiawei Wang
---
drivers/net/mlx5/mlx5.h | 2
This patch adds the description for send to kernel action support.
Signed-off-by: Jiawei Wang
Acked-by: Ori Kam
---
doc/guides/nics/mlx5.rst | 7 +++
doc/guides/prog_guide/rte_flow.rst | 9 +
lib/ethdev/rte_flow.h | 1 -
3 files changed, 16 insertions(+), 1
MLX5 PMD updates the TIS index based on the tx queue affinity,
and creates the DevX SQ object with updated the TIS index.
This patch adds the checking that set the affinity per Tx Queue
if HW objects can be created by DevX.
Signed-off-by: Jiawei Wang
Acked-by: Viacheslav Ovsiienko
---
drivers
Currently, the flow meter policy does not support multiple actions
per color; also the allowed action types per color are very limited.
In addition, the policy cannot be pre-defined.
Due to the growing in flow actions offload abilities there is a potential
for the user to use variety of actions pe
From: Haifei Luo
Add the create/del policy CLIs to support actions per color.
The CLIs are:
Create: add port meter policy (port_id) (policy_id) g_actions (actions)
y_actions (actions) r_actions (actions)
Delete: del port meter policy (port_id) (policy_id)
Examples:
testpmd> add port meter poli
policy API.
Signed-off-by: Li Zhang
Signed-off-by: Haifei Luo
Signed-off-by: Jiawei Wang
Acked-by: Matan Azrad
Acked-by: Ray Kinsella
Acked-by: Ori Kam
Acked-by: Jasvinder Singh
---
app/test-flow-perf/main.c | 7 -
app/test-pmd/cmdline.c
From: Shun Hao
ASO (Advanced Steering Operation) meter feature may require
to locate the flow context tag action after the ASO action.
When color register is shared by meter_id/flow_id, it's like:
Bits[0-7] A meter color value set by the HW.
Bits[8-31] A flow id and meter id set by SW.
Currently
5 PMD driver will be responsible for ASO flow meter manage to HW.
V2: Fix compile error issue (mlx5_glue->destroy_flow_action)
V3: Fix comments.
V4: Fix comments and add Acked.
V5: Fix unused log_obj_size issue.
V6: Fix comments and update release notes.
Jiawei Wang (1):
doc: update release n
From: Suanming Mou
This commit adds table entry walk for the three level table.
Signed-off-by: Suanming Mou
Acked-by: Matan Azrad
---
drivers/net/mlx5/mlx5_utils.h | 90 +++
1 file changed, 90 insertions(+)
diff --git a/drivers/net/mlx5/mlx5_utils.h b/
From: Li Zhang
This patch adds different PRM definitions, related to
ASO (Advanced Steering Operation) flow meter feature,
in MLX5 PMD code.
Signed-off-by: Li Zhang
Acked-by: Matan Azrad
---
drivers/common/mlx5/mlx5_prm.h | 75 +++---
1 file changed, 71 ins
From: Shun Hao
8 bits are used for meter color in meter register. When the meter
register can be shared, the rest 24 bits can be used by others.
This adds the definination for the 24 bits that can be shared.
Signed-off-by: Shun Hao
Acked-by: Matan Azrad
---
drivers/common/mlx5/mlx5_prm.h | 6
From: Li Zhang
Read and store the device capability of FLOW_METER_ASO general object,
using the DevX API.
Signed-off-by: Li Zhang
Acked-by: Matan Azrad
---
drivers/common/mlx5/mlx5_devx_cmds.c | 14 ++
drivers/common/mlx5/mlx5_devx_cmds.h | 8
2 files changed, 22 inserti
From: Li Zhang
Add DevX API to create ASO flow meter object.
Signed-off-by: Li Zhang
Acked-by: Matan Azrad
---
drivers/common/mlx5/mlx5_devx_cmds.c | 54
drivers/common/mlx5/mlx5_devx_cmds.h | 18 +++-
drivers/common/mlx5/version.map | 1 +
3
From: Shun Hao
Currently, packets after meter will be steered to a global policer
table,
which includes green/red color rules for every meter, so as to have
counter statistics of each color in every meter.
There's a bug that all the rules in global policer table are matching
only color criteria,
From: Li Zhang
Add ASO flow meter pool to manage meter object
Signed-off-by: Li Zhang
Acked-by: Matan Azrad
---
drivers/net/mlx5/mlx5.c| 2 +-
drivers/net/mlx5/mlx5.h| 207 -
drivers/net/mlx5/mlx5_flow.c | 70 --
drivers/net/mlx5/mlx5_flow.
From: Li Zhang
Synchronize ASO meter queue accesses from
different threads using a spinlock.
Signed-off-by: Li Zhang
Acked-by: Matan Azrad
---
drivers/net/mlx5/mlx5.h | 1 +
drivers/net/mlx5/mlx5_flow_aso.c | 16 +---
2 files changed, 14 insertions(+), 3 deletions(-)
di
From: Li Zhang
The driver devices support creation of multiple flow tables.
Jump action can be used in order to move the packet steering
to different flow table.
Table 0 is always the root table for packet steering.
Jumping between tables may cause endless loops in steering mechanism,
that's why
From: Li Zhang
This patch adds the ASO queue management for flow meter,
includes send WQE and CQE handle functions.
Signed-off-by: Li Zhang
Acked-by: Matan Azrad
---
drivers/net/mlx5/mlx5.h| 4 +
drivers/net/mlx5/mlx5_flow_aso.c | 183 -
dri
From: Li Zhang
Initialize the flow meter ASO SQ WQEs with
all the constant data that should not be updated
per enqueue operation.
Signed-off-by: Li Zhang
Acked-by: Matan Azrad
---
drivers/net/mlx5/linux/mlx5_os.c | 16 +
drivers/net/mlx5/meson.build | 2 +-
drivers/net/mlx5/mlx5.c
From: Li Zhang
When ASO action is available, use it as the meter action
Signed-off-by: Shun Hao
Signed-off-by: Li Zhang
Acked-by: Matan Azrad
---
drivers/net/mlx5/linux/mlx5_os.c | 4 +-
drivers/net/mlx5/mlx5.c| 12 +
drivers/net/mlx5/mlx5.h| 7 +--
drivers/ne
This patches updates the release notes for ASO meter supports.
MLX5 PMD can scale the meter usage from 4K to millions with this
feature.
Signed-off-by: Jiawei Wang
---
doc/guides/rel_notes/release_21_05.rst | 1 +
1 file changed, 1 insertion(+)
diff --git a/doc/guides/rel_notes/release_21_05
Currently, the flow meter policy does not support multiple actions
per color; also the allowed action types per color are very limited.
In addition, the policy cannot be pre-defined.
Due to the growing in flow actions offload abilities there is a potential
for the user to use variety of actions pe
From: Haifei Luo
Add the create/del policy CLIs to support actions per color.
The CLIs are:
Create: add port meter policy (port_id) (policy_id) g_actions (actions)
y_actions (actions) r_actions (actions)
Delete: del port meter policy (port_id) (policy_id)
Examples:
testpmd> add port meter poli
policy API.
Signed-off-by: Li Zhang
Signed-off-by: Haifei Luo
Signed-off-by: Jiawei Wang
Acked-by: Matan Azrad
Acked-by: Ray Kinsella
Acked-by: Ori Kam
Acked-by: Jasvinder Singh
Acked-by: Cristian Dumitrescu
---
app/test-flow-perf/main.c | 7 -
app/test-pmd
flags checking into the correct
MODIFY_HDR_ACTIONS set.
Fixes: 641dbe4fb053 ("net/mlx5: support modify field flow action")
Cc: sta...@dpdk.org
Signed-off-by: Jiawei Wang
Acked-by: Viacheslav Ovsiienko
---
drivers/net/mlx5/mlx5_flow_dv.c | 2 +-
1 file changed, 1 insertion(+), 1 deletio
.@dpdk.org
Signed-off-by: Jiawei Wang
Acked-by: Xueming Li
---
drivers/net/mlx5/mlx5.h | 2 +-
drivers/net/mlx5/mlx5_flow.c| 4 ++--
drivers/net/mlx5/mlx5_flow_dv.c | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/net/mlx5/mlx5.h b/drivers/net/mlx5/ml
cted.
The default is to allow.
Set it to 0 if disallow, for example:
-a ,allow_duplicate_pattern=0
Jiawei Wang (2):
common/mlx5: add glue function for duplicate rule ability
net/mlx5: control rules with identical pattern behavior
doc/guides/nics/mlx5.rst | 14 +
Add glue function to update the duplicate rule allow/disallow
through rdma-core DV API.
Signed-off-by: Jiawei Wang
Acked-by: Matan Azrad
---
drivers/common/mlx5/linux/meson.build | 2 ++
drivers/common/mlx5/linux/mlx5_glue.c | 12
drivers/common/mlx5/linux/mlx5_glue.h | 1 +
3
cted.
The default is to allow.
Set it to 0 if disallow, for example:
-a ,allow_duplicate_pattern=0
Signed-off-by: Jiawei Wang
Acked-by: Matan Azrad
---
doc/guides/nics/mlx5.rst | 14 ++
doc/guides/rel_notes/release_21_08.rst | 6 ++
drivers/net/mlx5/linux
The template API NVGRE item can support full mask.
This patch updates default NVGRE item mask for the template API.
Fixes: 80c676259a04 ("net/mlx5: validate HWS template items")
Cc: sta...@dpdk.org
Signed-off-by: Jiawei Wang
Acked-by: Bing Zhao
---
drivers/net/mlx5/mlx5_f
CN field")
Signed-off-by: Jiawei Wang
Acked-by: Asaf Penso
---
doc/guides/nics/mlx5.rst | 5 +
1 file changed, 5 insertions(+)
diff --git a/doc/guides/nics/mlx5.rst b/doc/guides/nics/mlx5.rst
index a7f9851d16..eb16669b3f 100644
--- a/doc/guides/nics/mlx5.rst
+++ b/doc/guides/nic
Update documentation for sample action usage in testpmd and
show the command line example.
Signed-off-by: Jiawei Wang
Acked-by: Viacheslav Ovsiienko
---
v2:
* Update the description.
---
doc/guides/testpmd_app_ug/testpmd_funcs.rst | 63 +
1 file changed, 63
Update documentation for sample action usage in testpmd and
show the command line example.
Signed-off-by: Jiawei Wang
Acked-by: Viacheslav Ovsiienko
---
v3:
* Update the description for sampling.
v2:
* Update the description.
---
doc/guides/testpmd_app_ug/testpmd_funcs.rst | 52
ned-off-by: Jiawei Wang
Reviewed-by: Suanming Mou
---
drivers/net/mlx5/mlx5_flow_dv.c | 25 ++---
1 file changed, 6 insertions(+), 19 deletions(-)
diff --git a/drivers/net/mlx5/mlx5_flow_dv.c b/drivers/net/mlx5/mlx5_flow_dv.c
index 1818895..883fe2e 100644
--- a/driver
gress mirror flow validation")
Cc: sta...@dpdk.org
Signed-off-by: Jiawei Wang
---
drivers/net/mlx5/mlx5_flow.c| 8
drivers/net/mlx5/mlx5_flow_dv.c | 15 +++
2 files changed, 23 insertions(+)
diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c
ind
register support check can be
done only ones and check results can be shared for all representors.
Signed-off-by: Jiawei Wang
Acked-by: Viacheslav Ovsiienko
---
v3: Rebase
v2: Fix the CI warning
---
drivers/net/mlx5/linux/mlx5_os.c | 33 +-
drivers/net/mlx5/mlx5.h
mirror")
Cc: sta...@dpdk.org
Signed-off-by: Jiawei Wang
Acked-by: Viacheslav Ovsiienko
---
drivers/net/mlx5/mlx5_flow.c | 20 +++-
1 file changed, 19 insertions(+), 1 deletion(-)
diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c
index a3fdce685e..3200a
commit.
The patch checks whether the decap action is part of "L3 encapsulation"
and does not move the decap action into suffix subflow for the case.
Fixes: cafd87f62a06 ("net/mlx5: fix VLAN push/pop and decap actions with
mirror")
Cc: sta...@dpdk.org
Signed-off-by: Jiawei Wang
A
Updates the Minimal SW and HW Version offload support
information for Metering hierarchy.
Signed-off-by: Jiawei Wang
---
doc/guides/nics/mlx5.rst | 5 +
1 file changed, 5 insertions(+)
diff --git a/doc/guides/nics/mlx5.rst b/doc/guides/nics/mlx5.rst
index 42559cf261..b6b8ecb3a0 100644
Updates the Minimal SW and HW Version offload support
information for ASO metering.
Signed-off-by: Jiawei Wang
---
doc/guides/nics/mlx5.rst | 5 +
1 file changed, 5 insertions(+)
diff --git a/doc/guides/nics/mlx5.rst b/doc/guides/nics/mlx5.rst
index 3e9c736cae..42559cf261 100644
--- a/doc
TX_QUEUE items in
order to not impact hairpins.
Fixes: ce777b147bf8 ("net/mlx5: fix E-Switch flow without port item")
Cc: sta...@dpdk.org
Signed-off-by: Jiawei Wang
Acked-by: Viacheslav Ovsiienko
---
v3: update the tx_item checking
v2: fix one typo
---
doc/guides/nics/mlx5.rst
tag is used.
Fixes: 8d72fa668964 ("net/mlx5: share tag between meter and metadata")
Cc: sta...@dpdk.org
Signed-off-by: Jiawei Wang
Acked-by: Viacheslav Ovsiienko
---
drivers/net/mlx5/mlx5_flow.c | 35 +--
1 file changed, 17 insertions(+), 18 deletion
("net/mlx5: connect meter policy to created flows")
Cc: sta...@dpdk.org
Signed-off-by: Jiawei Wang
Acked-by: Viacheslav Ovsiienko
---
drivers/net/mlx5/mlx5_flow.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c
index
the following meter subflows handle the flow mark correctly.
Fixes: 9ade91dfe85d ("net/mlx5: fix group value of sample suffix flow")
Cc: sta...@dpdk.org
Signed-off-by: Jiawei Wang
Acked-by: Viacheslav Ovsiienko
---
drivers/net/mlx5/mlx5_flow.c | 5 ++---
drivers/net/mlx5/mlx5_
stpmd: support RSS in sample action")
Signed-off-by: Jiawei Wang
Acked-by: Viacheslav Ovsiienko
---
app/test-pmd/cmdline_flow.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c
index 0618611..64c0e0f 100644
--- a/ap
In E-Switch steering domain there was dedicated default miss action
created for every sampling flow.
The patch replaces this one with the global default miss action.
Cc: sta...@dpdk.org
Signed-off-by: Jiawei Wang
Acked-by: Viacheslav Ovsiienko
---
drivers/net/mlx5/mlx5_flow.h| 1
This patchset fixes the E-Switch sampling flow creation issue, and also uses
the global
default miss for each E-Switch sampling flow.
Jiawei Wang (2):
net/mlx5: fix the E-Switch sample action creation failure
net/mlx5: use global default miss for E-Switch sampling
drivers/net/mlx5
This patch fixes the incorrect checking for the return value
of default miss action creation.
Fixes: 14020ad53d4e ("net/mlx5: wrap default miss flow action per OS")
Cc: sta...@dpdk.org
Signed-off-by: Jiawei Wang
Acked-by: Viacheslav Ovsiienko
---
drivers/net/mlx5/mlx5_flow_dv.c | 2
the checking to make sure only one
count be created once per flow, it's used for all sample sub flows.
Fixes: 0756228b2704 ("net/mlx5: update translate function for sample action")
Cc: sta...@dpdk.org
Signed-off-by: Jiawei Wang
Acked-by: Viacheslav Ovsiienko
---
drivers/net/m
Fixes: e7138997e07d ("net/mlx5: make shared counters thread safe")
Cc: sta...@dpdk.org
Signed-off-by: Jiawei Wang
Acked-by: Matan Azrad
---
drivers/net/mlx5/mlx5_flow_dv.c | 55 -
1 file changed, 44 insertions(+), 11 deletions(-)
diff --git a/d
")
Cc: sta...@dpdk.org
Signed-off-by: Jiawei Wang
Acked-by: Viacheslav Ovsiienko
---
drivers/net/mlx5/mlx5_flow_dv.c | 47 +
1 file changed, 47 insertions(+)
diff --git a/drivers/net/mlx5/mlx5_flow_dv.c b/drivers/net/mlx5/mlx5_flow_dv.c
index 8c11ac3..ee1c4
r
v3:
* Update exception rule
* Update the commit log
* Add the description for PHY affinity and numbering definition
* Add the number of physical ports into device info
* Change the patch order
v2: Update based on the comments
Jiawei Wang (2):
ethdev: introduce the Tx map API for aggregated
Signed-off-by: Jiawei Wang
---
app/test-pmd/cmdline.c | 96 +
doc/guides/rel_notes/release_23_03.rst | 7 ++
doc/guides/testpmd_app_ug/testpmd_funcs.rst | 14 +++
lib/ethdev/ethdev_driver.h | 39 +
lib/ethdev/e
first physical port and redirects
these packets into Rx queue 0.
Signed-off-by: Jiawei Wang
---
app/test-pmd/cmdline_flow.c | 28 +
doc/guides/prog_guide/rte_flow.rst | 9 ++
doc/guides/rel_notes/release_23_03.rst | 1 +
doc/guides/testpmd_app_ug
d the description for PHY affinity and numbering definition
* Add the number of physical ports into device info
* Change the patch order
v2: Update based on the comments
Jiawei Wang (2):
ethdev: add Tx queue mapping of aggregated ports
ethdev: add flow matching of aggregated port
app/tes
Signed-off-by: Jiawei Wang
Acked-by: Thomas Monjalon
---
app/test-pmd/cmdline.c | 92 +
doc/guides/rel_notes/release_23_03.rst | 7 ++
doc/guides/testpmd_app_ug/testpmd_funcs.rst | 14
lib/ethdev/ethdev_driver.h | 39
first physical port and redirects
these packets into Rx queue 0.
Signed-off-by: Jiawei Wang
Acked-by: Thomas Monjalon
---
app/test-pmd/cmdline_flow.c | 28 +
doc/guides/prog_guide/rte_flow.rst | 8 +
doc/guides/rel_notes/release_23_03.rst | 1
pdate release release note
* Reword the commit log to make clear
v3:
* Update exception rule
* Update the commit log
* Add the description for PHY affinity and numbering definition
* Add the number of physical ports into device info
* Change the patch order
v2: Update based on the comments
Jiawei
Signed-off-by: Jiawei Wang
Acked-by: Thomas Monjalon
---
app/test-pmd/cmdline.c | 92 +
doc/guides/rel_notes/release_23_03.rst | 7 ++
doc/guides/testpmd_app_ug/testpmd_funcs.rst | 14
lib/ethdev/ethdev_driver.h | 37
first physical port and redirects
these packets into Rx queue 0.
Signed-off-by: Jiawei Wang
Acked-by: Thomas Monjalon
---
app/test-pmd/cmdline_flow.c | 28 +
doc/guides/prog_guide/rte_flow.rst | 8 +
doc/guides/rel_notes/release_23_03.rst | 1
:
* update the PMD code based on the new RTE API.
Jiawei Wang (3):
net/mlx5: add lag Rx port affinity in PRM
net/mlx5: add aggregated affinity item support
net/mlx5: enhance the Tx queue affinity
doc/guides/nics/features/default.ini | 1 +
doc/guides/nics/features/mlx5.ini| 1 +
doc/guides
This patch adds function to query hca capability via Devx for
lag_rx_port_affinity.
Signed-off-by: Jiawei Wang
Acked-by: Viacheslav Ovsiienko
---
drivers/common/mlx5/mlx5_devx_cmds.c | 3 +++
drivers/common/mlx5/mlx5_devx_cmds.h | 1 +
drivers/common/mlx5/mlx5_prm.h | 7 +--
drivers
This patch adds the new aggregated affinity item support in PMD:
RTE_FLOW_ITEM_TYPE_AGGR_AFFINITY.
This patch adds the validation function for the new item,
it works for NIC-RX and FDB rule on ROOT-table only.
Signed-off-by: Jiawei Wang
Acked-by: Viacheslav Ovsiienko
---
doc/guides/nics
() and starts sending traffic, the MLX5 PMD
updates TIS creation with tx_aggr_affinity value of Tx queue.
TIS index 1 goes to first physical port, TIS index 2 goes to second
physical port, and so on, TIS index 0 is reserved for default
HW hash mode.
Signed-off-by: Jiawei Wang
Acked-by: Viacheslav
n the wrong place.
This patch adds the checking to release the Rx hash queue
resource after the sample action release, to avoid one more
extra release if there's a failure.
Fixes: ca5eb60ecd5b ("net/mlx5: fix resource release for mirror flow")
Cc: sta...@dpdk.org
Signed-off-by: Jiaw
.@dpdk.org
Signed-off-by: Jiawei Wang
Acked-by: Bing Zhao
Acked-by: Viacheslav Ovsiienko
---
drivers/net/mlx5/mlx5_devx.c | 3 ++-
drivers/net/mlx5/mlx5_flow.c | 24 +---
drivers/net/mlx5/mlx5_rx.h | 4 ++--
3 files changed, 17 insertions(+), 14 deletions(-)
diff --git a/d
This patch adds the checking to avoid creating send_to_kernel
action on the FDB table if eswitch disabled.
Fixes: 033e826f680b ("net/mlx5: fix device checking for send to kernel action")
Signed-off-by: Jiawei Wang
Acked-by: Suanming Mou
---
drivers/net/mlx5/mlx5_flow_hw.c | 3 +
")
Cc: sta...@dpdk.org
Signed-off-by: Jiawei Wang
Acked-by: Matan Azrad
---
drivers/net/mlx5/mlx5_flow_dv.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/mlx5/mlx5_flow_dv.c b/drivers/net/mlx5/mlx5_flow_dv.c
index 154e509707..9753af2cb1 100644
--- a/drivers/net/mlx5
Update the description of flow mirroring to make clear
what are the limitations of the mlx5 driver.
Signed-off-by: Jiawei Wang
Acked-by: Thomas Monjalon
---
doc/guides/nics/mlx5.rst | 22 +-
1 file changed, 13 insertions(+), 9 deletions(-)
diff --git a/doc/guides/nics/mlx5
register support check can be
done only ones and check results can be shared for all representors.
Signed-off-by: Jiawei Wang
---
drivers/net/mlx5/linux/mlx5_os.c | 33 +-
drivers/net/mlx5/mlx5.h| 10 ++---
drivers/net/mlx5/mlx5_flow.c | 31
register support check can be
done only ones and check results can be shared for all representors.
Signed-off-by: Jiawei Wang
Acked-by: Viacheslav Ovsiienko
---
v2: Fix the CI warning
---
drivers/net/mlx5/linux/mlx5_os.c | 33 +-
drivers/net/mlx5/mlx5.h
From: Jiawei Wang
The sample flow tried to get the reserved metadata register for
match implicitly, and if the reserved metadata register was invalid
then back to use the application tag.
The assertion failure was caused while getting register due to
the reserved metadata regC is invalid on CX
/SF).
This patch adds the checking for reserved metadata register before
getting the register, to avoid assertion failure.
Fixes: 9a726360dd30 ("net/mlx5: fix sample flow action on trusted device")
Cc: sta...@dpdk.org
Signed-off-by: Jiawei Wang
Acked-by: Slava Ovsiienko
---
v2:
1 - 100 of 312 matches
Mail list logo