aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/devices/dpdk/node.c
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2017-02-28 23:26:30 +0100
committerDamjan Marion <damarion@cisco.com>2017-02-28 23:26:30 +0100
commitf7c379403a98cf060d28bac24916c51067c4ec90 (patch)
tree2abcefb884b9a9894a8319c243b5b0fc223eea82 /src/vnet/devices/dpdk/node.c
parent7100b9cc6f1342a320c372bf746ae85cf815c41b (diff)
dpdk: retire support for dpdk 16.07
Change-Id: I8585552c026415340fe9fd0458cb8450da3c4ae2 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vnet/devices/dpdk/node.c')
-rw-r--r--src/vnet/devices/dpdk/node.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/vnet/devices/dpdk/node.c b/src/vnet/devices/dpdk/node.c
index e541cdbcbd2..bde9dfae76d 100644
--- a/src/vnet/devices/dpdk/node.c
+++ b/src/vnet/devices/dpdk/node.c
@@ -55,11 +55,6 @@ vlib_buffer_is_mpls (vlib_buffer_t * b)
return (h->type == clib_host_to_net_u16 (ETHERNET_TYPE_MPLS_UNICAST));
}
-#if RTE_VERSION < RTE_VERSION_NUM(16, 11, 0, 0)
-/* New ol_flags bits added in DPDK-16.11 */
-#define PKT_RX_IP_CKSUM_GOOD (1ULL << 7)
-#endif
-
always_inline u32
dpdk_rx_next_from_etype (struct rte_mbuf * mb, vlib_buffer_t * b0)
{
@@ -79,15 +74,8 @@ dpdk_rx_next_from_etype (struct rte_mbuf * mb, vlib_buffer_t * b0)
always_inline int
dpdk_mbuf_is_vlan (struct rte_mbuf *mb)
{
-#if RTE_VERSION >= RTE_VERSION_NUM(16, 11, 0, 0)
return (mb->packet_type & RTE_PTYPE_L2_ETHER_VLAN) ==
RTE_PTYPE_L2_ETHER_VLAN;
-#else
- return
- (mb->ol_flags &
- (PKT_RX_VLAN_PKT | PKT_RX_VLAN_STRIPPED | PKT_RX_QINQ_STRIPPED)) ==
- PKT_RX_VLAN_PKT;
-#endif
}
always_inline int