Add the logic of modify IPv6 hop limit value. Signed-off-by: Chaoyong He <chaoyong...@corigine.com> Reviewed-by: Long Wu <long...@corigine.com> Reviewed-by: Peng Zhang <peng.zh...@corigine.com> --- drivers/net/nfp/flower/nfp_flower_flow.c | 8 ++++++++ 1 file changed, 8 insertions(+)
diff --git a/drivers/net/nfp/flower/nfp_flower_flow.c b/drivers/net/nfp/flower/nfp_flower_flow.c index 9950d158c3..5c3c3777de 100644 --- a/drivers/net/nfp/flower/nfp_flower_flow.c +++ b/drivers/net/nfp/flower/nfp_flower_flow.c @@ -1226,6 +1226,8 @@ nfp_flow_field_id_dst_support(enum rte_flow_field_id field) case RTE_FLOW_FIELD_UDP_PORT_DST: /* FALLTHROUGH */ case RTE_FLOW_FIELD_IPV4_TTL: + /* FALLTHROUGH */ + case RTE_FLOW_FIELD_IPV6_HOPLIMIT: return true; default: break; @@ -1263,6 +1265,8 @@ nfp_flow_field_width(enum rte_flow_field_id field, case RTE_FLOW_FIELD_UDP_PORT_DST: return 16; case RTE_FLOW_FIELD_IPV4_TTL: + /* FALLTHROUGH */ + case RTE_FLOW_FIELD_IPV6_HOPLIMIT: return 8; case RTE_FLOW_FIELD_POINTER: /* FALLTHROUGH */ @@ -1325,6 +1329,8 @@ nfp_flow_action_calculate_modify_dispatch(struct nfp_action_calculate_param *par case RTE_FLOW_FIELD_UDP_PORT_DST: return nfp_flow_action_calculate_tp(param); case RTE_FLOW_FIELD_IPV4_TTL: + /* FALLTHROUGH */ + case RTE_FLOW_FIELD_IPV6_HOPLIMIT: return nfp_flow_action_calculate_ttl(param); default: break; /* NOTREACHED */ @@ -4298,6 +4304,8 @@ nfp_flow_action_compile_modify_dispatch(struct nfp_action_compile_param *param, case RTE_FLOW_FIELD_UDP_PORT_DST: return nfp_flow_action_compile_tp_dst(param); case RTE_FLOW_FIELD_IPV4_TTL: + /* FALLTHROUGH */ + case RTE_FLOW_FIELD_IPV6_HOPLIMIT: return nfp_flow_action_compile_ttl(param); default: break; /* NOTREACHED */ -- 2.39.1