net: phylink: Adjust advertisement based on rate matching
authorSean Anderson <sean.anderson@seco.com>
Tue, 20 Sep 2022 22:12:33 +0000 (18:12 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 23 Sep 2022 10:55:36 +0000 (11:55 +0100)
commitb7e9294885b610791fcebc799bf2a9e219446fd6
tree647991907cecee33e00bf153b69807dde0640e79
parentae0e4bb2a0e0e434e9f98fb4994093ec2ee71997
net: phylink: Adjust advertisement based on rate matching

This adds support for adjusting the advertisement for pause-based rate
matching. This may result in a lossy link, since the final link settings
are not adjusted. Asymmetric pause support is necessary. It would be
possible for a MAC supporting only symmetric pause to use pause-based rate
adaptation, but only if pause reception was enabled as well.

Signed-off-by: Sean Anderson <sean.anderson@seco.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phylink.c
include/linux/phylink.h