The ixgbe driver does not compile if CONFIG_RTE_IXGBE_RX_OLFLAGS_ENABLE=n because the macro has not the proper number of parameters. To reproduce the issue: make config T=x86_64-native-linuxapp-gcc sed -i 's,\(IXGBE_RX_OLFLAGS_ENABLE\)=y,\1=n,' build/.config make -j4 [...] ixgbe_rxtx_vec_sse.c: In function ‘_recv_raw_pkts_vec’: ixgbe_rxtx_vec_sse.c:345:53: error: macro "desc_to_olflags_v" passed 3 arguments, but takes just 2 desc_to_olflags_v(descs, vlan_flags, &rx_pkts[pos]); ^ ixgbe_rxtx_vec_sse.c:345:3: error: ‘desc_to_olflags_v’ undeclared (first use in this function) desc_to_olflags_v(descs, vlan_flags, &rx_pkts[pos]); ^ ixgbe_rxtx_vec_sse.c:231:10: error: variable ‘vlan_flags’ set but not used uint8_t vlan_flags; ^ This patch fixes the number of arguments in the macro, and ensures that vlan_flags is marked as used to avoid the third error. Fixes: b37b528d957c ("mbuf: add new Rx flags for stripped VLAN") Reported-by: Amin Tootoonchian <amint@icsi.berkeley.edu> Signed-off-by: Olivier Matz <olivier.matz@6wind.com> Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
DPDK is a set of libraries and drivers for fast packet processing. It supports many processor architectures and both FreeBSD and Linux. The DPDK uses the Open Source BSD license for the core libraries and drivers. The kernel components are GPLv2 licensed. Please check the doc directory for release notes, API documentation, and sample application information. For questions and usage discussions, subscribe to: users@dpdk.org Report bugs and issues to the development mailing list: dev@dpdk.org
Description
Languages
C
99.1%
Meson
0.5%
Python
0.2%
Shell
0.1%