pipeline: add check against loops
[dpdk.git] / drivers / net / ipn3ke / ipn3ke_ethdev.h
index a6815a9..58fcc50 100644 (file)
@@ -15,8 +15,8 @@
 
 #include <rte_mbuf.h>
 #include <rte_flow_driver.h>
-#include <rte_ethdev_driver.h>
-#include <rte_ethdev_vdev.h>
+#include <ethdev_driver.h>
+#include <ethdev_vdev.h>
 #include <rte_malloc.h>
 #include <rte_memcpy.h>
 #include <rte_bus_vdev.h>
@@ -223,7 +223,7 @@ struct ipn3ke_hw_cap {
 };
 
 /**
- * Strucute to store private data for each representor instance
+ * Structure to store private data for each representor instance
  */
 struct ipn3ke_rpst {
        TAILQ_ENTRY(ipn3ke_rpst) next;       /**< Next in device list. */
@@ -237,7 +237,7 @@ struct ipn3ke_rpst {
        uint16_t i40e_pf_eth_port_id;
        struct rte_eth_link ori_linfo;
        struct ipn3ke_tm_internals tm;
-       /**< Private data store of assocaiated physical function */
+       /**< Private data store of associated physical function */
        struct rte_ether_addr mac_addr;
 };
 
@@ -633,13 +633,12 @@ ipn3ke_tm_ops_get(struct rte_eth_dev *ethdev,
 #define IPN3KE_MAC_RX_FRAME_CONTROL_EN_ALLMCAST_MASK \
        IPN3KE_MASK(0x1, IPN3KE_MAC_RX_FRAME_CONTROL_EN_ALLMCAST_SHIFT)
 
-#define IPN3KE_VLAN_TAG_SIZE    4
 /**
  * The overhead from MTU to max frame size.
  * Considering QinQ packet, the VLAN tag needs to be counted twice.
  */
 #define IPN3KE_ETH_OVERHEAD \
-       (RTE_ETHER_HDR_LEN + RTE_ETHER_CRC_LEN + IPN3KE_VLAN_TAG_SIZE * 2)
+       (RTE_ETHER_HDR_LEN + RTE_ETHER_CRC_LEN + RTE_VLAN_HLEN * 2)
 #define IPN3KE_ETH_MAX_LEN (RTE_ETHER_MTU + IPN3KE_ETH_OVERHEAD)
 
 #define IPN3KE_MAC_FRAME_SIZE_MAX    9728