Net-next,02/10 Net: Hns3: Fix For Mac

Posted on
Net-next 02/10 net hns3 fix for mac

. 4.16,108/272 net/mlx5e: Move all TX timeout logic to be under state lock. May 28, 2018, 10:02 a.m.

UTC 4.16-stable review patch. If anyone has any objections, please let me know. From: Eran Ben Elisha Upstream commit bfc647d52e67dc756c605e9a4c2533 Driver callback for handling TX timeout should access some internal resources (SQ, CQ) in order to decide if the tx timeout work should be scheduled. These resources might be unavailable if channels are closed in parallel (ifdown for example). The state lock is the mechanism to protect from such races. Move all TX timeout logic to be in the work under a state lock. In addition, Move the work from the global WQ to mlx5e WQ to make sure this work is flushed when device is detached. Ubermac humanshield for mac.

[net-next,00/10] Misc. Bug fixes & cleanups for HNS3 driver. Lin (6): net: hns3: Fix tc setup when netdev is first up net: hns3: Fix for mac pause not disable in pfc. Current buffer allocation can only happen at init, when doing buffer reallocation after init, care must be taken care of memory which priv_buf points to.

Net-next 02/10 Net Hns3 Fix For Mac

Also, move the mlx5etxtimeoutwork code to be next to the TX timeout NDO for better code locality. Fixes: 3947ca185999 ('net/mlx5e: Implement ndotxtimeout callback') Signed-off-by: Eran Ben Elisha Signed-off-by: Saeed Mahameed Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman - drivers/net/ethernet/mellanox/mlx5/core/enmain.c 61 - 1 file changed, 34 insertions(+), 27 deletions(-) Patch.

Net:

From: Yunsheng Lin When pfc pause mode is enable, the mac pause mode need to be disabled, otherwise the pfc pause packet will not be sent when congestion happens. This patch fixes by disabling the mac pause when pfc pause is enabled.