]> git.baikalelectronics.ru Git - kernel.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)
commit4ef36f3ffee3e95ddc4f89ead241f90448b87a4c
treed4728ca1337e73546431510e9cdf2d876e88bf2f
parent00abc411594d359c952c7aea0a86fb89f858425d
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: b3e9409876df (“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