]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/bnxt/tf_ulp/ulp_rte_handler_tbl.c
net/bnxt: support NAT for dest IP and port combination
[dpdk.git] / drivers / net / bnxt / tf_ulp / ulp_rte_handler_tbl.c
index 9b165c12b57364272e5e3a5c5f39d346972222b6..e9337ecd2cc9fdd7c19eaf5eaac2832880884c7f 100644 (file)
@@ -67,7 +67,7 @@ struct bnxt_ulp_rte_act_info ulp_act_info[] = {
        },
        [RTE_FLOW_ACTION_TYPE_PORT_ID] = {
        .act_type                = BNXT_ULP_ACT_TYPE_SUPPORTED,
-       .proto_act_func          = ulp_rte_port_id_act_handler
+       .proto_act_func          = ulp_rte_port_act_handler
        },
        [RTE_FLOW_ACTION_TYPE_METER] = {
        .act_type                = BNXT_ULP_ACT_TYPE_NOT_SUPPORTED,
@@ -212,7 +212,15 @@ struct bnxt_ulp_rte_act_info ulp_act_info[] = {
        [RTE_FLOW_ACTION_TYPE_SAMPLE] = {
        .act_type                = BNXT_ULP_ACT_TYPE_SUPPORTED,
        .proto_act_func          = ulp_rte_sample_act_handler
-       }
+       },
+       [RTE_FLOW_ACTION_TYPE_PORT_REPRESENTOR] = {
+       .act_type                = BNXT_ULP_ACT_TYPE_SUPPORTED,
+       .proto_act_func          = ulp_rte_port_act_handler
+       },
+       [RTE_FLOW_ACTION_TYPE_REPRESENTED_PORT] = {
+       .act_type                = BNXT_ULP_ACT_TYPE_SUPPORTED,
+       .proto_act_func          = ulp_rte_port_act_handler
+       },
 };
 
 struct bnxt_ulp_rte_act_info ulp_vendor_act_info[] = {
@@ -266,7 +274,7 @@ struct bnxt_ulp_rte_hdr_info ulp_hdr_info[] = {
        },
        [RTE_FLOW_ITEM_TYPE_PORT_ID] = {
        .hdr_type                = BNXT_ULP_HDR_TYPE_SUPPORTED,
-       .proto_hdr_func          = ulp_rte_port_id_hdr_handler
+       .proto_hdr_func          = ulp_rte_port_hdr_handler
        },
        [RTE_FLOW_ITEM_TYPE_RAW] = {
        .hdr_type                = BNXT_ULP_HDR_TYPE_NOT_SUPPORTED,
@@ -427,6 +435,14 @@ struct bnxt_ulp_rte_hdr_info ulp_hdr_info[] = {
        [RTE_FLOW_ITEM_TYPE_HIGIG2] = {
        .hdr_type                = BNXT_ULP_HDR_TYPE_NOT_SUPPORTED,
        .proto_hdr_func          = NULL
+       },
+       [RTE_FLOW_ITEM_TYPE_PORT_REPRESENTOR] = {
+       .hdr_type                = BNXT_ULP_HDR_TYPE_SUPPORTED,
+       .proto_hdr_func          = ulp_rte_port_hdr_handler
+       },
+       [RTE_FLOW_ITEM_TYPE_REPRESENTED_PORT] = {
+       .hdr_type                = BNXT_ULP_HDR_TYPE_SUPPORTED,
+       .proto_hdr_func          = ulp_rte_port_hdr_handler
        }
 };