net/iavf: fix pointer of meta data
[dpdk.git] / drivers / net / octeontx_ep / otx_ep_vf.h
index f058435..1c98e62 100644 (file)
  */
 #define SDP_GBL_WMARK 0x100
 
+
+/* Optional PKI Instruction Header(PKI IH) */
+typedef union {
+       uint64_t u64;
+       struct {
+               /** Tag Value */
+               uint64_t tag:32;
+
+               /** QPG Value */
+               uint64_t qpg:11;
+
+               /** Reserved1 */
+               uint64_t reserved1:2;
+
+               /** Tag type */
+               uint64_t tagtype:2;
+
+               /** Use Tag Type */
+               uint64_t utt:1;
+
+               /** Skip Length */
+               uint64_t sl:8;
+
+               /** Parse Mode */
+               uint64_t pm:3;
+
+               /** Reserved2 */
+               uint64_t reserved2:1;
+
+               /** Use QPG */
+               uint64_t uqpg:1;
+
+               /** Use Tag */
+               uint64_t utag:1;
+
+               /** Raw mode indicator 1 = RAW */
+               uint64_t raw:1;
+
+               /** Wider bit */
+               uint64_t w:1;
+       } s;
+} otx_ep_instr_pki_ih3_t;
+
+
+/* OTX_EP 64B instruction format */
+struct otx_ep_instr_64B {
+       /* Pointer where the input data is available. */
+       uint64_t dptr;
+
+       /* OTX_EP Instruction Header. */
+       union otx_ep_instr_ih ih;
+
+       /* PKI Optional Instruction Header. */
+       otx_ep_instr_pki_ih3_t pki_ih3;
+
+       /** Pointer where the response for a RAW mode packet
+        * will be written by OCTEON TX.
+        */
+       uint64_t rptr;
+
+       /* Input Request Header. */
+       union otx_ep_instr_irh irh;
+
+       /* Additional headers available in a 64-byte instruction. */
+       uint64_t exhdr[3];
+};
+
 int
 otx_ep_vf_setup_device(struct otx_ep_device *otx_ep);
 #endif /*_OTX_EP_VF_H_ */