]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
tg3: Simplify ring control block setup
authorNithin Sujir <nsujir@broadcom.com>
Thu, 23 May 2013 11:11:23 +0000 (11:11 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 25 May 2013 05:23:29 +0000 (22:23 -0700)
commit32ba19efc08a4bd63590310f05da5ce4d8773508
tree55e01ae1a8df40c1695314cded8ebf4406955009
parent2e460fc07ef0ebadfb593b564a8c7fa6559ac3d7
tg3: Simplify ring control block setup

The current code calls tg3_set_bdinfo() separately on napi0, followed by
a loop that does napi1+. Simplify it by setting bdinfo in the loop for
all napi contexts.

Signed-off-by: Nithin Nayak Sujir <nsujir@broadcom.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/tg3.c