diff options
author | Richard Acayan <[email protected]> | 2023-12-18 11:45:33 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2024-01-04 16:04:28 +0100 |
commit | 76c945730cdffb572c7767073cc6515fd3f646b4 (patch) | |
tree | 2af3baabfc4d4affde9ecd25989b0f5814e86926 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 3c7af52c7616c3aa6dacd2336ec748d4a65df8f4 (diff) |
usb: gadget: u_ether: Re-attach netif device to mirror detachment
In 6.7-rc1, there was a netif_device_detach call added to the
gether_disconnect function. This clears the __LINK_STATE_PRESENT bit of
the netif device and suppresses pings (ICMP messages) and TCP connection
requests from the connected host. If userspace temporarily disconnects
the gadget, such as by temporarily removing configuration in the gadget
configfs interface, network activity should continue to be processed
when the gadget is re-connected. Mirror the netif_device_detach call
with a netif_device_attach call in gether_connect to fix re-connecting
gadgets.
Link: https://gitlab.com/postmarketOS/pmaports/-/tree/6002e51b7090aeeb42947e0ca7ec22278d7227d0/main/postmarketos-base-ui/rootfs-usr-lib-NetworkManager-dispatcher.d-50-tethering.sh
Cc: stable <[email protected]>
Fixes: f49449fbc21e ("usb: gadget: u_ether: Replace netif_stop_queue with netif_device_detach")
Signed-off-by: Richard Acayan <[email protected]>
Tested-by: Luca Weiss <[email protected]>
Tested-by: Duje Mihanović <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions