aboutsummaryrefslogtreecommitdiff
path: root/net/ipv6/tcp_ipv6.c
diff options
context:
space:
mode:
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>2024-05-29 09:40:49 +0100
committerJakub Kicinski <kuba@kernel.org>2024-05-30 18:30:10 -0700
commitaee04f4bb44d47205f4db9e84384116bb213160e (patch)
tree5658822402e46817d0755929b1e28d59882a6aa7 /net/ipv6/tcp_ipv6.c
parent3277407e5e8217cb7550453fe3184d0de511f377 (diff)
downloadlinux-aee04f4bb44d47205f4db9e84384116bb213160e.tar.gz
linux-aee04f4bb44d47205f4db9e84384116bb213160e.tar.bz2
linux-aee04f4bb44d47205f4db9e84384116bb213160e.zip
net: stmmac: remove unnecessary netif_carrier_off()
It is incorrect to call netif_carrier_off(), or in fact any driver teardown, before unregister_netdev() has been called. unregister_netdev() unpublishes the network device from userspace, and takes the interface down if it was up prior to returning. Therefore, once the call has returned, we are guaranteed that .ndo_stop() will have been called for an interface that was up. Phylink will take the carrier down via phylink_stop(), making any manipulation of the carrier in the remove path unnecessary. In the stmmac_release() path, the netif_carrier_off() call follows the call to phylink_stop(), so this call is redundant. Reviewed-by: Andrew Halaney <ahalaney@redhat.com> Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk> Reviewed-by: Serge Semin <fancer.lancer@gmail.com> Link: https://lore.kernel.org/r/E1sCErZ-00EOPx-PF@rmk-PC.armlinux.org.uk Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/ipv6/tcp_ipv6.c')
0 files changed, 0 insertions, 0 deletions