diff mbox

[RFC,net-next,3/3] macvtap: Record the rx queue based on the user tap queue

Message ID 1454901296-9915-4-git-send-email-vyasevic@redhat.com
State RFC, archived
Delegated to: David Miller
Headers show

Commit Message

Vladislav Yasevich Feb. 8, 2016, 3:14 a.m. UTC
Now that macvlan has a basic queue selection and macvtap has
multiple qdiscs, we can record the the queue index into the skb
based on the index of the macvtap user queue.  This index will
then be used to select the right qdisc.

Signed-off-by: Vlad Yasevich <vyasevic@redhat.com>
---
 drivers/net/macvtap.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

diff --git a/drivers/net/macvtap.c b/drivers/net/macvtap.c
index 810e7d3..650a374 100644
--- a/drivers/net/macvtap.c
+++ b/drivers/net/macvtap.c
@@ -821,6 +821,7 @@  static ssize_t macvtap_get_user(struct macvtap_queue *q, struct msghdr *m,
 			goto err_kfree;
 	}
 
+	skb_record_rx_queue(skb, q->queue_index);
 	skb_probe_transport_header(skb, ETH_HLEN);
 
 	/* Move network header to the right position for VLAN tagged packets */