Thread (18 messages) flat view 18 messages, 3 authors, 2016-11-19

Re: [PATCH 4/5] virtio_net: add dedicated XDP transmit queues

From: Jakub Kicinski <hidden>
Date: 2016-11-18 21:10:21

Looks very cool! :)

On Fri, 18 Nov 2016 11:00:41 -0800, John Fastabend wrote:
quoted hunk ↗ jump to hunk
@@ -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?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help