Commit 2014c79b authored by Yonglong Liu's avatar Yonglong Liu Committed by Jiantao Xiao
Browse files

net: hns: fix wrong head when modify the tx feature when sending packets

maillist inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I7OSIE
CVE: NA

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/commit/?id=84757d0839451b20b11e993128f0a77393ca50c1



----------------------------

When modify 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 use tso functions or non-tso functions when packets
sending.

Fixes: 38f616da ("net:hns: Add support of ethtool TSO set option for Hip06 in HNS")
Signed-off-by: default avatarYonglong Liu <liuyonglong@huawei.com>
parent 8c17b6e2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment