numam-dpdk/drivers/net/ixgbe
Olivier Matz ba9eebbb60 net/ixgbe: fix build whith offload flags disabled
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: b37b528d95 ("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>
2016-07-05 10:59:28 +02:00
..
base net/ixgbe/base: update documentation for base code update 2016-06-27 16:17:53 +02:00
ixgbe_82599_bypass.c ixgbe: clean up code style 2016-05-06 15:51:22 +02:00
ixgbe_bypass_api.h ixgbe: support new devices and MAC types 2016-03-16 17:09:27 +01:00
ixgbe_bypass_defines.h ixgbe: clean up code style 2016-05-06 15:51:22 +02:00
ixgbe_bypass.c ixgbe: clean up code style 2016-05-06 15:51:22 +02:00
ixgbe_bypass.h ixgbe: clean up code style 2016-05-06 15:51:22 +02:00
ixgbe_ethdev.c ethdev: get registers width 2016-07-10 14:55:42 +02:00
ixgbe_ethdev.h ixgbe: fail if too many queues for interrupt 2016-03-30 20:17:58 +02:00
ixgbe_fdir.c ixgbe: clean up code style 2016-05-06 15:51:22 +02:00
ixgbe_logs.h drivers: allow pruning log during build 2015-07-30 20:16:04 +02:00
ixgbe_pf.c net/ixgbe/base: allow bypassing VLAN pool filters 2016-06-27 16:17:53 +02:00
ixgbe_regs.h ixgbe: add access to specific device info 2015-07-17 00:00:48 +02:00
ixgbe_rxtx_vec_common.h net/ixgbe: remove useless assignment 2016-06-27 18:31:57 +02:00
ixgbe_rxtx_vec_neon.c net/ixgbe: use mbuf prefetch function 2016-06-24 18:28:09 +02:00
ixgbe_rxtx_vec_sse.c net/ixgbe: fix build whith offload flags disabled 2016-07-05 10:59:28 +02:00
ixgbe_rxtx.c net/ixgbe: fix missed packet types on Rx 2016-06-23 15:59:02 +02:00
ixgbe_rxtx.h mbuf: add new Rx flags for stripped VLAN 2016-06-15 17:18:57 +02:00
Makefile net/ixgbe: rename x86 vector driver file 2016-06-15 17:13:54 +02:00
rte_pmd_ixgbe_version.map ixgbe: move to drivers/net/ 2015-05-22 16:06:22 +02:00