net: systemport: Pre-calculate and utilize cb->bd_addr
There is a 1:1 mapping between the software maintained control block in priv->rx_cbs and the buffer address in priv->rx_bds, such that there is no need to keep computing the buffer address when refiling a control block. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
3d2f6d41d1
commit
baf387a8ed
@@ -663,8 +663,6 @@ struct bcm_sysport_priv {
|
||||
|
||||
/* Receive queue */
|
||||
void __iomem *rx_bds;
|
||||
void __iomem *rx_bd_assign_ptr;
|
||||
unsigned int rx_bd_assign_index;
|
||||
struct bcm_sysport_cb *rx_cbs;
|
||||
unsigned int num_rx_bds;
|
||||
unsigned int rx_read_ptr;
|
||||
|
Reference in New Issue
Block a user