]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commitbaf387a8edaa4a55afeaf4f498d3891ddcb03fb7
tree004fa2cfa90e25253e0f0a9986bb049820137ed0
parent3d2f6d41d1588c975d16c5969726d018bba90794
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