diff options
author | Nicolas Ferre <nicolas.ferre@atmel.com> | 2015-03-31 16:01:59 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-31 23:51:17 +0300 |
commit | bfa0914afa95d44df9e1a1553e0c03a991223db3 (patch) | |
tree | 566a763975d8065e23becdb275aee2d3bfc97ce7 /drivers/net/ethernet/cadence/macb.h | |
parent | 34d21e3f399729ca7c89636207fe41c481d99352 (diff) | |
download | linux-bfa0914afa95d44df9e1a1553e0c03a991223db3.tar.xz |
net/macb: only probe queues once and use stored values
When merging at91_ether and macb driver during 421d9df0628b (net/macb: merge
at91_ether driver into macb driver) the probe function has been split. The code
dealing with initialization of queues is now moved in macb_init() which needs
information computed in the parent macb_probe() function.
So, add the queue_mask information to the private structure and use it when
needed in macb_init().
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Acked-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Cc: Cyrille Pitchen <cyrille.pitchen@atmel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/cadence/macb.h')
-rw-r--r-- | drivers/net/ethernet/cadence/macb.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/cadence/macb.h b/drivers/net/ethernet/cadence/macb.h index bc6e35c40822..0b6afac91bfe 100644 --- a/drivers/net/ethernet/cadence/macb.h +++ b/drivers/net/ethernet/cadence/macb.h @@ -785,6 +785,7 @@ struct macb { size_t rx_buffer_size; unsigned int num_queues; + unsigned int queue_mask; struct macb_queue queues[MACB_MAX_QUEUES]; spinlock_t lock; |