From: Tomasz Lichwala Add Asym_Pause to the supported link modes so that asymmetric pause negotiation is properly reported via ethtool. Without Asym_Pause in the supported modes, 'ethtool -a' incorrectly shows 'RX/TX negotiated: off' for asymmetric pause configurations, even when pause is properly negotiated and functional at the hardware level. Fixes: 5a056cd7ead2 ("ice: add lp_advertising flow control support") Signed-off-by: Tomasz Lichwala Signed-off-by: Aleksandr Loktionov --- drivers/net/ethernet/intel/ice/ice_ethtool.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/intel/ice/ice_ethtool.c b/drivers/net/ethernet/intel/ice/ice_ethtool.c index e6a20af..30d2550 100644 --- a/drivers/net/ethernet/intel/ice/ice_ethtool.c +++ b/drivers/net/ethernet/intel/ice/ice_ethtool.c @@ -2373,8 +2373,9 @@ ice_get_link_ksettings(struct net_device *netdev, break; } - /* flow control is symmetric and always supported */ + /* flow control is symmetric or asymmetric and always supported */ ethtool_link_ksettings_add_link_mode(ks, supported, Pause); + ethtool_link_ksettings_add_link_mode(ks, supported, Asym_Pause); caps = kzalloc_obj(*caps); if (!caps) -- 2.52.0