X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=net%2Fethtool%2Fchannels.c;h=9ecda09ecb11132449eaade0f4227a4e49b3df16;hb=717f20341686245fdde9000ee09fdab5dc722477;hp=9ef54cdcf662773241a057c844549469ab9a64dd;hpb=e8dff03aef6a76c5c9184ed1dd3c770d4ce9c885;p=linux-2.6-microblaze.git diff --git a/net/ethtool/channels.c b/net/ethtool/channels.c index 9ef54cdcf662..9ecda09ecb11 100644 --- a/net/ethtool/channels.c +++ b/net/ethtool/channels.c @@ -223,7 +223,7 @@ int ethnl_set_channels(struct sk_buff *skb, struct genl_info *info) from_channel = channels.combined_count + min(channels.rx_count, channels.tx_count); for (i = from_channel; i < old_total; i++) - if (xdp_get_umem_from_qid(dev, i)) { + if (xsk_get_pool_from_qid(dev, i)) { GENL_SET_ERR_MSG(info, "requested channel counts are too low for existing zerocopy AF_XDP sockets"); return -EINVAL; }