Add the logic of modify UDP dest port. 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 a9fee4353f..a25151cca1 100644 --- a/drivers/net/nfp/flower/nfp_flower_flow.c +++ b/drivers/net/nfp/flower/nfp_flower_flow.c @@ -1222,6 +1222,8 @@ nfp_flow_field_id_dst_support(enum rte_flow_field_id field) case RTE_FLOW_FIELD_TCP_PORT_DST: /* FALLTHROUGH */ case RTE_FLOW_FIELD_UDP_PORT_SRC: + /* FALLTHROUGH */ + case RTE_FLOW_FIELD_UDP_PORT_DST: return true; default: break; @@ -1255,6 +1257,8 @@ nfp_flow_field_width(enum rte_flow_field_id field, case RTE_FLOW_FIELD_TCP_PORT_DST: /* FALLTHROUGH */ case RTE_FLOW_FIELD_UDP_PORT_SRC: + /* FALLTHROUGH */ + case RTE_FLOW_FIELD_UDP_PORT_DST: return 16; case RTE_FLOW_FIELD_POINTER: /* FALLTHROUGH */ @@ -1313,6 +1317,8 @@ nfp_flow_action_calculate_modify_dispatch(struct nfp_action_calculate_param *par case RTE_FLOW_FIELD_TCP_PORT_DST: /* FALLTHROUGH */ case RTE_FLOW_FIELD_UDP_PORT_SRC: + /* FALLTHROUGH */ + case RTE_FLOW_FIELD_UDP_PORT_DST: return nfp_flow_action_calculate_tp(param); default: break; /* NOTREACHED */ @@ -4282,6 +4288,8 @@ nfp_flow_action_compile_modify_dispatch(struct nfp_action_compile_param *param, case RTE_FLOW_FIELD_UDP_PORT_SRC: return nfp_flow_action_compile_tp_src(param); case RTE_FLOW_FIELD_TCP_PORT_DST: + /* FALLTHROUGH */ + case RTE_FLOW_FIELD_UDP_PORT_DST: return nfp_flow_action_compile_tp_dst(param); default: break; /* NOTREACHED */ -- 2.39.1