Patch 4.18 008/228 Net: Hns3: Fix For Mac
- Linux 4.18 has been released on 12 August, 2018. Enable virtio_net to act as a standby for a passthru device. The main motivation for this patch is to enable cloud service providers to provide an accelerated datapath to virtio-net enabled VMs in a transparent manner with no/minimal guest userspace changes.
- 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.
[PATCH AUTOSEL 4.18 001/136] crypto: skcipher - Fix -Wstringop-truncation warnings From: Sasha Levin Prev by Date: [PATCH AUTOSEL 4.18 086/136] ath10k: protect ath10k_htt_rx_ring_free with rx_ring.lock.

14, 2018, 10:21 p.m. UTC From: Doug Berger Upstream commit 09e805d2570a3a94f13dd9c9ad2bcab23da76e09 A timing hazard exists when the network interface is stopped that allows a watchdog timeout to be processed by a separate core in parallel. This creates the potential for the timeout handler to wake the queues while the driver is shutting down, or access registers after their clocks have been removed. The more common case is that the watchdog timeout will produce a warning message which doesn't lead to a crash. The chances of this are greatly increased by the fact that bcmgenetnetifstop stops the transmit queues which can easily precipitate a watchdog time- out because of stale transstart data in the queues.
This commit corrects the behavior by ensuring that the watchdog timeout is disabled before enterring bcmgenetnetifstop. There are currently only two users of the bcmgenetnetifstop function: close and suspend. The close case already handles the issue by exiting the RUNNING state before invoking the driver close service. The suspend case now performs the netifdevicedetach to exit the PRESENT state before the call to bcmgenetnetifstop rather than after it. These behaviors prevent any future scheduling of the driver timeout service during the window. The netiftxstopallqueues function in bcmgenetnetifstop is replaced with netiftxdisable to ensure synchronization with any transmit or timeout threads that may already be executing on other cores.

Patch 4.18 008/228 Net Hns3 Fix For Mac
For symmetry, the netifdeviceattach call upon resume is moved to after the call to bcmgenetnetifstart. Since it wakes the transmit queues it is not necessary to invoke netiftxstartallqueues from bcmgenetnetifstart so it is moved into the driver open service.
Fixes: 1c1008c793fa ('net: bcmgenet: add main driver file') Signed-off-by: Doug Berger Signed-off-by: Florian Fainelli Signed-off-by: David S. Miller Signed-off-by: Sasha Levin - drivers/net/ethernet/broadcom/genet/bcmgenet.c 13 - 1 file changed, 7 insertions(+), 6 deletions(-) Patch.
PATCH AUTOSEL 4.18 077/136 staging: mt7621-eth: Fix memory leak in mtkaddmac error path. To: 'stable@xxxxxxxxxxxxxxx', 'linux-kernel@xxxxxxxxxxxxxxx'. Subject: PATCH AUTOSEL 4.18 077/136 staging: mt7621-eth: Fix memory leak in mtkaddmac error path. From: Sasha Levin.
Date: Mon, 17 Sep 2018 03:01:00 +0000. Cc: Kamal Heib, Greg Kroah-Hartman, Sasha Levin. References.