Message ID | 20250115065933.17357-1-chwee.lin.choong@intel.com (mailing list archive) |
---|---|
State | New |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [net,1/1] net: ethtool: mm: Allow Verify Enabled before Tx Enabled | expand |
diff --git a/net/ethtool/mm.c b/net/ethtool/mm.c index 2816bb23c3ad..8a66ea3148d1 100644 --- a/net/ethtool/mm.c +++ b/net/ethtool/mm.c @@ -214,8 +214,8 @@ static int ethnl_set_mm(struct ethnl_req_info *req_info, struct genl_info *info) return -ERANGE; } - if (cfg.verify_enabled && !cfg.tx_enabled) { - NL_SET_ERR_MSG(extack, "Verification requires TX enabled"); + if (cfg.verify_enabled && !cfg.pmac_enabled) { + NL_SET_ERR_MSG(extack, "Verify enabled requires pMAC enabled"); return -EINVAL; }