net: ethtool: fix __ethtool_dev_mm_supported() implementation
authorVladimir Oltean <vladimir.oltean@nxp.com>
Mon, 20 Feb 2023 12:23:31 +0000 (14:23 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 21 Feb 2023 17:05:01 +0000 (09:05 -0800)
commita00da30c052f07d67da56efd6a4f1fc85956c979
treee81f7986ec358042dc303b3b9d852cc08d2c7398
parent7ec077744aade63729d58c2d26861c3147a4d8aa
net: ethtool: fix __ethtool_dev_mm_supported() implementation

The MAC Merge layer is supported when ops->get_mm() returns 0.
The implementation was changed during review, and in this process, a bug
was introduced.

Link: https://lore.kernel.org/netdev/20230111161706.1465242-5-vladimir.oltean@nxp.com/
Fixes: 04692c9020b7 ("net: ethtool: netlink: retrieve stats from multiple sources (eMAC, pMAC)")
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Ferenc Fejes <fejes@inf.elte.hu>
Link: https://lore.kernel.org/all/20230220122343.1156614-2-vladimir.oltean@nxp.com/
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ethtool/mm.c