Unverified Commit 94b41cc2 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!3215 net: hns: fix fake link up on xge port and fix wrong head when modify...

!3215 net: hns: fix fake link up on xge port and fix wrong head when modify the tx feature when sending packets

Merge Pull Request from: @svishen 
 
This pr fix fake link up on xge port and fix wrong head when modify the tx feature when sending packets

(1)net: hns: fix wrong head when modify the tx feature when sending packets
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.

(2)net: hns: fix fake link up on xge port
If a xge port just connect with an optical module and no fiber, it may have a fake link up because there may be interference on the hardware. This patch adds an anti-shake to avoid the problem. And the time of anti-shake is base on tests.

issue:
https://gitee.com/openeuler/kernel/issues/I7OSIE
https://gitee.com/openeuler/kernel/issues/I8K7Q8 
 
Link:https://gitee.com/openeuler/kernel/pulls/3215

 

Signed-off-by: default avatarJialin Zhang <zhangjialin11@huawei.com>
parents 481c5185 736c28a6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment