[dpdk-dev,RFC,4/6] ethdev: add QinQ offload capability flags
Commit Message
As offload capabilities of QinQ stripping and insertion are
supported by some of the supported hardware, the offload capability
flags should be added accordingly.
Signed-off-by: Helin Zhang <helin.zhang@intel.com>
---
lib/librte_ether/rte_ethdev.h | 28 +++++++++++++++-------------
1 file changed, 15 insertions(+), 13 deletions(-)
@@ -881,23 +881,25 @@ struct rte_eth_conf {
/**
* RX offload capabilities of a device.
*/
-#define DEV_RX_OFFLOAD_VLAN_STRIP 0x00000001
-#define DEV_RX_OFFLOAD_IPV4_CKSUM 0x00000002
-#define DEV_RX_OFFLOAD_UDP_CKSUM 0x00000004
-#define DEV_RX_OFFLOAD_TCP_CKSUM 0x00000008
-#define DEV_RX_OFFLOAD_TCP_LRO 0x00000010
+#define DEV_RX_OFFLOAD_VLAN_STRIP 0x00000001
+#define DEV_RX_OFFLOAD_QINQ_STRIP 0x00000002
+#define DEV_RX_OFFLOAD_IPV4_CKSUM 0x00000004
+#define DEV_RX_OFFLOAD_UDP_CKSUM 0x00000008
+#define DEV_RX_OFFLOAD_TCP_CKSUM 0x00000010
+#define DEV_RX_OFFLOAD_TCP_LRO 0x00000020
/**
* TX offload capabilities of a device.
*/
-#define DEV_TX_OFFLOAD_VLAN_INSERT 0x00000001
-#define DEV_TX_OFFLOAD_IPV4_CKSUM 0x00000002
-#define DEV_TX_OFFLOAD_UDP_CKSUM 0x00000004
-#define DEV_TX_OFFLOAD_TCP_CKSUM 0x00000008
-#define DEV_TX_OFFLOAD_SCTP_CKSUM 0x00000010
-#define DEV_TX_OFFLOAD_TCP_TSO 0x00000020
-#define DEV_TX_OFFLOAD_UDP_TSO 0x00000040
-#define DEV_TX_OFFLOAD_OUTER_IPV4_CKSUM 0x00000080 /**< Used for tunneling packet. */
+#define DEV_TX_OFFLOAD_VLAN_INSERT 0x00000001
+#define DEV_TX_OFFLOAD_QINQ_INSERT 0x00000002
+#define DEV_TX_OFFLOAD_IPV4_CKSUM 0x00000004
+#define DEV_TX_OFFLOAD_UDP_CKSUM 0x00000008
+#define DEV_TX_OFFLOAD_TCP_CKSUM 0x00000010
+#define DEV_TX_OFFLOAD_SCTP_CKSUM 0x00000020
+#define DEV_TX_OFFLOAD_TCP_TSO 0x00000040
+#define DEV_TX_OFFLOAD_UDP_TSO 0x00000080
+#define DEV_TX_OFFLOAD_OUTER_IPV4_CKSUM 0x00000100
struct rte_eth_dev_info {
struct rte_pci_device *pci_dev; /**< Device PCI information. */