net/qede/base: refactor return path
[dpdk.git] / drivers / net / thunderx / base / nicvf_hw.h
index 2b8738b..14fb2fe 100644 (file)
@@ -43,6 +43,7 @@
 #define        PCI_SUB_DEVICE_ID_CN88XX_PASS1_NICVF            0xA11E
 #define        PCI_SUB_DEVICE_ID_CN88XX_PASS2_NICVF            0xA134
 #define        PCI_SUB_DEVICE_ID_CN81XX_NICVF                  0xA234
+#define        PCI_SUB_DEVICE_ID_CN83XX_NICVF                  0xA334
 
 #define NICVF_ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
 
@@ -54,6 +55,8 @@
 #define NICVF_CAP_TUNNEL_PARSING       (1ULL << 0)
 /* Additional word in Rx descriptor to hold optional tunneling extension info */
 #define NICVF_CAP_CQE_RX2              (1ULL << 1)
+/* The device capable of setting NIC_CQE_RX_S[APAD] == 0 */
+#define NICVF_CAP_DISABLE_APAD         (1ULL << 2)
 
 enum nicvf_tns_mode {
        NIC_TNS_BYPASS_MODE,
@@ -217,6 +220,8 @@ uint32_t nicvf_qsize_sq_roundup(uint32_t val);
 
 void nicvf_vlan_hw_strip(struct nicvf *nic, bool enable);
 
+void nicvf_apad_config(struct nicvf *nic, bool enable);
+
 int nicvf_rss_config(struct nicvf *nic, uint32_t  qcnt, uint64_t cfg);
 int nicvf_rss_term(struct nicvf *nic);