[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20161118130953.7bf2d71d@laptop>
Date: Fri, 18 Nov 2016 13:09:53 -0800
From: Jakub Kicinski <kubakici@...pl>
To: John Fastabend <john.fastabend@...il.com>
Cc: tgraf@...g.ch, shm@...ulusnetworks.com,
alexei.starovoitov@...il.com, daniel@...earbox.net,
davem@...emloft.net, john.r.fastabend@...el.com,
netdev@...r.kernel.org, bblanco@...mgrid.com, brouer@...hat.com
Subject: Re: [PATCH 4/5] virtio_net: add dedicated XDP transmit queues
Looks very cool! :)
On Fri, 18 Nov 2016 11:00:41 -0800, John Fastabend wrote:
> @@ -1542,12 +1546,34 @@ static int virtnet_xdp_set(struct net_device *dev, struct bpf_prog *prog)
> return -EINVAL;
> }
>
> + curr_qp = vi->curr_queue_pairs - vi->xdp_queue_pairs;
> + if (prog)
> + xdp_qp = num_online_cpus();
Is num_online_cpus() correct here?
Powered by blists - more mailing lists