]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6bde1485a5dc779be8c82db54f0c229c0ad3c301
treef8bae108d8f1a41909412f532dc6cf0339d8555c
parent82eeb23772d267bd09dbdc42fe73a984b887521c
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