commit f96315f2f17e7b2580d2fec7c4d6a706a131d904
Author: Huazhong Tan <email address hidden>
Date: Fri Jun 28 19:50:07 2019 +0800
net: hns3: fix __QUEUE_STATE_STACK_XOFF not cleared issue
When change MTU or other operations, which just calling .reset_notify
to do HNAE3_DOWN_CLIENT and HNAE3_UP_CLIENT, then
the netdev_tx_reset_queue() in the hns3_clear_all_ring() will be
ignored. So the dev_watchdog() may misdiagnose a TX timeout.
This patch separates netdev_tx_reset_queue() from
hns3_clear_all_ring(), and unifies hns3_clear_all_ring() and
hns3_force_clear_all_ring into one, since they are doing
similar things.
Fixes: 3a30964a2eef ("net: hns3: delay ring buffer clearing during reset")
Signed-off-by: Huazhong Tan <email address hidden>
Signed-off-by: David S. Miller <email address hidden>
Is this patch the fix?
commit f96315f2f17e7b2 580d2fec7c4d6a7 06a131d904
Author: Huazhong Tan <email address hidden>
Date: Fri Jun 28 19:50:07 2019 +0800
net: hns3: fix __QUEUE_ STATE_STACK_ XOFF not cleared issue
When change MTU or other operations, which just calling .reset_notify tx_reset_ queue() in the hns3_clear_ all_ring( ) will be
to do HNAE3_DOWN_CLIENT and HNAE3_UP_CLIENT, then
the netdev_
ignored. So the dev_watchdog() may misdiagnose a TX timeout.
This patch separates netdev_ tx_reset_ queue() from clear_all_ ring(), and unifies hns3_clear_ all_ring( ) and force_clear_ all_ring into one, since they are doing
hns3_
hns3_
similar things.
Fixes: 3a30964a2eef ("net: hns3: delay ring buffer clearing during reset")
Signed-off-by: Huazhong Tan <email address hidden>
Signed-off-by: David S. Miller <email address hidden>