]> git.baikalelectronics.ru Git - kernel.git/commit
net: systemport: Pre-calculate and utilize cb->bd_addr
authorFlorian Fainelli <f.fainelli@gmail.com>
Thu, 28 May 2015 22:24:42 +0000 (15:24 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 31 May 2015 06:51:09 +0000 (23:51 -0700)
commitdd763cbf8d5dfc8fe1583b5d395ae68496cf2b25
tree004fa2cfa90e25253e0f0a9986bb049820137ed0
parent26f9e23ec9053ad4da3d92d6b19fd85871e87a2f
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>
drivers/net/ethernet/broadcom/bcmsysport.c
drivers/net/ethernet/broadcom/bcmsysport.h