From edafa0928454644ac28da82ded61b803a125c9a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jarom=C3=ADr=20Smr=C4=8Dek?= <4plague@gmail.com> Date: Tue, 21 Nov 2023 17:11:56 +0100 Subject: [PATCH] Better packet offload state field name --- include/dp_flow.h | 4 ++-- include/dp_mbuf_dyn.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/dp_flow.h b/include/dp_flow.h index cf9135d1b..05f8b4f95 100644 --- a/include/dp_flow.h +++ b/include/dp_flow.h @@ -97,8 +97,8 @@ struct flow_value { uint8_t flow_flags; enum dp_fwall_action fwall_action[DP_FLOW_DIR_CAPACITY]; struct { - enum dp_flow_offload_state orig; - enum dp_flow_offload_state reply; + enum dp_pkt_offload_state orig; + enum dp_pkt_offload_state reply; } offload_state; struct { bool pf0; diff --git a/include/dp_mbuf_dyn.h b/include/dp_mbuf_dyn.h index 6f8283d81..303d2f1e4 100644 --- a/include/dp_mbuf_dyn.h +++ b/include/dp_mbuf_dyn.h @@ -23,7 +23,7 @@ enum dp_flow_type { DP_FLOW_SOUTH_NORTH, } __rte_packed; -enum dp_flow_offload_state { +enum dp_pkt_offload_state { DP_FLOW_NON_OFFLOAD, DP_FLOW_OFFLOAD_INSTALL, DP_FLOW_OFFLOADED, @@ -48,7 +48,7 @@ struct dp_flow { enum dp_nat_type nat_type : 3; bool offload_ipv6 : 1; // tmp solution to set if we should offload ipv6 pkts enum dp_flow_dir flow_dir : 1; // store the direction of each packet - enum dp_flow_offload_state offload_state : 2; // store the offload status of each packet + enum dp_pkt_offload_state offload_state : 2; // store the offload status of each packet enum dp_vnf_type vnf_type : 3; uint16_t l3_type; //layer-3 for inner packets. it can be crafted or extracted from raw frames