]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/iavf/iavf.h
net: add macro for VLAN header length
[dpdk.git] / drivers / net / iavf / iavf.h
index f413dbed833afa231139b0faf076464d7a7db6c1..0bb5698583ba1d428c04ab782e91779431239719 100644 (file)
@@ -78,9 +78,8 @@
 /* The overhead from MTU to max frame size.
  * Considering QinQ packet, the VLAN tag needs to be counted twice.
  */
-#define IAVF_VLAN_TAG_SIZE               4
 #define IAVF_ETH_OVERHEAD \
-       (RTE_ETHER_HDR_LEN + RTE_ETHER_CRC_LEN + IAVF_VLAN_TAG_SIZE * 2)
+       (RTE_ETHER_HDR_LEN + RTE_ETHER_CRC_LEN + RTE_VLAN_HLEN * 2)
 #define IAVF_ETH_MAX_LEN (RTE_ETHER_MTU + IAVF_ETH_OVERHEAD)
 
 #define IAVF_32_BIT_WIDTH (CHAR_BIT * 4)