diff --git a/net/ethtool/ioctl.c b/net/ethtool/ioctl.c index 111a6ca0685f..606eb54ae209 100644 --- a/net/ethtool/ioctl.c +++ b/net/ethtool/ioctl.c @@ -988,7 +988,7 @@ static noinline_for_stack int ethtool_set_rxnfc(struct net_device *dev, return rc; /* Nonzero ring with RSS only makes sense if NIC adds them together */ - if (cmd == ETHTOOL_SRXCLSRLINS && info.flow_type & FLOW_RSS && + if (cmd == ETHTOOL_SRXCLSRLINS && info.fs.flow_type & FLOW_RSS && !ops->cap_rss_rxnfc_adds && ethtool_get_flow_spec_ring(info.fs.ring_cookie)) return -EINVAL;