summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/broadcom/bgmac.h
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-04-14 13:08:02 +0300
committerDavid S. Miller <davem@davemloft.net>2015-04-14 21:57:11 +0300
commit29ba877e7c8092a4dd3cbef80cca4e857129ca55 (patch)
treed1b6cc4b86b18b116813bcb602a57730eb54aaa5 /drivers/net/ethernet/broadcom/bgmac.h
parent4668ae1fbcab89af5ffbb161d4c70b25ce4c50f4 (diff)
downloadlinux-29ba877e7c8092a4dd3cbef80cca4e857129ca55.tar.xz
bgmac: drop ring->num_slots
The ring size is always known at compile time, so make the code a bit more efficient Signed-off-by: Felix Fietkau <nbd@openwrt.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bgmac.h')
-rw-r--r--drivers/net/ethernet/broadcom/bgmac.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/broadcom/bgmac.h b/drivers/net/ethernet/broadcom/bgmac.h
index e45e303ebc22..db27febbb215 100644
--- a/drivers/net/ethernet/broadcom/bgmac.h
+++ b/drivers/net/ethernet/broadcom/bgmac.h
@@ -419,11 +419,10 @@ struct bgmac_dma_ring {
u32 start;
u32 end;
- u16 num_slots;
- u16 mmio_base;
struct bgmac_dma_desc *cpu_base;
dma_addr_t dma_base;
u32 index_base; /* Used for unaligned rings only, otherwise 0 */
+ u16 mmio_base;
bool unaligned;
struct bgmac_slot_info slots[BGMAC_RX_RING_SLOTS];