diff options
author | Arnd Bergmann <arnd@arndb.de> | 2016-11-16 15:10:49 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-11-16 17:05:48 -0500 |
commit | 08348995c47ec0e6ad3712c08eb88fb4df2e8180 (patch) | |
tree | a7063f2e3c28517eb774889f535d992c9a51f227 /drivers/net/ethernet/cadence | |
parent | 973334a1d3bb4ee8b4e761e322f116f0403b26b5 (diff) | |
download | linux-08348995c47ec0e6ad3712c08eb88fb4df2e8180.tar.bz2 |
netronome: don't access real_num_rx_queues directly
The netdev->real_num_rx_queues setting is only available if CONFIG_SYSFS
is enabled, so we now get a build failure when that is turned off:
netronome/nfp/nfp_net_common.c: In function 'nfp_net_ring_swap_enable':
netronome/nfp/nfp_net_common.c:2489:18: error: 'struct net_device' has no member named 'real_num_rx_queues'; did you mean 'real_num_tx_queues'?
As far as I can tell, the check here is only used as an optimization that
we can skip in order to fix the compilation. If sysfs is disabled,
the following netif_set_real_num_rx_queues() has no effect.
Fixes: 164d1e9e5d52 ("nfp: add support for ethtool .set_channels")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/cadence')
0 files changed, 0 insertions, 0 deletions