The description of this patch does not match the change. Also the change is going backward, using deprecated fields. It does not make sense, I'll skip it.
29/10/2023 17:31, Gregory Etelson: > New mlx5dr_context member replaces mlx5dr_cmd_query_caps. > Capabilities structure is a member of mlx5dr_context. > > Signed-off-by: Gregory Etelson <getel...@nvidia.com> > Acked-by: Ori Kam <or...@nvidia.com> > --- > drivers/net/mlx5/hws/mlx5dr_definer.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/net/mlx5/hws/mlx5dr_definer.c > b/drivers/net/mlx5/hws/mlx5dr_definer.c > index 95b5d4b70e..75ba46b966 100644 > --- a/drivers/net/mlx5/hws/mlx5dr_definer.c > +++ b/drivers/net/mlx5/hws/mlx5dr_definer.c > @@ -1092,7 +1092,7 @@ mlx5dr_definer_conv_item_gtp(struct > mlx5dr_definer_conv_data *cd, > return rte_errno; > } > > - if (m->hdr.teid) { > + if (m->teid) { > if (!(caps->flex_protocols & MLX5_HCA_FLEX_GTPU_TEID_ENABLED)) { > rte_errno = ENOTSUP; > return rte_errno; > @@ -1118,7 +1118,7 @@ mlx5dr_definer_conv_item_gtp(struct > mlx5dr_definer_conv_data *cd, > } > > > - if (m->hdr.msg_type) { > + if (m->msg_type) { > if (!(caps->flex_protocols & MLX5_HCA_FLEX_GTPU_DW_0_ENABLED)) { > rte_errno = ENOTSUP; > return rte_errno; >