Skip to content

Commit

Permalink
Better packet offload state field name
Browse files Browse the repository at this point in the history
  • Loading branch information
PlagueCZ committed Nov 22, 2023
1 parent 922cb1e commit edafa09
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions include/dp_flow.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions include/dp_mbuf_dyn.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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
Expand Down

0 comments on commit edafa09

Please sign in to comment.