Multiqueue tun/tap interface
Clash Royale CLAN TAG#URR8PPP
I am trying to understand how Multiqueue tuntap interface works. Following the instructions provided at: https://www.kernel.org/doc/Documentation/networking/tuntap.txt
I was able to create multiple queues. However, I don't know how to check the queus status and where they are created. I tried:
$ tc -s class show dev tap0
(where tap0 is my tap interface), I see around 255 queues, even for a single ioctl call with IFF_MULTI_QUEUE flag. So probably I am looking at the wrong place. Here is the snippet of the output of the above command:
class mq :1 root
Sent 4741 bytes 37 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
class mq :2 root
Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
.
.
.
class mq :ff root
Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
class mq :100 root
Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
Secondly, I am not sure how to steer packets to these queues based on some filter or classifier using TC or anyother tool.
tunneling tc tap mqueue
add a comment |
I am trying to understand how Multiqueue tuntap interface works. Following the instructions provided at: https://www.kernel.org/doc/Documentation/networking/tuntap.txt
I was able to create multiple queues. However, I don't know how to check the queus status and where they are created. I tried:
$ tc -s class show dev tap0
(where tap0 is my tap interface), I see around 255 queues, even for a single ioctl call with IFF_MULTI_QUEUE flag. So probably I am looking at the wrong place. Here is the snippet of the output of the above command:
class mq :1 root
Sent 4741 bytes 37 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
class mq :2 root
Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
.
.
.
class mq :ff root
Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
class mq :100 root
Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
Secondly, I am not sure how to steer packets to these queues based on some filter or classifier using TC or anyother tool.
tunneling tc tap mqueue
1
LARTC is your friend here - lartc.org
– nwildner
Jan 22 at 19:54
Thanks @nwildner for the edits and suggestion. I have gone through LARTC, but couldn't find details about this particular case. I'll really appreciate if you can point me to any link that I might have missed.
– Deys Nima
Jan 22 at 20:28
For the second question, check my answer at: serverfault.com/questions/951385/multiqueue-tun-tap-interface/…
– Deys Nima
Jan 31 at 19:49
add a comment |
I am trying to understand how Multiqueue tuntap interface works. Following the instructions provided at: https://www.kernel.org/doc/Documentation/networking/tuntap.txt
I was able to create multiple queues. However, I don't know how to check the queus status and where they are created. I tried:
$ tc -s class show dev tap0
(where tap0 is my tap interface), I see around 255 queues, even for a single ioctl call with IFF_MULTI_QUEUE flag. So probably I am looking at the wrong place. Here is the snippet of the output of the above command:
class mq :1 root
Sent 4741 bytes 37 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
class mq :2 root
Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
.
.
.
class mq :ff root
Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
class mq :100 root
Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
Secondly, I am not sure how to steer packets to these queues based on some filter or classifier using TC or anyother tool.
tunneling tc tap mqueue
I am trying to understand how Multiqueue tuntap interface works. Following the instructions provided at: https://www.kernel.org/doc/Documentation/networking/tuntap.txt
I was able to create multiple queues. However, I don't know how to check the queus status and where they are created. I tried:
$ tc -s class show dev tap0
(where tap0 is my tap interface), I see around 255 queues, even for a single ioctl call with IFF_MULTI_QUEUE flag. So probably I am looking at the wrong place. Here is the snippet of the output of the above command:
class mq :1 root
Sent 4741 bytes 37 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
class mq :2 root
Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
.
.
.
class mq :ff root
Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
class mq :100 root
Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
Secondly, I am not sure how to steer packets to these queues based on some filter or classifier using TC or anyother tool.
tunneling tc tap mqueue
tunneling tc tap mqueue
edited Jan 29 at 21:30
Deys Nima
asked Jan 22 at 19:38
Deys NimaDeys Nima
112
112
1
LARTC is your friend here - lartc.org
– nwildner
Jan 22 at 19:54
Thanks @nwildner for the edits and suggestion. I have gone through LARTC, but couldn't find details about this particular case. I'll really appreciate if you can point me to any link that I might have missed.
– Deys Nima
Jan 22 at 20:28
For the second question, check my answer at: serverfault.com/questions/951385/multiqueue-tun-tap-interface/…
– Deys Nima
Jan 31 at 19:49
add a comment |
1
LARTC is your friend here - lartc.org
– nwildner
Jan 22 at 19:54
Thanks @nwildner for the edits and suggestion. I have gone through LARTC, but couldn't find details about this particular case. I'll really appreciate if you can point me to any link that I might have missed.
– Deys Nima
Jan 22 at 20:28
For the second question, check my answer at: serverfault.com/questions/951385/multiqueue-tun-tap-interface/…
– Deys Nima
Jan 31 at 19:49
1
1
LARTC is your friend here - lartc.org
– nwildner
Jan 22 at 19:54
LARTC is your friend here - lartc.org
– nwildner
Jan 22 at 19:54
Thanks @nwildner for the edits and suggestion. I have gone through LARTC, but couldn't find details about this particular case. I'll really appreciate if you can point me to any link that I might have missed.
– Deys Nima
Jan 22 at 20:28
Thanks @nwildner for the edits and suggestion. I have gone through LARTC, but couldn't find details about this particular case. I'll really appreciate if you can point me to any link that I might have missed.
– Deys Nima
Jan 22 at 20:28
For the second question, check my answer at: serverfault.com/questions/951385/multiqueue-tun-tap-interface/…
– Deys Nima
Jan 31 at 19:49
For the second question, check my answer at: serverfault.com/questions/951385/multiqueue-tun-tap-interface/…
– Deys Nima
Jan 31 at 19:49
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f496043%2fmultiqueue-tun-tap-interface%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f496043%2fmultiqueue-tun-tap-interface%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
LARTC is your friend here - lartc.org
– nwildner
Jan 22 at 19:54
Thanks @nwildner for the edits and suggestion. I have gone through LARTC, but couldn't find details about this particular case. I'll really appreciate if you can point me to any link that I might have missed.
– Deys Nima
Jan 22 at 20:28
For the second question, check my answer at: serverfault.com/questions/951385/multiqueue-tun-tap-interface/…
– Deys Nima
Jan 31 at 19:49