]> git.baikalelectronics.ru Git - kernel.git/commit
forcedeth: remove redudant assignments in xmit
authorZhu Yanjun <yanjun.zhu@oracle.com>
Sat, 11 Nov 2017 02:10:00 +0000 (21:10 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 13 Nov 2017 01:40:19 +0000 (10:40 +0900)
commit4111735c89e20a3b88c3e412a64a7f82ad621395
tree37f4a74f34fc52147e5b855c21a1985138c122e0
parentef31e4a1869c43f5a5b5060638d88ec11fad0204
forcedeth: remove redudant assignments in xmit

In xmit process, the variables are set many times. In fact,
it is enough for these variables to be set once.
After a long time test, the throughput performance is better
than before.

CC: Srinivas Eeda <srinivas.eeda@oracle.com>
CC: Joe Jin <joe.jin@oracle.com>
CC: Junxiao Bi <junxiao.bi@oracle.com>
Signed-off-by: Zhu Yanjun <yanjun.zhu@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/nvidia/forcedeth.c