]> 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)
commita02d767cd1a9bd60e952c93351e814181d0ea3f9
treef8bae108d8f1a41909412f532dc6cf0339d8555c
parentb9befb5f37f7b4a4e5aa69302d003c1af40441ca
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