]> asedeno.scripts.mit.edu Git - linux.git/commit
net: stmmac: fix ethtool flow control not able to get/set
authorTan, Tee Min <tee.min.tan@intel.com>
Tue, 21 May 2019 04:55:42 +0000 (12:55 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 May 2019 00:54:17 +0000 (20:54 -0400)
commit46dfc3a54b4dcf9e8ff204280800f60618ec783b
treed4728ca1337e73546431510e9cdf2d876e88bf2f
parent7036e621455f4e62781b69bb76c71fddcc8664bf
net: stmmac: fix ethtool flow control not able to get/set

Currently ethtool was not able to get/set the flow control due to a
missing "!". It will always return -EOPNOTSUPP even the device is
flow control supported.

This patch fixes the condition check for ethtool flow control get/set
function for ETHTOOL_LINK_MODE_Asym_Pause_BIT.

Fixes: 3c1bcc8614db (“net: ethernet: Convert phydev advertize and supported from u32 to link mode”)
Signed-off-by: Tan, Tee Min <tee.min.tan@intel.com>
Reviewed-by: Ong Boon Leong <boon.leong.ong@intel.com>
Signed-off-by: Voon, Weifeng <weifeng.voon@intel.com@intel.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c