net: hns: bug fix about TSO on|off when there is traffic
authorDaode Huang <huangdaode@hisilicon.com>
Tue, 21 Jun 2016 03:56:39 +0000 (11:56 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Jun 2016 08:51:56 +0000 (04:51 -0400)
commit6fe27464d8e1e738c0a4779f6f5423017be052a2
treef8bae108d8f1a41909412f532dc6cf0339d8555c
parentf28f34cdefe5323468eab79f23d792b014b7d758
net: hns: bug fix about TSO on|off when there is traffic

When enable/disable tso, the driver tries to access the hardware register,
but this operation will cause the port unavalible when there is traffic.
This patch tries to enable TSO when initialize, then control tso through
TSE bit in transmit descriptor.

Signed-off-by: Daode Huang <huangdaode@hisilicon.com>
Signed-off-by: Yisen Zhuang <Yisen.Zhuang@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns/hns_enet.c