When meter not enabled, avoid allocate memory for meter profile table,
which will not be freed in close process when meter not enabled
Fixes: a295c69a8b24 ("net/mlx5: optimize meter profile lookup")
Cc: sta...@dpdk.org
Signed-off-by: Shun Hao
Acked-by: Bing Zhao
---
drivers/net/
When meter not enabled, avoid allocate memory for meter profile table,
which will not be freed in close process when meter not enabled
Fixes: a295c69a8b24 ("net/mlx5: optimize meter profile lookup")
Cc: sta...@dpdk.org
Signed-off-by: Shun Hao
Acked-by: Bing Zhao
---
drivers/net/
When meter not enabled, avoid allocate memory for meter profile table,
which will not be freed in close process when meter not enabled
Fixes: a295c69a8b24 ("net/mlx5: optimize meter profile lookup")
Cc: sta...@dpdk.org
Signed-off-by: Shun Hao
Acked-by: Bing Zhao
---
drivers/net/
Currently in meter hierarchy, only meter action is supported for green
and yellow policy flow.
This patch adds support of jump action for green or yellow policy flow.
Fixes: 96ca87da4f46 ("net/mlx5: validate yellow meter action")
Cc: sta...@dpdk.org
Signed-off-by: Shun Hao
Acked-by
Currently in meter hierarhcy, only meter action is supported for green
and yellow policy flow.
This patch adds support of jump action for green or yellow policy flow.
Fixes: 96ca87da4f46 ("net/mlx5: validate yellow meter action")
Cc: sta...@dpdk.org
Signed-off-by: Shun Hao
Acked-by
The HW flag action is supported by adding the tag to packet, with the
default tag value.
Signed-off-by: Shun Hao
Acked-by: Suanming Mou
---
drivers/net/mlx5/mlx5_flow_hw.c | 15 +++
1 file changed, 15 insertions(+)
diff --git a/drivers/net/mlx5/mlx5_flow_hw.c b/drivers/net/mlx5
The HW flag action is supported by adding the tag to packet, with the
default tag value.
Signed-off-by: Shun Hao
Acked-by: Suanming Mou
---
drivers/net/mlx5/mlx5_flow_hw.c | 14 ++
1 file changed, 14 insertions(+)
diff --git a/drivers/net/mlx5/mlx5_flow_hw.c b/drivers/net/mlx5
hops.
This patch fixes this by giving the same priority to flows for all
colors.
Fixes: 363db9b00f ("net/mlx5: handle yellow case in default meter policy")
CC: sta...@dpdk.org
Signed-off-by: Shun Hao
Acked-by: Bing Zhao
Acked-by: Matan Azrad
---
drivers/net/mlx5/mlx5
hops.
This patch fixes this by giving the same priority to flows for all
colors.
Fixes: 363db9b00f ("net/mlx5: handle yellow case in default meter policy")
CC: sta...@dpdk.org
Signed-off-by: Shun Hao
Acked-by: Bing Zhao
Acked-by: Matan Azrad
---
drivers/net/mlx5/mlx5
hops.
This patch fixes this by giving the the same priority to flows for all
colors.
Fixes: 363db9b00f ("net/mlx5: handle yellow case in default meter policy")
CC: sta...@dpdk.org
Signed-off-by: Shun Hao
Acked-by: Bing Zhao
Acked-by: Matan Azrad
---
drivers/net/mlx5/mlx5
This patch supports mirroring by adding an dest_array action. The action
accecpts a list containing multiple destination actions, and can duplicate
packet and forward to each destination in the list.
Signed-off-by: Shun Hao
Acked-by: Alex Vesker
---
drivers/common/mlx5/mlx5_prm.h | 23
From: Hamdan Igbaria
Add mlx5dr_devx_obj struct to mlx5dr_action, so we could hold
the FT obj in dest table action.
Signed-off-by: Hamdan Igbaria
Acked-by: Alex Vesker
---
drivers/net/mlx5/hws/mlx5dr_action.c | 2 ++
drivers/net/mlx5/hws/mlx5dr_action.h | 3 +++
drivers/net/mlx5/hws/mlx5dr_ta
From: Hamdan Igbaria
Add support for creation of packet reformat object,
via the ALLOC_PACKET_REFORMAT_CONTEXT command.
Signed-off-by: Hamdan Igbaria
Acked-by: Alex Vesker
---
drivers/common/mlx5/mlx5_prm.h | 39 +
drivers/net/mlx5/hws/mlx5dr_cmd.c | 60 ++
.
Hamdan Igbaria (2):
net/mlx5/hws: add creation of packet reformat DevX obj
net/mlx5/hws: add mlx5dr obj struct to mlx5dr action
Shun Hao (1):
net/mlx5/hws: add support for mirroring
drivers/common/mlx5/mlx5_prm.h | 62 +++-
drivers/net/mlx5/hws/mlx5dr.h | 34
")
Cc: sta...@dpdk.org
Signed-off-by: Shun Hao
Acked-by: Matan Azrad
---
drivers/net/mlx5/mlx5_flow.h| 3 +++
drivers/net/mlx5/mlx5_flow_dv.c | 6 +++---
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/drivers/net/mlx5/mlx5_flow.h b/drivers/net/mlx5/mlx5_flow.h
index 187e9a2
ssert failure.
This patch adds initialization of thread-local workspace when creating
meter policy rules to avoid that assert.
Fixes: 65c86202 ("net/mlx5: fix flow source port checking in sample flow rule")
CC: sta...@dpdk.org
Signed-off-by: Shun Hao
Acked-by: Matan Azrad
---
d
dynamically, but then the meter cannot be used
by a flow that matches all the ports.
Fixes: 48fbc1be ("net/mlx5: fix meter policy flow match item")
Cc: sta...@dpdk.org
Signed-off-by: Shun Hao
Acked-by: Matan Azrad
---
drivers/net/mlx5/mlx5.h | 2 -
drivers/net/mlx5/mlx5_flow_
;)
Cc: sta...@dpdk.org
Signed-off-by: Shun Hao
Acked-by: Matan Azrad
---
doc/guides/nics/mlx5.rst| 3 +++
drivers/net/mlx5/mlx5.h | 6 --
drivers/net/mlx5/mlx5_flow.c| 2 +-
drivers/net/mlx5/mlx5_flow_dv.c | 35 ++---
4 files changed, 31 inserti
src port
from user flow dynamically to match different src port, so the meter
hierarchy can always be used by different src ports.
Shun Hao (2):
net/mlx5: fix meter hierarchy with modify header
net/mlx5: fix meter policy with port ID destination
doc/guides/nics/mlx5.rst| 3 +
drivers
;)
Cc: sta...@dpdk.org
Signed-off-by: Shun Hao
Acked-by: Matan Azrad
---
drivers/net/mlx5/mlx5_flow.c| 50 -
drivers/net/mlx5/mlx5_flow_dv.c | 6
2 files changed, 37 insertions(+), 19 deletions(-)
diff --git a/drivers/net/mlx5/mlx5_flow.c b/driver
em matcher and value translation")
Cc: sta...@dpdk.org
Signed-off-by: Shun Hao
Acked-by: Matan Azrad
---
drivers/net/mlx5/mlx5_flow_dv.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/net/mlx5/mlx5_flow_dv.c b/drivers/net/mlx5/mlx5_flow_dv.c
index 7b904ee
f3ff ("net/mlx5: support yellow in meter policy validation")
Cc: sta...@dpdk.org
Signed-off-by: Shun Hao
Acked-by: Matan Azrad
---
drivers/net/mlx5/mlx5_flow.h | 56 ++--
1 file changed, 28 insertions(+), 28 deletions(-)
diff --git a/drivers/net/mlx5
meter profile update")
Cc: sta...@dpdk.org
Signed-off-by: Shun Hao
Acked-by: Matan Azrad
---
drivers/net/mlx5/mlx5_flow_meter.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/net/mlx5/mlx5_flow_meter.c
b/drivers/net/mlx5/mlx5_flow_meter.c
index 7c0d84907a
er doesn't have
drop count, no need to add the meter id tag action. No change for
non-hierarchy meter.
Fixes: e8146c63 ("net/mlx5: support represented port item in flow rules")
Cc: sta...@dpdk.org
Signed-off-by: Shun Hao
Acked-by: Matan Azrad
---
drivers/net/mlx5/mlx5_flow.c | 6 +
item in flow rules")
Cc: sta...@dpdk.org
Signed-off-by: Shun Hao
Acked-by: Matan Azrad
---
drivers/net/mlx5/mlx5_flow.c| 10 +++---
drivers/net/mlx5/mlx5_flow.h| 3 +++
drivers/net/mlx5/mlx5_flow_dv.c | 20
3 files changed, 26 insertions(+), 7 deletions(-)
drop count.
Fixes: e8146c63 ("net/mlx5: support represented port item in flow rules")
Cc: sta...@dpdk.org
Signed-off-by: Shun Hao
Acked-by: Matan Azrad
---
doc/guides/nics/mlx5.rst| 1 +
drivers/net/mlx5/mlx5.h | 2 ++
drivers/net/mlx5/mlx5_flow.c| 11 ++-
drivers/
pport represented
port. And there're some limitation for the support that when matching
all ports, the meter hierarchy should not contain any meter having
drop count.
Shun Hao (3):
net/mlx5: fix meter hierarchy with represented port item
net/mlx5: add meter flow limitation when matching
When meter is used by E-Switch Manager port, there's an error that
cannot get correct port ID.
This patch fixes this by using specific parsing process to get port
ID for E-Switch Manager.
Fixes: 3c481324baf3 ("net/mlx5: fix meter flow direction check")
Cc: sta...@dpdk.org
Sign
")
Cc: sta...@dpdk.org
Signed-off-by: Shun Hao
Acked-by: Matan Azard
---
doc/guides/nics/mlx5.rst| 4
drivers/net/mlx5/mlx5_flow.h| 4
drivers/net/mlx5/mlx5_flow_dv.c | 10 --
3 files changed, 16 insertions(+), 2 deletions(-)
diff --git a/doc/guides/nics/mlx5.rst b/
When using a meter in flow that matches E-Switch Manager, it will fail
due to not handling E-Switch Manager match item correctly. This series
fix this by using correct handling of parsing E-Switch Manager item.
Shun Hao (2):
net/mlx5: add limitation for E-Switch Manager match
net/mlx5: fix
Yellow meter action support is added in meter hierarchy validation.
If one color uses meter action, the other can only use NULL action
or the same meter action. And only shared meter is supported.
Signed-off-by: Shun Hao
Acked-by: Matan Azard
---
doc/guides/nics/mlx5.rst| 6
olicy flows can set the correct meter ID.
Signed-off-by: Shun Hao
Acked-by: Matan Azard
---
drivers/net/mlx5/mlx5_flow_dv.c | 270 +---
1 file changed, 175 insertions(+), 95 deletions(-)
diff --git a/drivers/net/mlx5/mlx5_flow_dv.c b/drivers/net/mlx5/mlx5_flow_dv.c
/yellow in subsequent meter.
Signed-off-by: Shun Hao
Acked-by: Matan Azard
---
drivers/net/mlx5/mlx5.c| 8 ++-
drivers/net/mlx5/mlx5.h| 8 ++-
drivers/net/mlx5/mlx5_flow_dv.c| 100 ++---
drivers/net/mlx5/mlx5_flow_meter.c | 57
This patch adds the support for previous color aware for meter.
Start_color setting is set to UNDEFINED when creating meter object that
is color aware.
Signed-off-by: Shun Hao
Acked-by: Matan Azard
---
drivers/net/mlx5/mlx5.h| 2 ++
drivers/net/mlx5/mlx5_flow_aso.c | 19
meter can be aware
of the previous color, so can have different process strategy.
Shun Hao (4):
net/mlx5: support previous meter color aware
net/mlx5: support yellow meter action in hierarchy
net/mlx5: support yellow meter action for hierarchy tag rule
net/mlx5: add validation for yellow
Add CLI command support for metering and policing of trtcm_rfc4115.
Fixes: 30ffb4e67ee3 ("app/testpmd: add commands traffic metering and policing")
Cc: sta...@dpdk.org
Signed-off-by: Shun Hao
Acked-by: Matan Azard
---
app/test-pmd/cmdline.c | 1 +
1 file changed, 1 insertion(+)
di
e released, leading assert during port close.
This patch fixes this issue by checking both green and yellow queue
index during getting a blank sub-policy, to avoid the incorrect
resource overwrite.
Fixes: b38a12272b3a ("net/mlx5: split meter color policy handling")
Cc: sta...@dpdk.org
Sig
.
2. meter + counter, only counts packets not being dropped.
Fixes: 51ec04dc7bcf ("net/mlx5: connect meter policy to created flows")
Cc: sta...@dpdk.org
Signed-off-by: Shun Hao
Acked-by: Matan Azrad
---
drivers/net/mlx5/mlx5_flow.c | 13 +++--
1 file changed, 11 insertions(+), 2
g
RTE flow, can use the flag to set the mark flag in thread workspace.
Fixes: 082becbf1f35 ("net/mlx5: fix mark enabling for Rx")
Cc: sta...@dpdk.org
Signed-off-by: Shun Hao
Acked-by: Matan Azrad
---
drivers/net/mlx5/mlx5.h | 2 ++
drivers/net/mlx5/mlx5_flow.c| 2 ++
d
64038699f9 ("net/mlx5: support E-Switch manager egress traffic match")
Cc: sta...@dpdk.org
Signed-off-by: Shun Hao
Acked-by: Viacheslav Ovsiienko
---
drivers/common/mlx5/mlx5_devx_cmds.c | 12
drivers/common/mlx5/mlx5_devx_cmds.h | 2 ++
drivers/common/mlx5/m
64038699f9 ("net/mlx5: support E-Switch manager egress traffic match")
Cc: sta...@dpdk.org
Signed-off-by: Shun Hao
Acked-by: Viacheslav Ovsiienko
---
drivers/common/mlx5/mlx5_devx_cmds.c | 12
drivers/common/mlx5/mlx5_devx_cmds.h | 2 ++
drivers/common/mlx5/m
64038699f9 ("net/mlx5: support E-Switch manager egress traffic match")
Cc: sta...@dpdk.org
Signed-off-by: Shun Hao
Acked-by: Viacheslav Ovsiienko
---
drivers/common/mlx5/mlx5_devx_cmds.c | 12
drivers/common/mlx5/mlx5_devx_cmds.h | 2 ++
drivers/common/mlx5/m
firmware), fallback to use the PCI id approach.
Fixes: a564038699f9 ("net/mlx5: support E-Switch manager egress traffic match")
Cc: sta...@dpdk.org
Signed-off-by: Shun Hao
Acked-by: Viacheslav Ovsiienko
---
drivers/net/mlx5/mlx5_flow_dv.c | 4
1 file changed, 4 insertions(+)
di
t/mlx5: support E-Switch manager egress traffic match")
Cc: sta...@dpdk.org
Signed-off-by: Shun Hao
Acked-by: Viacheslav Ovsiienko
---
drivers/common/mlx5/mlx5_devx_cmds.c | 12
drivers/common/mlx5/mlx5_devx_cmds.h | 2 ++
drivers/common/mlx5/mlx5_prm.h | 12
always use the correct value.
Shun Hao (2):
common/mlx5: query E-Switch manager vport ID
net/mlx5: new method to get E-Switch manager vport ID
drivers/common/mlx5/mlx5_devx_cmds.c | 12
drivers/common/mlx5/mlx5_devx_cmds.h | 2 ++
drivers/common/mlx5/mlx5_prm.h
.@dpdk.org
Signed-off-by: Shun Hao
Acked-by: Viacheslav Ovsiienko
---
drivers/net/mlx5/mlx5_flow.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c
index 179cc3b303..0311f91bf2 100644
--- a/drivers/net/mlx5/mlx5_fl
firmware), fallback to use the PCI id approach.
Fixes: a564038699f9 ("net/mlx5: support E-Switch manager egress traffic match")
Cc: sta...@dpdk.org
Signed-off-by: Shun Hao
---
drivers/net/mlx5/mlx5_flow_dv.c | 4
1 file changed, 4 insertions(+)
diff --git a/drivers/net/mlx5/mlx5_f
t/mlx5: support E-Switch manager egress traffic match")
Cc: sta...@dpdk.org
Signed-off-by: Shun Hao
---
drivers/common/mlx5/mlx5_devx_cmds.c | 12
drivers/common/mlx5/mlx5_devx_cmds.h | 2 ++
drivers/common/mlx5/mlx5_prm.h | 12
3 files changed, 26 inserti
always use the correct value.
Shun Hao (2):
common/mlx5: query E-Switch manager vport ID
net/mlx5: new method to get E-Switch manager vport ID
drivers/common/mlx5/mlx5_devx_cmds.c | 12
drivers/common/mlx5/mlx5_devx_cmds.h | 2 ++
drivers/common/mlx5/mlx5_prm.h
statistics.
Add a check in the count action translation to detect the meter case
and use the meter drop dedicated counter in the meter 5-tuple flow
only.
Fixes: f3191849f2c2 ("net/mlx5: support flow count action handle")
Cc: sta...@dpdk.org
Signed-off-by: Shun Hao
Acked-by: Matan Azrad
---
d
cess.
Fix is when creating meter hierarchy, try to inherit the first meter
domains in the meter hierarchy.
Fixes: a3b7af90baba ("net/mlx5: validate meter action in policy")
Cc: sta...@dpdk.org
Signed-off-by: Shun Hao
Acked-by: Matan Azrad
---
drivers/net/mlx5/mlx5_flow_dv.c | 16
1. fix the wrong flow statistics when flow contains both count/meter.
2. fix the wrong meter domain access when meters in hierarchy support
different domains.
Shun Hao (2):
net/mlx5: fix meter flow counter traslation
net/mlx5: fix domains detection in meter hierarchy
drivers/net/mlx5
This adds the validation when creating a policy with meter action.
Currently meter action is only allowed for green color in policy, and
8 meters are supported at maximum in one meter hierarchy.
Signed-off-by: Shun Hao
Acked-by: Matan Azrad
---
doc/guides/nics/mlx5.rst | 15
erence the last meter in
hierarchy. Then all meters have no reference and can be destroyed.
Signed-off-by: Shun Hao
Acked-by: Matan Azrad
---
drivers/net/mlx5/mlx5_flow_dv.c| 15 +++-
drivers/net/mlx5/mlx5_flow_meter.c | 132 +
2 files changed, 145 insert
counted to the
correct drop counter in drop table.
Signed-off-by: Shun Hao
Acked-by: Matan Azrad
---
drivers/net/mlx5/mlx5.h | 20 +-
drivers/net/mlx5/mlx5_flow.c| 52 +-
drivers/net/mlx5/mlx5_flow.h| 7 +
drivers/net/mlx5/mlx5_flow_dv.c | 318
each meter's policy creation.
2. The last meter has RSS policy, don't create sub-policy/rules when
creating meter policy. Only when a RTE flow is using the meter hierarchy,
will iterate all meters of the hierarchy and create neede sub-
policies and color rules for them.
Signed-off-by: Shu
This adds support for meter hierarchy, which means multiple meters can
be chained together, and using the header meter of hierarchy in a flow
will apply all meters in hierarchy to that flow.
Shun Hao (4):
net/mlx5: support meter action in meter policy
net/mlx5: support meter hierarchy drop
fb4aa4f122 ("net/mlx5: support meter policy operations")
Cc: sta...@dpdk.org
Signed-off-by: Shun Hao
Acked-by: Matan Azrad
---
doc/guides/nics/mlx5.rst| 8 +
drivers/net/mlx5/mlx5.h | 2 ++
drivers/net/mlx5/mlx5_flow_dv.c | 58 -
, use that port_id as src port to determine flow direction.
Fixes: c99b4f8bc2f1 ("net/mlx5: support ASO meter action")
Cc: sta...@dpdk.org
Signed-off-by: Shun Hao
Acked-by: Matan Azrad
---
drivers/net/mlx5/mlx5_flow.c | 83 ++--
1 file changed, 50 inserti
different ethdev ports.
Move the policy l3 table to be per port by saving it in the port private
structure.
Fixes: afb4aa4f122 ("net/mlx5: support meter policy operations")
Cc: sta...@dpdk.org
Signed-off-by: Shun Hao
Acked-by: Matan Azrad
---
drivers/net/mlx5/mlx5.c| 2 -
Currently a list is used to save all meter profile ids, which is
not efficient when looking up profile from huge mount of profiles.
This changes to use a l3 table instead to save meter profile ids,
so as to improve the lookup performance.
Signed-off-by: Shun Hao
Acked-by: Matan Azrad
This adds several fixes in ASO meter. With these fixes, meter created
on one port can be shared by other ports.
Shun Hao (4):
net/mlx5: use meter profile lookup table
net/mlx5: fix meter policy ID table container
net/mlx5: fix meter flow direction check
net/mlx5: fix meter policy flow
r number in one hierarchy is 8.
2. Currently only meters with termination policy are allowed in meter
hierarchy.
Signed-off-by: Shun Hao
---
doc/guides/nics/mlx5.rst| 18 +
drivers/net/mlx5/mlx5.h | 5 +
drivers/net/mlx5/mlx5_flow.h| 1 +
drivers/net/mlx5
When getting meter flow_id bits, there's an issue that not handling
correctly if flow_id is 0.
This fix this issue that when flow_id is 0, treat it as 1 bit.
Fixes: 83306d6c46 ("net/mlx5: fix meter statistics")
Cc: sta...@dpdk.org
Signed-off-by: Shun Hao
---
drivers/net/mlx5/
64 matches
Mail list logo