ixgbe: fix build with bulk alloc disabled
authorPablo de Lara <pablo.de.lara.guarch@intel.com>
Wed, 22 Jul 2015 09:50:11 +0000 (10:50 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 22 Jul 2015 09:56:54 +0000 (11:56 +0200)
commitb50c10cc892ecd2bf84cf3bd046e51ce47c9c5bd
tree2c6f0182a65dbe633680a3f62e5d7e9cd75c8dd9
parent9cd270a67856eb8d4ae43e5c84ff5390c6cb4eed
ixgbe: fix build with bulk alloc disabled

ixgbe_recv_pkts_lro uses field rx_free_trigger
in structure ixgbe_rx_queue, but that field is only defined
if IXGBE_RX_ALLOW_BULK_ALLOC is enabled, so even though
that field is not used when it is disabled,
compiler complains about it.
Therefore, the lines of code that use that field
have been ifdef.

Fixes: 8eecb329 ("ixgbe: add LRO support")

Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
drivers/net/ixgbe/ixgbe_rxtx.c