net/mlx5: support count and age actions on root group
Subsystems (2)
cover net/mlx5: support count and age actions on root group
When working with HW Steering flow engine (HWS, dv_flow_en=2),
mlx5 PMD does not support using count and age flow actions
on flow group 0 i.e., root table.
Flow rules on root table are special in a sense that
they are created through mlx5 kernel driver using rdma-core mlx5dv_create_flow() API. This API however does not support using counters from FW-allocated counter bulks which contain more than 1 counter (extensively used with HWS to optimize allocations). This affects age flow action as well, because it's implementation in mlx5 PMD relies on counters.
rdma-core version v60.0 added a new flow action type to mlx5dv_create_flow() API - MLX5DV_FLOW_ACTION_COUNTERS_DEVX_WITH_OFFSET - which allows the use of counters from bigger FW-allocated counter bulks. This in turn allows mlx5 PMD to extend count and age flow action support to group 0.
This patchset implements that support. Patchset contains:
- Patch 1 - Adds detection of MLX5DV_FLOW_ACTION_COUNTERS_DEVX_WITH_OFFSET in rdma-core at build time.
- Patch 2 - Adds support for counter action in HWS layer whenever MLX5DV_FLOW_ACTION_COUNTERS_DEVX_WITH_OFFSET is available.
- Patch 3-4 - Small reworks and fixes which allow cleaner implementation of count/age support.
- Patch 5 - Enables support of count and age flow action in group 0, in flow API implementation with HWS.
Dariusz Sosnowski (5):
common/mlx5: detect DevX counters support in rdma-core net/mlx5/hws: support counter from DevX bulk on root net/mlx5: rework root group checks in table create net/mlx5: improve error reporting on masked indirect actions net/mlx5: support count and age on root group
doc/guides/nics/mlx5.rst | 34 +++++-- doc/guides/rel_notes/release_25_11.rst | 4 + drivers/common/mlx5/linux/meson.build | 2 + drivers/net/mlx5/hws/mlx5dr.h | 14 +++ drivers/net/mlx5/hws/mlx5dr_action.c | 19 ++-- drivers/net/mlx5/mlx5_flow.h | 17 ++++ drivers/net/mlx5/mlx5_flow_hw.c | 136 ++++++++++++++----------- drivers/net/mlx5/mlx5_hws_cnt.c | 43 ++++++-- drivers/net/mlx5/mlx5_hws_cnt.h | 17 +++- 9 files changed, 196 insertions(+), 90 deletions(-)
--
2.39.5
PATCH 1/5 common/mlx5: detect DevX counters support in rdma-core
Starting with rdma-core version v60.0, there's a new action type for mlx5dv_create_flow() which is used to create flow rules in root table.
This new type allows mlx5 PMD to attach flow counters from DevX bulks to flow rules in root table.
This patch adds compile time detection of this new action type, which is used in follow up patches to enable counters on group 0 support if and only if rdma-core supports that.
--- drivers/common/mlx5/linux/meson.build | 2 ++ 1 file changed, 2 insertions(+)
drivers/common/mlx5/linux/meson.build +2 -0
@@ -213,6 +213,8 @@ has_sym_args = [ 'ibv_is_fork_initialized'], [ 'HAVE_IBV_DEVICE_ATTR_ESW_MGR_REG_C0', 'infiniband/mlx5dv.h', 'MLX5DV_CONTEXT_MASK_REG_C0' ], + [ 'HAVE_MLX5DV_FLOW_ACTION_COUNTERS_DEVX_WITH_OFFSET', 'infiniband/mlx5dv.h', + 'MLX5DV_FLOW_ACTION_COUNTERS_DEVX_WITH_OFFSET' ], ] if libmtcr_ul_found has_sym_args += [
Signature · 1 line
2.39.5
PATCH 2/5 net/mlx5/hws: support counter from DevX bulk on root
In reply to Dariusz SosnowskiThis patch adds support for using flow counters with offsets within a DevX bulk, in flow rules on root table, in HWS layer.
--- drivers/net/mlx5/hws/mlx5dr.h | 14 ++++++++++++++ drivers/net/mlx5/hws/mlx5dr_action.c | 19 ++++++++++--------- 2 files changed, 24 insertions(+), 9 deletions(-)
drivers/net/mlx5/hws/mlx5dr.h +14 -0
@@ -738,6 +738,20 @@ mlx5dr_action_create_counter(struct mlx5dr_context *ctx,struct mlx5dr_devx_obj *obj, uint32_t flags); +/* Check if counter action on root table is supported. +* +* @return true if counter action on root table is supported. +*/ +static inline bool +mlx5dr_action_counter_root_is_supported (void ) +{ +#ifdef HAVE_MLX5DV_FLOW_ACTION_COUNTERS_DEVX_WITH_OFFSET +return true; +#else +return false; +#endif +} +/* Create direct rule reformat action. * * @param[in] ctx
drivers/net/mlx5/hws/mlx5dr_action.c +10 -9
@@ -832,16 +832,11 @@ int mlx5dr_action_root_build_attr(struct mlx5dr_rule_action rule_actions[], attr[i].type =MLX5DV_FLOW_ACTION_IBV_FLOW_ACTION ; attr[i].action = action->flow_action;break ; -#ifdef HAVE_IBV_FLOW_DEVX_COUNTERS +#ifdef HAVE_MLX5DV_FLOW_ACTION_COUNTERS_DEVX_WITH_OFFSET case MLX5DR_ACTION_TYP_CTR : - attr[i].type =MLX5DV_FLOW_ACTION_COUNTERS_DEVX ; - attr[i].obj = action->devx_obj; - -if (rule_actions[i].counter.offset) { -DR_LOG (ERR ,"Counter offset not supported over root" ); - rte_errno =ENOTSUP ; -return rte_errno; - } + attr[i].type =MLX5DV_FLOW_ACTION_COUNTERS_DEVX_WITH_OFFSET ; + attr[i].bulk_obj.obj = action->devx_obj; + attr[i].bulk_obj.offset = rule_actions[i].counter.offset;break ;#endif default :
@@ -1712,6 +1707,12 @@ mlx5dr_action_create_counter(struct mlx5dr_context *ctx,return NULL ; } +if (mlx5dr_action_is_root_flags (flags) && + !mlx5dr_action_counter_root_is_supported ()) { + rte_errno =ENOTSUP ; +return NULL ; + } + action =mlx5dr_action_create_generic (ctx, flags,MLX5DR_ACTION_TYP_CTR );if (!action)return NULL ;
Signature · 1 line
2.39.5
PATCH 3/5 net/mlx5: rework root group checks in table create
In reply to Dariusz SosnowskiBefore this patch, during flow actions translation done in template table create, there were a lot of checks for group with index 0. This group is special, because flow rules in that group are created through mlx5 kernel driver.
For this reason, this group is referred to as root group or root table.
This patch reworks these group index checks for clarity:
- A dedicated function for checking if group index refers to root group is added.
- All direct group index checks in actions translation are replaced with a check for result of that function.
- Redundant group translation checks in actions translation is removed. Group indexes are already translated at that point.
- Root group check for internal default miss action is removed. This action is supported on root group assuming rdma-core supports it. If rdma-core core does not support it, then HWS layer will reject accordingly.
--- drivers/net/mlx5/mlx5_flow.h | 17 +++++++++++++++++ drivers/net/mlx5/mlx5_flow_hw.c | 34 ++++++--------------------------- 2 files changed, 23 insertions(+), 28 deletions(-)
drivers/net/mlx5/mlx5_flow.h +17 -0
@@ -1658,6 +1658,23 @@ struct mlx5_flow_group {struct mlx5_list *matchers; }; +/** +* Returns true if a group with the given index is a root group. +* +* @param group_id +* Group index. +* It is assumed that provided index is already translated from user index to PMD index +* (as is for transfer groups for example). +* +* @returns +* True if group is a root group. +* False otherwise. +*/ +static inline bool +mlx5_group_id_is_root (uint32_t group_id) +{ +return group_id ==0 ; +}#define MLX5_HW_TBL_MAX_ITEM_TEMPLATE 32#define MLX5_HW_TBL_MAX_ACTION_TEMPLATE 32
drivers/net/mlx5/mlx5_flow_hw.c +6 -28
@@ -2507,7 +2507,7 @@ __flow_hw_translate_actions_template(struct rte_eth_dev *dev,unsigned int of_vlan_offset;uint32_t ct_idx;int ret, err; -uint32_t target_grp =0 ; +bool is_root =mlx5_group_id_is_root (cfg->attr.flow_attr.group);bool unified_fdb =is_unified_fdb (priv);flow_hw_modify_field_init (&mhdr, at);
@@ -2519,7 +2519,7 @@ __flow_hw_translate_actions_template(struct rte_eth_dev *dev,switch ((int )actions->type) {case RTE_FLOW_ACTION_TYPE_INDIRECT_LIST : -if (!attr->group) { +if (is_root) {DRV_LOG (ERR ,"Indirect action is not supported in root table." ); goto err; }
@@ -2529,7 +2529,7 @@ __flow_hw_translate_actions_template(struct rte_eth_dev *dev, goto err;break ;case RTE_FLOW_ACTION_TYPE_INDIRECT : -if (!attr->group) { +if (is_root) {DRV_LOG (ERR ,"Indirect action is not supported in root table." ); goto err; }
@@ -2550,10 +2550,6 @@ __flow_hw_translate_actions_template(struct rte_eth_dev *dev, priv->hw_drop[!!attr->group];break ;case RTE_FLOW_ACTION_TYPE_PORT_REPRESENTOR : -if (!attr->group) { -DRV_LOG (ERR ,"Port representor is not supported in root table." ); - goto err; - } acts->rule_acts[dr_pos].action = priv->hw_def_miss;break ;case RTE_FLOW_ACTION_TYPE_FLAG :
@@ -2745,11 +2741,7 @@ __flow_hw_translate_actions_template(struct rte_eth_dev *dev, recom_type =MLX5DR_ACTION_TYP_POP_IPV6_ROUTE_EXT ;break ;case RTE_FLOW_ACTION_TYPE_SEND_TO_KERNEL : - ret =flow_hw_translate_group (dev, cfg, attr->group, - &target_grp, &sub_error); -if (ret) - goto err; -if (target_grp ==0 ) { +if (is_root) {__flow_hw_action_template_destroy (dev, acts); rte_flow_error_set(&sub_error, ENOTSUP, RTE_FLOW_ERROR_TYPE_ACTION,
@@ -2773,11 +2765,7 @@ __flow_hw_translate_actions_template(struct rte_eth_dev *dev, goto err;break ;case RTE_FLOW_ACTION_TYPE_AGE : - ret =flow_hw_translate_group (dev, cfg, attr->group, - &target_grp, &sub_error); -if (ret) - goto err; -if (target_grp ==0 ) { +if (is_root) {__flow_hw_action_template_destroy (dev, acts); rte_flow_error_set(&sub_error, ENOTSUP, RTE_FLOW_ERROR_TYPE_ACTION,
@@ -2792,11 +2780,7 @@ __flow_hw_translate_actions_template(struct rte_eth_dev *dev, goto err;break ;case RTE_FLOW_ACTION_TYPE_COUNT : - ret =flow_hw_translate_group (dev, cfg, attr->group, - &target_grp, &sub_error); -if (ret) - goto err; -if (target_grp ==0 ) { +if (is_root) {__flow_hw_action_template_destroy (dev, acts); rte_flow_error_set(&sub_error, ENOTSUP, RTE_FLOW_ERROR_TYPE_ACTION,
@@ -2855,12 +2839,6 @@ __flow_hw_translate_actions_template(struct rte_eth_dev *dev, goto err;break ;case MLX5_RTE_FLOW_ACTION_TYPE_DEFAULT_MISS : -/* Internal, can be skipped. */ -if (!!attr->group) { -DRV_LOG (ERR ,"DEFAULT MISS action is only" -" supported in root table." ); - goto err; - } acts->rule_acts[dr_pos].action = priv->hw_def_miss;break ;case RTE_FLOW_ACTION_TYPE_NAT64 :
Signature · 1 line
2.39.5
PATCH 4/5 net/mlx5: improve error reporting on masked indirect actions
In reply to Dariusz SosnowskiThis patch improves error reporting for masked indirect actions, during flow actions translation done in HWS mode:
- Replace "return -1" with error reporting through rte_flow_error.
- Change log level from WARNING to ERR.
- Add more information to log messages (port index
and action handle).
--- drivers/net/mlx5/mlx5_flow_hw.c | 42 +++++++++++++++++++++++---------- 1 file changed, 29 insertions(+), 13 deletions(-)
drivers/net/mlx5/mlx5_flow_hw.c +29 -13
@@ -1321,7 +1321,8 @@ flow_hw_shared_action_translate(struct rte_eth_dev *dev,const struct rte_flow_action *action, struct mlx5_hw_actions *acts, uint16_t action_src, - uint16_t action_dst) + uint16_t action_dst, + struct rte_flow_error *error) { struct mlx5_priv *priv = dev->data->dev_private;struct mlx5_shared_action_rss *shared_rss;
@@ -1338,8 +1339,10 @@ flow_hw_shared_action_translate(struct rte_eth_dev *dev, (priv, acts, (enum rte_flow_action_type)MLX5_RTE_FLOW_ACTION_TYPE_RSS, action_src, action_dst, idx, shared_rss)) { -DRV_LOG (WARNING ,"Indirect RSS action index %d translate failed" , act_idx); -return -1 ; +DRV_LOG (ERR ,"port %u Indirect RSS action (handle %p) translate failed" , + dev->data->port_id, action->conf); +return rte_flow_error_set (error,EINVAL ,RTE_FLOW_ERROR_TYPE_ACTION , + action,"Indirect RSS action translate failed" ); }break ;case MLX5_INDIRECT_ACTION_TYPE_COUNT :
@@ -1347,15 +1350,22 @@ flow_hw_shared_action_translate(struct rte_eth_dev *dev, (enum rte_flow_action_type) MLX5_RTE_FLOW_ACTION_TYPE_COUNT, action_src, action_dst, act_idx)) { -DRV_LOG (WARNING ,"Indirect count action translate failed" ); -return -1 ; +DRV_LOG (ERR , +"port %u Indirect count action (handle %p) " +"translate failed" , + dev->data->port_id, action->conf); +return rte_flow_error_set (error,EINVAL ,RTE_FLOW_ERROR_TYPE_ACTION , + action, +"Indirect count action translate failed" ); }break ;case MLX5_INDIRECT_ACTION_TYPE_CT :if (flow_hw_ct_compile (dev,MLX5_HW_INV_QUEUE , idx, &acts->rule_acts[action_dst])) { -DRV_LOG (WARNING ,"Indirect CT action translate failed" ); -return -1 ; +DRV_LOG (ERR ,"port %u Indirect CT action (handle %p) translate failed" , + dev->data->port_id, action->conf); +return rte_flow_error_set (error,EINVAL ,RTE_FLOW_ERROR_TYPE_ACTION , + action,"Indirect CT action translate failed" ); }break ;case MLX5_INDIRECT_ACTION_TYPE_METER_MARK :
@@ -1363,16 +1373,22 @@ flow_hw_shared_action_translate(struct rte_eth_dev *dev, (enum rte_flow_action_type) MLX5_RTE_FLOW_ACTION_TYPE_METER_MARK, action_src, action_dst, idx)) { -DRV_LOG (WARNING ,"Indirect meter mark action translate failed" ); -return -1 ; +DRV_LOG (ERR , +"port %u Indirect meter mark action (handle %p) " +"translate failed" , + dev->data->port_id, action->conf); +return rte_flow_error_set (error,EINVAL ,RTE_FLOW_ERROR_TYPE_ACTION , + action, +"Indirect meter mark action translate failed" ); }break ;case MLX5_INDIRECT_ACTION_TYPE_QUOTA :flow_hw_construct_quota (priv, &acts->rule_acts[action_dst], idx);break ;default : -DRV_LOG (WARNING ,"Unsupported shared action type:%d" , type); -break ; +DRV_LOG (ERR ,"Unsupported shared action type: %d" , type); +return rte_flow_error_set (error,ENOTSUP ,RTE_FLOW_ERROR_TYPE_ACTION , action, +"Unsupported shared action type" ); }return 0 ; }
@@ -2534,8 +2550,8 @@ __flow_hw_translate_actions_template(struct rte_eth_dev *dev, goto err; }if (actions->conf && masks->conf) { -if (flow_hw_shared_action_translate - (dev, actions, acts, src_pos, dr_pos)) +if (flow_hw_shared_action_translate (dev, actions, acts, + src_pos, dr_pos, &sub_error)) goto err; } else if (__flow_hw_act_data_indirect_append (priv, acts, RTE_FLOW_ACTION_TYPE_INDIRECT,
Signature · 1 line
2.39.5
PATCH 5/5 net/mlx5: support count and age on root group
In reply to Dariusz SosnowskiThis patch enables support for count and age flow actions in root table i.e. flow group 0, when working
with HW Steering flow engine (dv_flow_en = 2).
It depends on support in HWS layer introduced in previous patches.
Specifically this patch:
- Adjusts action validation during flow actions translation to allow count and age on root group.
- Adds creation and destruction of mlx5dr count action for use on root group.
- Adjusts count action construction (done during rule create) to select correct action variant based on the group where the rule is created.
--- doc/guides/nics/mlx5.rst | 34 ++++++++----- doc/guides/rel_notes/release_25_11.rst | 4 ++ drivers/net/mlx5/mlx5_flow_hw.c | 66 ++++++++++++++++++-------- drivers/net/mlx5/mlx5_hws_cnt.c | 43 +++++++++++++---- drivers/net/mlx5/mlx5_hws_cnt.h | 17 +++++-- 5 files changed, 121 insertions(+), 43 deletions(-)
doc/guides/nics/mlx5.rst +23 -11
@@ -2698,19 +2698,26 @@ DPDK 19.05 19.02 21.05 21.05 Limitations ^^^^^^^^^^^ -Because freeing a counter (by destroying a flow rule or destroying indirect action) -does not immediately make it available for the application, -the PMD might return: +With :ref:`HW steering <mlx5_hws>`: -- ``ENOENT`` if no counter is available in ``free``, ``reuse`` - or ``wait_reset`` rings. - No counter will be available until the application releases some of them. -- ``EAGAIN`` if no counter is available in ``free`` and ``reuse`` rings, - but there are counters in ``wait_reset`` ring. - This means that after the next service thread cycle new counters will be available. +#. Because freeing a counter (by destroying a flow rule or destroying indirect action) + does not immediately make it available for the application, + the PMD might return: -The application has to be aware that flow rule create or indirect action create -might need be retried. + - ``ENOENT`` if no counter is available in ``free``, ``reuse`` + or ``wait_reset`` rings. + No counter will be available until the application releases some of them. + - ``EAGAIN`` if no counter is available in ``free`` and ``reuse`` rings, + but there are counters in ``wait_reset`` ring. + This means that after the next service thread cycle new counters will be available. + + The application has to be aware that flow rule create or indirect action create + might need be retried. + +#. Using count action on root tables requires: + + - Linux kernel >= v6.4 + - rdma-core >= v60.0 .. _mlx5_age:
@@ -2754,6 +2761,11 @@ With :ref:`HW steering <mlx5_hws>`, (``RTE_FLOW_PORT_FLAG_STRICT_QUEUE`` passed to ``rte_flow_configure()``), indirect age actions can be created only through asynchronous flow API. +#. Using age action on root tables requires: + + - Linux kernel >= v6.4 + - rdma-core >= v60.0 + .. _mlx5_quota:
doc/guides/rel_notes/release_25_11.rst +4 -0
@@ -147,6 +147,10 @@ New Features * Added multi-process per port. * Optimized code. +* **Updated NVIDIA mlx5 driver.** + + * Support count and age flow actions on root tables with HW Steering flow engine. + * **Added PQC ML algorithms in cryptodev.** * Added PQC ML-KEM support with reference to FIPS203.
drivers/net/mlx5/mlx5_flow_hw.c +46 -20
152 lines not on this page · raw message
drivers/net/mlx5/mlx5_hws_cnt.c +34 -9
70 lines not on this page · raw message
drivers/net/mlx5/mlx5_hws_cnt.h +14 -3
@@ -31,7 +31,8 @@#define MLX5_HWS_AGE_IDX_MASK (RTE_BIT32(MLX5_INDIRECT_ACTION_TYPE_OFFSET) - 1)struct mlx5_hws_cnt_dcs { -void *dr_action; +struct mlx5dr_action *root_action;/* mlx5dr action used on root groups. */ +struct mlx5dr_action *hws_action;/* mlx5dr action used on non-root groups. */ uint32_t batch_sz;uint32_t iidx;/* internal index of first counter in this bulk. */ struct mlx5_devx_obj *obj;
@@ -113,6 +114,7 @@ struct __rte_cache_aligned mlx5_hws_cnt_pool {struct mlx5_hws_cnt_pool_caches *cache;uint64_t time_of_last_age_check;struct mlx5_priv *priv; + uint32_t is_root_supported:1; };/* HWS AGE status. */
@@ -632,12 +634,21 @@ mlx5_hws_cnt_pool_get_size(struct mlx5_hws_cnt_pool *cpool) static __rte_always_inline intmlx5_hws_cnt_pool_get_action_offset (struct mlx5_hws_cnt_pool *cpool,cnt_id_t cnt_id,struct mlx5dr_action **action, -uint32_t *offset) +uint32_t *offset,bool is_root) {uint8_t idx = cnt_id >>MLX5_HWS_CNT_DCS_IDX_OFFSET ; idx &=MLX5_HWS_CNT_DCS_IDX_MASK ; - *action = cpool->dcs_mng.dcs[idx].dr_action; +if (likely (!is_root)) { + *action = cpool->dcs_mng.dcs[idx].hws_action; + }else { +/* +* Any table using counter on root group should be rejected on validation +* when counter on root is not supported. +*/ +MLX5_ASSERT (cpool->dcs_mng.dcs[idx].root_action !=NULL ); + *action = cpool->dcs_mng.dcs[idx].root_action; + } *offset = cnt_id &MLX5_HWS_CNT_IDX_MASK ;return 0 ; }
Signature · 1 line
2.39.5
v2 cover net/mlx5: support count and age actions on root group
In reply to Dariusz SosnowskiWhen working with HW Steering flow engine (HWS, dv_flow_en=2),
mlx5 PMD does not support using count and age flow actions
on flow group 0 i.e., root table.
Flow rules on root table are special in a sense that
they are created through mlx5 kernel driver using rdma-core mlx5dv_create_flow() API. This API however does not support using counters from FW-allocated counter bulks which contain more than 1 counter (extensively used with HWS to optimize allocations). This affects age flow action as well, because it's implementation in mlx5 PMD relies on counters.
rdma-core version v60.0 added a new flow action type to mlx5dv_create_flow() API - MLX5DV_FLOW_ACTION_COUNTERS_DEVX_WITH_OFFSET - which allows the use of counters from bigger FW-allocated counter bulks. This in turn allows mlx5 PMD to extend count and age flow action support to group 0.
This patchset implements that support. Patchset contains:
- Patch 1 - Fixes for indirect flow action error reporting.
- Patch 2 - Adds detection of MLX5DV_FLOW_ACTION_COUNTERS_DEVX_WITH_OFFSET in rdma-core at build time.
- Patch 3 - Adds support for counter action in HWS layer whenever MLX5DV_FLOW_ACTION_COUNTERS_DEVX_WITH_OFFSET is available.
- Patch 4 - Reworks for group 0/root table checks to allow easier implementaiton
- Patch 5 - Enables support of count and age flow action in group 0, in flow API implementation with HWS.
v2:
- Added logging in mlx5dr action creation whenever count is not supported on root.
- Removed redundant is_root_supported field from mlx5_hws_cnt_pool struct and replaced it with compile time checks, since feature depends on version of rdma-core available at compilation.
- Unify error messages for unsupported count/age action, so all refer to root table.
- Added Fixes tags to patch 4 from v1 and moved it as patch no. 1.
Dariusz Sosnowski (5):
net/mlx5: fix error reporting on masked indirect actions common/mlx5: detect DevX counters support in rdma-core net/mlx5/hws: support counter from DevX bulk on root net/mlx5: rework root group checks in table create net/mlx5: support count and age on root group
doc/guides/nics/mlx5.rst | 34 ++++--- doc/guides/rel_notes/release_25_11.rst | 4 + drivers/common/mlx5/linux/meson.build | 2 + drivers/net/mlx5/hws/mlx5dr.h | 14 +++ drivers/net/mlx5/hws/mlx5dr_action.c | 20 ++-- drivers/net/mlx5/mlx5_flow.h | 17 ++++ drivers/net/mlx5/mlx5_flow_hw.c | 123 ++++++++++++++----------- drivers/net/mlx5/mlx5_hws_cnt.c | 42 +++++++-- drivers/net/mlx5/mlx5_hws_cnt.h | 16 +++- 9 files changed, 185 insertions(+), 87 deletions(-)
--
2.39.5
PATCH v2 1/5 net/mlx5: fix error reporting on masked indirect actions
Whenever masked indirect actions in actions template were handled by mlx5 PMD and user passed incorrect action configuration, the specific errors were not returned through rte_flow_error struct. Existing logs also used WARNING log level, which made debugging a bit harder.
This patch fixes error reporting for masked indirect actions, during flow actions translation done in HWS mode:
- Replace "return -1" with error reporting through rte_flow_error.
- Change log level from WARNING to ERR.
- Add more information to log messages (port index
and action handle).
--- drivers/net/mlx5/mlx5_flow_hw.c | 42 +++++++++++++++++++++++---------- 1 file changed, 29 insertions(+), 13 deletions(-)
drivers/net/mlx5/mlx5_flow_hw.c +29 -13
@@ -1321,7 +1321,8 @@ flow_hw_shared_action_translate(struct rte_eth_dev *dev,const struct rte_flow_action *action, struct mlx5_hw_actions *acts, uint16_t action_src, - uint16_t action_dst) + uint16_t action_dst, + struct rte_flow_error *error) { struct mlx5_priv *priv = dev->data->dev_private;struct mlx5_shared_action_rss *shared_rss;
@@ -1338,8 +1339,10 @@ flow_hw_shared_action_translate(struct rte_eth_dev *dev, (priv, acts, (enum rte_flow_action_type)MLX5_RTE_FLOW_ACTION_TYPE_RSS, action_src, action_dst, idx, shared_rss)) { -DRV_LOG (WARNING ,"Indirect RSS action index %d translate failed" , act_idx); -return -1 ; +DRV_LOG (ERR ,"port %u Indirect RSS action (handle %p) translate failed" , + dev->data->port_id, action->conf); +return rte_flow_error_set (error,EINVAL ,RTE_FLOW_ERROR_TYPE_ACTION , + action,"Indirect RSS action translate failed" ); }break ;case MLX5_INDIRECT_ACTION_TYPE_COUNT :
@@ -1347,15 +1350,22 @@ flow_hw_shared_action_translate(struct rte_eth_dev *dev, (enum rte_flow_action_type) MLX5_RTE_FLOW_ACTION_TYPE_COUNT, action_src, action_dst, act_idx)) { -DRV_LOG (WARNING ,"Indirect count action translate failed" ); -return -1 ; +DRV_LOG (ERR , +"port %u Indirect count action (handle %p) " +"translate failed" , + dev->data->port_id, action->conf); +return rte_flow_error_set (error,EINVAL ,RTE_FLOW_ERROR_TYPE_ACTION , + action, +"Indirect count action translate failed" ); }break ;case MLX5_INDIRECT_ACTION_TYPE_CT :if (flow_hw_ct_compile (dev,MLX5_HW_INV_QUEUE , idx, &acts->rule_acts[action_dst])) { -DRV_LOG (WARNING ,"Indirect CT action translate failed" ); -return -1 ; +DRV_LOG (ERR ,"port %u Indirect CT action (handle %p) translate failed" , + dev->data->port_id, action->conf); +return rte_flow_error_set (error,EINVAL ,RTE_FLOW_ERROR_TYPE_ACTION , + action,"Indirect CT action translate failed" ); }break ;case MLX5_INDIRECT_ACTION_TYPE_METER_MARK :
@@ -1363,16 +1373,22 @@ flow_hw_shared_action_translate(struct rte_eth_dev *dev, (enum rte_flow_action_type) MLX5_RTE_FLOW_ACTION_TYPE_METER_MARK, action_src, action_dst, idx)) { -DRV_LOG (WARNING ,"Indirect meter mark action translate failed" ); -return -1 ; +DRV_LOG (ERR , +"port %u Indirect meter mark action (handle %p) " +"translate failed" , + dev->data->port_id, action->conf); +return rte_flow_error_set (error,EINVAL ,RTE_FLOW_ERROR_TYPE_ACTION , + action, +"Indirect meter mark action translate failed" ); }break ;case MLX5_INDIRECT_ACTION_TYPE_QUOTA :flow_hw_construct_quota (priv, &acts->rule_acts[action_dst], idx);break ;default : -DRV_LOG (WARNING ,"Unsupported shared action type:%d" , type); -break ; +DRV_LOG (ERR ,"Unsupported shared action type: %d" , type); +return rte_flow_error_set (error,ENOTSUP ,RTE_FLOW_ERROR_TYPE_ACTION , action, +"Unsupported shared action type" ); }return 0 ; }
@@ -2534,8 +2550,8 @@ __flow_hw_translate_actions_template(struct rte_eth_dev *dev, goto err; }if (actions->conf && masks->conf) { -if (flow_hw_shared_action_translate - (dev, actions, acts, src_pos, dr_pos)) +if (flow_hw_shared_action_translate (dev, actions, acts, + src_pos, dr_pos, &sub_error)) goto err; } else if (__flow_hw_act_data_indirect_append (priv, acts, RTE_FLOW_ACTION_TYPE_INDIRECT,
Signature · 1 line
2.39.5
PATCH v2 2/5 common/mlx5: detect DevX counters support in rdma-core
In reply to Dariusz SosnowskiStarting with rdma-core version v60.0, there's a new action type for mlx5dv_create_flow() which is used to create flow rules in root table.
This new type allows mlx5 PMD to attach flow counters from DevX bulks to flow rules in root table.
This patch adds compile time detection of this new action type, which is used in follow up patches to enable counters on group 0 support if and only if rdma-core supports that.
--- drivers/common/mlx5/linux/meson.build | 2 ++ 1 file changed, 2 insertions(+)
drivers/common/mlx5/linux/meson.build +2 -0
@@ -213,6 +213,8 @@ has_sym_args = [ 'ibv_is_fork_initialized'], [ 'HAVE_IBV_DEVICE_ATTR_ESW_MGR_REG_C0', 'infiniband/mlx5dv.h', 'MLX5DV_CONTEXT_MASK_REG_C0' ], + [ 'HAVE_MLX5DV_FLOW_ACTION_COUNTERS_DEVX_WITH_OFFSET', 'infiniband/mlx5dv.h', + 'MLX5DV_FLOW_ACTION_COUNTERS_DEVX_WITH_OFFSET' ], ] if libmtcr_ul_found has_sym_args += [
Signature · 1 line
2.39.5
PATCH v2 3/5 net/mlx5/hws: support counter from DevX bulk on root
In reply to Dariusz SosnowskiThis patch adds support for using flow counters with offsets within a DevX bulk, in flow rules on root table, in HWS layer.
--- drivers/net/mlx5/hws/mlx5dr.h | 14 ++++++++++++++ drivers/net/mlx5/hws/mlx5dr_action.c | 20 +++++++++++--------- 2 files changed, 25 insertions(+), 9 deletions(-)
drivers/net/mlx5/hws/mlx5dr.h +14 -0
@@ -738,6 +738,20 @@ mlx5dr_action_create_counter(struct mlx5dr_context *ctx,struct mlx5dr_devx_obj *obj, uint32_t flags); +/* Check if counter action on root table is supported. +* +* @return true if counter action on root table is supported. +*/ +static inline bool +mlx5dr_action_counter_root_is_supported (void ) +{ +#ifdef HAVE_MLX5DV_FLOW_ACTION_COUNTERS_DEVX_WITH_OFFSET +return true; +#else +return false; +#endif +} +/* Create direct rule reformat action. * * @param[in] ctx
drivers/net/mlx5/hws/mlx5dr_action.c +11 -9
@@ -832,16 +832,11 @@ int mlx5dr_action_root_build_attr(struct mlx5dr_rule_action rule_actions[], attr[i].type =MLX5DV_FLOW_ACTION_IBV_FLOW_ACTION ; attr[i].action = action->flow_action;break ; -#ifdef HAVE_IBV_FLOW_DEVX_COUNTERS +#ifdef HAVE_MLX5DV_FLOW_ACTION_COUNTERS_DEVX_WITH_OFFSET case MLX5DR_ACTION_TYP_CTR : - attr[i].type =MLX5DV_FLOW_ACTION_COUNTERS_DEVX ; - attr[i].obj = action->devx_obj; - -if (rule_actions[i].counter.offset) { -DR_LOG (ERR ,"Counter offset not supported over root" ); - rte_errno =ENOTSUP ; -return rte_errno; - } + attr[i].type =MLX5DV_FLOW_ACTION_COUNTERS_DEVX_WITH_OFFSET ; + attr[i].bulk_obj.obj = action->devx_obj; + attr[i].bulk_obj.offset = rule_actions[i].counter.offset;break ;#endif default :
@@ -1712,6 +1707,13 @@ mlx5dr_action_create_counter(struct mlx5dr_context *ctx,return NULL ; } +if (mlx5dr_action_is_root_flags (flags) && + !mlx5dr_action_counter_root_is_supported ()) { +DR_LOG (ERR ,"Counter action is not supported on root" ); + rte_errno =ENOTSUP ; +return NULL ; + } + action =mlx5dr_action_create_generic (ctx, flags,MLX5DR_ACTION_TYP_CTR );if (!action)return NULL ;
Signature · 1 line
2.39.5
PATCH v2 4/5 net/mlx5: rework root group checks in table create
In reply to Dariusz SosnowskiBefore this patch, during flow actions translation done in template table create, there were a lot of checks for group with index 0. This group is special, because flow rules in that group are created through mlx5 kernel driver.
For this reason, this group is referred to as root group or root table.
This patch reworks these group index checks for clarity:
- A dedicated function for checking if group index refers to root group is added.
- All direct group index checks in actions translation are replaced with a check for result of that function.
- Redundant group translation checks in actions translation is removed. Group indexes are already translated at that point.
- Root group check for internal default miss action is removed. This action is supported on root group assuming rdma-core supports it. If rdma-core core does not support it, then HWS layer will reject accordingly.
--- drivers/net/mlx5/mlx5_flow.h | 17 +++++++++++++++++ drivers/net/mlx5/mlx5_flow_hw.c | 32 +++++++------------------------- 2 files changed, 24 insertions(+), 25 deletions(-)
drivers/net/mlx5/mlx5_flow.h +17 -0
@@ -1658,6 +1658,23 @@ struct mlx5_flow_group {struct mlx5_list *matchers; }; +/** +* Returns true if a group with the given index is a root group. +* +* @param group_id +* Group index. +* It is assumed that provided index is already translated from user index to PMD index +* (as is for transfer groups for example). +* +* @returns +* True if group is a root group. +* False otherwise. +*/ +static inline bool +mlx5_group_id_is_root (uint32_t group_id) +{ +return group_id ==0 ; +}#define MLX5_HW_TBL_MAX_ITEM_TEMPLATE 32#define MLX5_HW_TBL_MAX_ACTION_TEMPLATE 32
drivers/net/mlx5/mlx5_flow_hw.c +7 -25
@@ -2523,7 +2523,7 @@ __flow_hw_translate_actions_template(struct rte_eth_dev *dev,unsigned int of_vlan_offset;uint32_t ct_idx;int ret, err; -uint32_t target_grp =0 ; +bool is_root =mlx5_group_id_is_root (cfg->attr.flow_attr.group);bool unified_fdb =is_unified_fdb (priv);flow_hw_modify_field_init (&mhdr, at);
@@ -2535,7 +2535,7 @@ __flow_hw_translate_actions_template(struct rte_eth_dev *dev,switch ((int )actions->type) {case RTE_FLOW_ACTION_TYPE_INDIRECT_LIST : -if (!attr->group) { +if (is_root) {DRV_LOG (ERR ,"Indirect action is not supported in root table." ); goto err; }
@@ -2545,7 +2545,7 @@ __flow_hw_translate_actions_template(struct rte_eth_dev *dev, goto err;break ;case RTE_FLOW_ACTION_TYPE_INDIRECT : -if (!attr->group) { +if (is_root) {DRV_LOG (ERR ,"Indirect action is not supported in root table." ); goto err; }
@@ -2566,7 +2566,7 @@ __flow_hw_translate_actions_template(struct rte_eth_dev *dev, priv->hw_drop[!!attr->group];break ;case RTE_FLOW_ACTION_TYPE_PORT_REPRESENTOR : -if (!attr->group) { +if (is_root) {DRV_LOG (ERR ,"Port representor is not supported in root table." ); goto err; }
@@ -2761,11 +2761,7 @@ __flow_hw_translate_actions_template(struct rte_eth_dev *dev, recom_type =MLX5DR_ACTION_TYP_POP_IPV6_ROUTE_EXT ;break ;case RTE_FLOW_ACTION_TYPE_SEND_TO_KERNEL : - ret =flow_hw_translate_group (dev, cfg, attr->group, - &target_grp, &sub_error); -if (ret) - goto err; -if (target_grp ==0 ) { +if (is_root) {__flow_hw_action_template_destroy (dev, acts); rte_flow_error_set(&sub_error, ENOTSUP, RTE_FLOW_ERROR_TYPE_ACTION,
@@ -2789,11 +2785,7 @@ __flow_hw_translate_actions_template(struct rte_eth_dev *dev, goto err;break ;case RTE_FLOW_ACTION_TYPE_AGE : - ret =flow_hw_translate_group (dev, cfg, attr->group, - &target_grp, &sub_error); -if (ret) - goto err; -if (target_grp ==0 ) { +if (is_root) {__flow_hw_action_template_destroy (dev, acts); rte_flow_error_set(&sub_error, ENOTSUP, RTE_FLOW_ERROR_TYPE_ACTION,
@@ -2808,11 +2800,7 @@ __flow_hw_translate_actions_template(struct rte_eth_dev *dev, goto err;break ;case RTE_FLOW_ACTION_TYPE_COUNT : - ret =flow_hw_translate_group (dev, cfg, attr->group, - &target_grp, &sub_error); -if (ret) - goto err; -if (target_grp ==0 ) { +if (is_root) {__flow_hw_action_template_destroy (dev, acts); rte_flow_error_set(&sub_error, ENOTSUP, RTE_FLOW_ERROR_TYPE_ACTION,
@@ -2871,12 +2859,6 @@ __flow_hw_translate_actions_template(struct rte_eth_dev *dev, goto err;break ;case MLX5_RTE_FLOW_ACTION_TYPE_DEFAULT_MISS : -/* Internal, can be skipped. */ -if (!!attr->group) { -DRV_LOG (ERR ,"DEFAULT MISS action is only" -" supported in root table." ); - goto err; - } acts->rule_acts[dr_pos].action = priv->hw_def_miss;break ;case RTE_FLOW_ACTION_TYPE_NAT64 :
Signature · 1 line
2.39.5
PATCH v2 5/5 net/mlx5: support count and age on root group
In reply to Dariusz SosnowskiThis patch enables support for count and age flow actions in root table i.e. flow group 0, when working
with HW Steering flow engine (dv_flow_en = 2).
It depends on support in HWS layer introduced in previous patches.
Specifically this patch:
- Adjusts action validation during flow actions translation to allow count and age on root group.
- Adds creation and destruction of mlx5dr count action for use on root group.
- Adjusts count action construction (done during rule create) to select correct action variant based on the group where the rule is created.
--- doc/guides/nics/mlx5.rst | 34 ++++++++++------ doc/guides/rel_notes/release_25_11.rst | 4 ++ drivers/net/mlx5/mlx5_flow_hw.c | 55 ++++++++++++++++---------- drivers/net/mlx5/mlx5_hws_cnt.c | 42 +++++++++++++++----- drivers/net/mlx5/mlx5_hws_cnt.h | 16 ++++++-- 5 files changed, 108 insertions(+), 43 deletions(-)
doc/guides/nics/mlx5.rst +23 -11
@@ -2698,19 +2698,26 @@ DPDK 19.05 19.02 21.05 21.05 Limitations ^^^^^^^^^^^ -Because freeing a counter (by destroying a flow rule or destroying indirect action) -does not immediately make it available for the application, -the PMD might return: +With :ref:`HW steering <mlx5_hws>`: -- ``ENOENT`` if no counter is available in ``free``, ``reuse`` - or ``wait_reset`` rings. - No counter will be available until the application releases some of them. -- ``EAGAIN`` if no counter is available in ``free`` and ``reuse`` rings, - but there are counters in ``wait_reset`` ring. - This means that after the next service thread cycle new counters will be available. +#. Because freeing a counter (by destroying a flow rule or destroying indirect action) + does not immediately make it available for the application, + the PMD might return: -The application has to be aware that flow rule create or indirect action create -might need be retried. + - ``ENOENT`` if no counter is available in ``free``, ``reuse`` + or ``wait_reset`` rings. + No counter will be available until the application releases some of them. + - ``EAGAIN`` if no counter is available in ``free`` and ``reuse`` rings, + but there are counters in ``wait_reset`` ring. + This means that after the next service thread cycle new counters will be available. + + The application has to be aware that flow rule create or indirect action create + might need be retried. + +#. Using count action on root tables requires: + + - Linux kernel >= v6.4 + - rdma-core >= v60.0 .. _mlx5_age:
@@ -2754,6 +2761,11 @@ With :ref:`HW steering <mlx5_hws>`, (``RTE_FLOW_PORT_FLAG_STRICT_QUEUE`` passed to ``rte_flow_configure()``), indirect age actions can be created only through asynchronous flow API. +#. Using age action on root tables requires: + + - Linux kernel >= v6.4 + - rdma-core >= v60.0 + .. _mlx5_quota:
doc/guides/rel_notes/release_25_11.rst +4 -0
@@ -147,6 +147,10 @@ New Features * Added multi-process per port. * Optimized code. +* **Updated NVIDIA mlx5 driver.** + + * Support count and age flow actions on root tables with HW Steering flow engine. + * **Added PQC ML algorithms in cryptodev.** * Added PQC ML-KEM support with reference to FIPS203.
drivers/net/mlx5/mlx5_flow_hw.c +35 -20
141 lines not on this page · raw message
drivers/net/mlx5/mlx5_hws_cnt.c +33 -9
69 lines not on this page · raw message
drivers/net/mlx5/mlx5_hws_cnt.h +13 -3
@@ -31,7 +31,8 @@#define MLX5_HWS_AGE_IDX_MASK (RTE_BIT32(MLX5_INDIRECT_ACTION_TYPE_OFFSET) - 1)struct mlx5_hws_cnt_dcs { -void *dr_action; +struct mlx5dr_action *root_action;/* mlx5dr action used on root groups. */ +struct mlx5dr_action *hws_action;/* mlx5dr action used on non-root groups. */ uint32_t batch_sz;uint32_t iidx;/* internal index of first counter in this bulk. */ struct mlx5_devx_obj *obj;
@@ -632,12 +633,21 @@ mlx5_hws_cnt_pool_get_size(struct mlx5_hws_cnt_pool *cpool) static __rte_always_inline intmlx5_hws_cnt_pool_get_action_offset (struct mlx5_hws_cnt_pool *cpool,cnt_id_t cnt_id,struct mlx5dr_action **action, -uint32_t *offset) +uint32_t *offset,bool is_root) {uint8_t idx = cnt_id >>MLX5_HWS_CNT_DCS_IDX_OFFSET ; idx &=MLX5_HWS_CNT_DCS_IDX_MASK ; - *action = cpool->dcs_mng.dcs[idx].dr_action; +if (likely (!is_root)) { + *action = cpool->dcs_mng.dcs[idx].hws_action; + }else { +/* +* Any table using counter on root group should be rejected on validation +* when counter on root is not supported. +*/ +MLX5_ASSERT (cpool->dcs_mng.dcs[idx].root_action !=NULL ); + *action = cpool->dcs_mng.dcs[idx].root_action; + } *offset = cnt_id &MLX5_HWS_CNT_IDX_MASK ;return 0 ; }
Signature · 1 line
2.39.5
Hi,
Quoted 68 lines
-----Original Message-----
From: Dariusz Sosnowski <[email protected]>
Sent: Thursday, November 6, 2025 12:53 AM
To: Slava Ovsiienko <[email protected]>; Bing Zhao <[email protected]>; Ori Kam <[email protected]>; Suanming Mou <[email protected]>; Matan Azrad <[email protected]>
Cc: [email protected]; Raslan Darawsheh <[email protected]>
Subject: [PATCH v2 0/5] net/mlx5: support count and age actions on root groupWhen working with HW Steering flow engine (HWS, dv_flow_en=2), mlx5 PMD does not support using count and age flow actions on flow group 0 i.e., root table.
Flow rules on root table are special in a sense that they are created through mlx5 kernel driver using rdma-coremlx5dv_create_flow()API. This API however does not support using counters from FW-allocated counter bulks which contain more than 1 counter (extensively used with HWS to optimize allocations).
This affects age flow action as well, because it's implementation in mlx5 PMD relies on counters.rdma-core version v60.0 added a new flow action type to
mlx5dv_create_flow()API -MLX5DV_FLOW_ACTION_COUNTERS_DEVX_WITH_OFFSET- which allows the use of counters from bigger FW-allocated counter bulks. This in turn allows mlx5 PMD to extend count and age flow action support to group 0.This patchset implements that support. Patchset contains:
- Patch 1 - Fixes for indirect flow action error reporting.
- Patch 2 - Adds detection ofMLX5DV_FLOW_ACTION_COUNTERS_DEVX_WITH_OFFSETin rdma-core at build time.
- Patch 3 - Adds support for counter action in HWS layer wheneverMLX5DV_FLOW_ACTION_COUNTERS_DEVX_WITH_OFFSETis available.
- Patch 4 - Reworks for group 0/root table checks to allow easier implementaiton
- Patch 5 - Enables support of count and age flow action in group 0, in flow API implementation with HWS.v2:
- Added logging in mlx5dr action creation whenever count is not supported on root.
- Removed redundantis_root_supportedfield frommlx5_hws_cnt_poolstruct and replaced it with compile time checks, since feature depends on
version of
rdma-core available at compilation.
- Unify error messages for unsupported count/age action, so all refer to root table.
- Added Fixes tags to patch 4 from v1 and moved it as patch no. 1.Dariusz Sosnowski (5):
net/mlx5: fix error reporting on masked indirect actions common/mlx5: detect DevX counters support in rdma-corenet/mlx5/hws: support counter from DevX bulk on root net/mlx5: rework root group checks in table create net/mlx5: support count and age on root groupdoc/guides/nics/mlx5.rst | 34 ++++--- doc/guides/rel_notes/release_25_11.rst | 4 + drivers/common/mlx5/linux/meson.build | 2 + drivers/net/mlx5/hws/mlx5dr.h | 14 +++ drivers/net/mlx5/hws/mlx5dr_action.c | 20 ++-- drivers/net/mlx5/mlx5_flow.h | 17 ++++ drivers/net/mlx5/mlx5_flow_hw.c | 123 ++++++++++++++----------- drivers/net/mlx5/mlx5_hws_cnt.c | 42 +++++++-- drivers/net/mlx5/mlx5_hws_cnt.h | 16 +++- 9 files changed, 185 insertions(+), 87 deletions(-)
Quoted 2 lines
--
2.39.5
Series
Hi,
Quoted 49 lines · Dariusz Sosnowski
When working with HW Steering flow engine (HWS, dv_flow_en=2),
mlx5 PMD does not support using count and age flow actions
on flow group 0 i.e., root table.
Flow rules on root table are special in a sense that
they are created through mlx5 kernel driver using rdma-coremlx5dv_create_flow()API. This API however does not support using counters from FW-allocated counter bulks which contain more than 1 counter (extensively used with HWS to optimize allocations). This affects age flow action as well, because it's implementation in mlx5 PMD relies on counters.rdma-core version v60.0 added a new flow action type to
mlx5dv_create_flow()API -MLX5DV_FLOW_ACTION_COUNTERS_DEVX_WITH_OFFSET- which allows the use of counters from bigger FW-allocated counter bulks. This in turn allows mlx5 PMD to extend count and age flow action support to group 0.This patchset implements that support. Patchset contains:
- Patch 1 - Fixes for indirect flow action error reporting.
- Patch 2 - Adds detection ofMLX5DV_FLOW_ACTION_COUNTERS_DEVX_WITH_OFFSETin rdma-core at build time.
- Patch 3 - Adds support for counter action in HWS layer wheneverMLX5DV_FLOW_ACTION_COUNTERS_DEVX_WITH_OFFSETis available.
- Patch 4 - Reworks for group 0/root table checks to allow easier implementaiton
- Patch 5 - Enables support of count and age flow action in group 0, in flow API implementation with HWS.v2:
- Added logging in mlx5dr action creation whenever count is not supported on root.
- Removed redundantis_root_supportedfield frommlx5_hws_cnt_poolstruct and replaced it with compile time checks, since feature depends on version of rdma-core available at compilation.
- Unify error messages for unsupported count/age action, so all refer to root table.
- Added Fixes tags to patch 4 from v1 and moved it as patch no. 1.Dariusz Sosnowski (5):
net/mlx5: fix error reporting on masked indirect actions common/mlx5: detect DevX counters support in rdma-corenet/mlx5/hws: support counter from DevX bulk on root net/mlx5: rework root group checks in table create net/mlx5: support count and age on root groupdoc/guides/nics/mlx5.rst | 34 ++++--- doc/guides/rel_notes/release_25_11.rst | 4 + drivers/common/mlx5/linux/meson.build | 2 + drivers/net/mlx5/hws/mlx5dr.h | 14 +++ drivers/net/mlx5/hws/mlx5dr_action.c | 20 ++-- drivers/net/mlx5/mlx5_flow.h | 17 ++++ drivers/net/mlx5/mlx5_flow_hw.c | 123 ++++++++++++++----------- drivers/net/mlx5/mlx5_hws_cnt.c | 42 +++++++-- drivers/net/mlx5/mlx5_hws_cnt.h | 16 +++- 9 files changed, 185 insertions(+), 87 deletions(-)
Quoted 3 lines
--
2.39.5
Series applied to next-net-mlx,
Kindest regards
Raslan Darawsheh