1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2018 Intel Corporation
7 * Accepts pointer to struct rte_mbuf as an input parameter.
8 * cleanup mbuf's vlan_tci and all related RX flags
9 * (PKT_RX_VLAN_PKT | PKT_RX_VLAN_STRIPPED).
10 * Doesn't touch contents of packet data.
12 * clang -O2 -target bpf -Wno-int-to-void-pointer-cast -c t2.c
14 * NOTE: if DPDK is not installed system-wide, add compiler flag with path
15 * to DPDK rte_mbuf.h file, e.g. "clang -I/path/to/dpdk/headers -O2 ..."
20 #include <rte_config.h>
21 #include <rte_mbuf_core.h>
30 mb->ol_flags &= ~(PKT_RX_VLAN | PKT_RX_VLAN_STRIPPED);