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)
commit0d728b844c2dd8dd3875ed304eee43967c5d14f6
tree37f4a74f34fc52147e5b855c21a1985138c122e0
parent6afce196236c353819526a1c41fffb6d660eb2ef
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