Skip to contentSkip to conversation

net: phylink: update mac_config() documentation

PATCH Superseded Russell King 3 participants 3 messages Feb 5, 2019 – Feb 7, 2019

Subsystems (4)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 net: phylink: update mac_config() documentation

A detail for mac_config() had been missed in the documentation for the method - it is expected that the method will update the MAC to the settings, rather than completely reprogram the MAC on each call. Update the documentation for this method for this detail.

---
 include/linux/phylink.h | 7 +++++++
 1 file changed, 7 insertions(+)
include/linux/phylink.h +7 -0
index 021fc6595856..606a121629a9 100644
@@ -149,6 +149,13 @@ int mac_link_state(struct net_device *ndev,
  *   configuration word. Nothing is advertised by the MAC. The MAC is
  *   responsible for reading the configuration word and configuring
  *   itself accordingly.
+ *
+ * Implementations are expected to update the MAC to reflect the
+ * requested settings - i.o.w., if nothing has changed between two
+ * calls, no action is expected.  If only flow control settings have
+ * changed, flow control should be updated *without* taking the link
+ * down.  This "update" behaviour is critical to avoid bouncing the
+ * link up status.
  */
 void mac_config(struct net_device *ndev, unsigned int mode,
 		const struct phylink_link_state *state);
Signature · 1 line
2.7.4
maintainer
#1 lore raw

These two patches do not apply cleanly to net nor net-next.

Please send me something that does apply, and please always clearly indicate which tree your changes are targetting.

#2 lore raw
Quoted 5 lines · David Miller

These two patches do not apply cleanly to net nor net-next.

Please send me something that does apply, and please always clearly indicate which tree your changes are targetting.

I've just tried this patch on current net-next, and there does not seem to be any problem. What problem are you seeing specifically with this patch? Thanks.

Signature · 3 lines
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTC broadband for 0.8mile line in suburbia: sync at 12.1Mbps down 622kbps up
According to speedtest.net: 11.9Mbps down 500kbps up