net: add macro for VLAN header length
[dpdk.git] / drivers / net / axgbe / axgbe_dev.c
index 3aaa219..daeb330 100644 (file)
@@ -51,7 +51,7 @@ static int get_lastbit_set(int x)
 static inline unsigned int axgbe_get_max_frame(struct axgbe_port *pdata)
 {
        return pdata->eth_dev->data->mtu + RTE_ETHER_HDR_LEN +
-               RTE_ETHER_CRC_LEN + VLAN_HLEN;
+               RTE_ETHER_CRC_LEN + RTE_VLAN_HLEN;
 }
 
 /* query busy bit */