!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:Jialin Zhang <zhangjialin11@huawei.com>
Loading
Please sign in to comment