diff options
author | Yonglong Liu <liuyonglong@huawei.com> | 2023-12-04 22:32:31 +0800 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2023-12-06 12:19:08 +0100 |
commit | 84757d0839451b20b11e993128f0a77393ca50c1 (patch) | |
tree | 18a877372d8d7a2c5b6b056391425eb46a1b83f5 /drivers/net/mhi_net.c | |
parent | cbe860be36095e68e4e5561ab43610982fb429fd (diff) |
net: hns: fix wrong head when modify the tx feature when sending packets
Upon changing the tx feature, the hns driver will modify the
maybe_stop_tx() and fill_desc() functions, if the modify happens
during packet sending, will cause the hardware and software
pointers do not match, and the port can not work anymore.
This patch deletes the maybe_stop_tx() and fill_desc() functions
modification when setting tx feature, and use the skb_is_gro()
to determine which functions to use in the tx path.
Fixes: 38f616da1c28 ("net:hns: Add support of ethtool TSO set option for Hip06 in HNS")
Signed-off-by: Yonglong Liu <liuyonglong@huawei.com>
Signed-off-by: Jijie Shao <shaojijie@huawei.com>
Reviewed-by: Wojciech Drewek <wojciech.drewek@intel.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'drivers/net/mhi_net.c')
0 files changed, 0 insertions, 0 deletions