mirror-linux/drivers/net
Russell King (Oracle) 486dc391ef net: phylink: allow mac_select_pcs() to remove a PCS
phylink has historically not permitted a PCS to be removed. An attempt
to permit this with phylink_set_pcs() resulted in comments indicating
that there was no need for this. This behaviour has been propagated
forward to the mac_select_pcs() approach as it was believed from these
comments that changing this would be NAK'd.

However, with mac_select_pcs(), it takes more code and thus complexity
to maintain this behaviour, which can - and in this case has - resulted
in a bug. If mac_select_pcs() returns NULL for a particular interface
type, but there is already a PCS in-use, then we skip the pcs_validate()
method, but continue using the old PCS. Also, it wouldn't be expected
behaviour by implementers of mac_select_pcs().

Allow this by removing this old unnecessary restriction.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
2024-10-17 18:15:15 -05:00
..
arcnet
bonding
caif
can
dsa net: dsa: mv88e6xxx: return NULL when no PCS is present 2024-10-17 18:15:15 -05:00
ethernet net: ks8851: use %*ph to print small buffer 2024-10-17 18:11:05 -05:00
fddi
fjes
hamradio
hippi
hyperv
ieee802154
ipa
ipvlan
mctp
mdio
netdevsim netdevsim: copy addresses for both in and out paths 2024-10-11 15:44:27 -07:00
pcs net: pcs: xpcs: move Wangxun VR_XS_PCS_DIG_CTRL1 configuration 2024-10-09 12:13:12 +01:00
phy net: phylink: allow mac_select_pcs() to remove a PCS 2024-10-17 18:15:15 -05:00
plip
ppp ppp: fix ppp_async_encode() illegal access 2024-10-10 08:47:13 -07:00
pse-pd
slip slip: make slhc_remember() more robust against malicious packets 2024-10-10 09:06:32 -07:00
team
thunderbolt
usb net: usb: sr9700: only store little-endian values in __le16 variable 2024-10-17 18:09:13 -05:00
vmxnet3
vxlan net: vxlan: use kfree_skb_reason() in encap_bypass_if_local() 2024-10-13 11:33:10 +01:00
wan
wireguard
wireless
wwan
xen-netback
Kconfig testing: net-drv: add basic shaper test 2024-10-10 08:30:23 -07:00
LICENSE.SRC
Makefile
Space.c
amt.c
bareudp.c net: tunnel: make skb_vlan_inet_prepare() return drop reasons 2024-10-13 11:33:08 +01:00
dummy.c
eql.c
geneve.c net: tunnel: make skb_vlan_inet_prepare() return drop reasons 2024-10-13 11:33:08 +01:00
gtp.c
ifb.c
loopback.c
macsec.c
macvlan.c
macvtap.c
mdio.c
mhi_net.c
mii.c
net_failover.c
netconsole.c net: netconsole: fix wrong warning 2024-10-09 19:42:43 -07:00
netkit.c
nlmon.c
ntb_netdev.c
pfcp.c
rionet.c
sb1000.c
sungem_phy.c
tap.c
tun.c
veth.c
virtio_net.c
vrf.c
vsockmon.c
xen-netfront.c