net/pfe: add MTU and MAC address set
[dpdk.git] / drivers / net / octeontx2 / otx2_flow.h
index 95bb6c2..ab068b0 100644 (file)
@@ -15,6 +15,8 @@
 #include "otx2_ethdev.h"
 #include "otx2_mbox.h"
 
+struct otx2_eth_dev;
+
 int otx2_flow_init(struct otx2_eth_dev *hw);
 int otx2_flow_fini(struct otx2_eth_dev *hw);
 extern const struct rte_flow_ops otx2_flow_ops;
@@ -50,6 +52,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_PF      (1 << 8)
+#define OTX2_FLOW_ACT_VF      (1 << 9)
 
 /* terminating actions */
 #define OTX2_FLOW_ACT_TERM    (OTX2_FLOW_ACT_DROP  | \
@@ -85,6 +89,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 flags_enable; /* Flags extraction enabled */
 };
 
 /* Information for a given {LAYER, LTYPE} */