git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
crypto/octeontx2: fix build with gcc 10
[dpdk.git]
/
drivers
/
net
/
octeontx2
/
otx2_flow.h
diff --git
a/drivers/net/octeontx2/otx2_flow.h
b/drivers/net/octeontx2/otx2_flow.h
index
a37d865
..
df78f41
100644
(file)
--- a/
drivers/net/octeontx2/otx2_flow.h
+++ b/
drivers/net/octeontx2/otx2_flow.h
@@
-29,6
+29,7
@@
enum {
#define NPC_IH_LENGTH 8
#define NPC_TPID_LENGTH 2
#define NPC_IH_LENGTH 8
#define NPC_TPID_LENGTH 2
+#define NPC_HIGIG2_LENGTH 16
#define NPC_COUNTER_NONE (-1)
/* 32 bytes from LDATA_CFG & 32 bytes from FLAGS_CFG */
#define NPC_MAX_EXTRACT_DATA_LEN (64)
#define NPC_COUNTER_NONE (-1)
/* 32 bytes from LDATA_CFG & 32 bytes from FLAGS_CFG */
#define NPC_MAX_EXTRACT_DATA_LEN (64)
@@
-52,6
+53,8
@@
enum {
#define OTX2_FLOW_ACT_DUP (1 << 5)
#define OTX2_FLOW_ACT_SEC (1 << 6)
#define OTX2_FLOW_ACT_COUNT (1 << 7)
#define OTX2_FLOW_ACT_DUP (1 << 5)
#define OTX2_FLOW_ACT_SEC (1 << 6)
#define OTX2_FLOW_ACT_COUNT (1 << 7)
+#define OTX2_FLOW_ACT_PF (1 << 8)
+#define OTX2_FLOW_ACT_VF (1 << 9)
/* terminating actions */
#define OTX2_FLOW_ACT_TERM (OTX2_FLOW_ACT_DROP | \
/* terminating actions */
#define OTX2_FLOW_ACT_TERM (OTX2_FLOW_ACT_DROP | \
@@
-87,6
+90,7
@@
struct npc_xtract_info {
uint8_t hdr_off; /* Byte offset of proto hdr: extract_src */
uint8_t key_off; /* Byte offset in MCAM key where data is placed */
uint8_t enable; /* Extraction enabled or disabled */
uint8_t hdr_off; /* Byte offset of proto hdr: extract_src */
uint8_t key_off; /* Byte offset in MCAM key where data is placed */
uint8_t enable; /* Extraction enabled or disabled */
+ uint8_t flags_enable; /* Flags extraction enabled */
};
/* Information for a given {LAYER, LTYPE} */
};
/* Information for a given {LAYER, LTYPE} */
@@
-187,6
+191,7
@@
struct otx2_npc_flow_info {
uint16_t channel; /*rx channel */
uint16_t flow_prealloc_size;
uint16_t flow_max_priority;
uint16_t channel; /*rx channel */
uint16_t flow_prealloc_size;
uint16_t flow_max_priority;
+ uint16_t switch_header_type;
};
struct otx2_parse_state {
};
struct otx2_parse_state {
@@
-378,6
+383,8
@@
int otx2_flow_parse_lb(struct otx2_parse_state *pst);
int otx2_flow_parse_la(struct otx2_parse_state *pst);
int otx2_flow_parse_la(struct otx2_parse_state *pst);
+int otx2_flow_parse_higig2_hdr(struct otx2_parse_state *pst);
+
int otx2_flow_parse_actions(struct rte_eth_dev *dev,
const struct rte_flow_attr *attr,
const struct rte_flow_action actions[],
int otx2_flow_parse_actions(struct rte_eth_dev *dev,
const struct rte_flow_attr *attr,
const struct rte_flow_action actions[],
@@
-387,10
+394,4
@@
int otx2_flow_parse_actions(struct rte_eth_dev *dev,
int otx2_flow_free_all_resources(struct otx2_eth_dev *hw);
int otx2_flow_parse_mpls(struct otx2_parse_state *pst, int lid);
int otx2_flow_free_all_resources(struct otx2_eth_dev *hw);
int otx2_flow_parse_mpls(struct otx2_parse_state *pst, int lid);
-
-int
-flow_validate_and_shift_prio_ent(struct otx2_mbox *mbox, struct rte_flow *flow,
- struct otx2_npc_flow_info *flow_info,
- struct npc_mcam_alloc_entry_rsp *rsp,
- int req_prio);
#endif /* __OTX2_FLOW_H__ */
#endif /* __OTX2_FLOW_H__ */