From: Vladislav Yasevich <vyasevich@gmail.com>
To: netdev@vger.kernel.org
Cc: jasowang@redhat.com, mst@redhat.com,
Vladislav Yasevich <vyasevic@redhat.com>
Subject: [RFC PATCH net-next 3/3] macvtap: Record the rx queue based on the user tap queue
Date: Sun, 7 Feb 2016 22:14:56 -0500 [thread overview]
Message-ID: <1454901296-9915-4-git-send-email-vyasevic@redhat.com> (raw)
In-Reply-To: <1454901296-9915-1-git-send-email-vyasevic@redhat.com>
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 --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 */
--
2.1.0
next prev parent reply other threads:[~2016-02-08 3:15 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-08 3:14 [RFC PATCH net-next 0/3] Extend macvtap with multiple qdiscs Vladislav Yasevich
2016-02-08 3:14 ` [RFC PATCH net-next 1/3] macvtap: mutiple qdiscs support Vladislav Yasevich
2016-02-08 3:14 ` [RFC PATCH net-next 2/3] macvlan: add queue selection functionality Vladislav Yasevich
2016-02-08 3:45 ` Eric Dumazet
2016-02-09 4:30 ` Pankaj Gupta
2016-02-08 3:14 ` Vladislav Yasevich [this message]
2016-02-23 2:38 ` [RFC PATCH net-next 0/3] Extend macvtap with multiple qdiscs Jason Wang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1454901296-9915-4-git-send-email-vyasevic@redhat.com \
--to=vyasevich@gmail.com \
--cc=jasowang@redhat.com \
--cc=mst@redhat.com \
--cc=netdev@vger.kernel.org \
--cc=vyasevic@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).