net: bcmgenet: precalculate TxCB->bd_addr
authorPetri Gynther <pgynther@google.com>
Mon, 23 Feb 2015 19:00:45 +0000 (11:00 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Feb 2015 16:39:04 +0000 (11:39 -0500)
commit014012a49148d6968afabb0e8d638fad5f65b72d
tree29aba3605435b984beafee37a78c6cf3ffbda788
parent16c6d667883f41d3e06cf5f6bba964057e67895a
net: bcmgenet: precalculate TxCB->bd_addr

There is 1-to-1 mapping between TxCBs and TxBDs. Precalculate TxCB->bd_addr
once in bcmgenet_init_dma() instead of doing it over and over needlessly in
bcmgenet_get_txcb().

Signed-off-by: Petri Gynther <pgynther@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/genet/bcmgenet.c