ixgbe: fix build err, num_rx_queues is only available with CONFIG_RPS
authorJohn Fastabend <john.fastabend@gmail.com>
Fri, 8 Nov 2013 08:50:32 +0000 (00:50 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Nov 2013 20:21:08 +0000 (15:21 -0500)
commit219354d4897fe06cb10d68308c14128a1e3fc074
tree14283a21cf4440808390c90aeb7afba395289a30
parentf104a567e673f382b09542a8dc3500aa689957b4
ixgbe: fix build err, num_rx_queues is only available with CONFIG_RPS

In the recent support for layer 2 hardware acceleration, I added a
few references to real_num_rx_queues and num_rx_queues which are
only available with CONFIG_RPS.

The fix is first to remove unnecessary references to num_rx_queues.
Because the hardware offload case is limited to cases where RX queues
and TX queues are equal we only need a single check. Then wrap the
single case in an ifdef.

The patch that introduce this is here,

commit a6cc0cfa72e0b6d9f2c8fd858aacc32313c4f272
Author: John Fastabend <john.r.fastabend@intel.com>
Date:   Wed Nov 6 09:54:46 2013 -0800

    net: Add layer 2 hardware acceleration operations for macvlan devices

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Acked-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c