]> git.baikalelectronics.ru Git - kernel.git/commit
stmmac: use netif_set_real_num_{rx,tx}_queues
authorArnd Bergmann <arnd@arndb.de>
Tue, 28 Mar 2017 09:48:21 +0000 (11:48 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 29 Mar 2017 01:00:34 +0000 (18:00 -0700)
commitfa9ac6ae8482de1ea35c00732645c61607c4da28
tree7c2c82d549b4e4d13d8fc622393ded1d858ab4d5
parent70de26236a739cd04e3e974cea0030dc4ded4c9a
stmmac: use netif_set_real_num_{rx,tx}_queues

A driver must not access the two fields directly but should instead use
the helper functions to set the values and keep a consistent internal
state:

ethernet/stmicro/stmmac/stmmac_main.c: In function 'stmmac_dvr_probe':
ethernet/stmicro/stmmac/stmmac_main.c:4083:8: error: 'struct net_device' has no member named 'real_num_rx_queues'; did you mean 'real_num_tx_queues'?

Fixes: 88bb1a6fa9a9 ("net: stmmac: TX and RX queue priority configuration")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c