]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1becdf104b50486ac2758697fcccd37b10fc1f8c
tree647991907cecee33e00bf153b69807dde0640e79
parentc5032dc711dead6255193e1848e170eaa6572127
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