Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi queue with multiple host rings #964

Open
cakturk opened this issue Aug 2, 2024 · 1 comment
Open

Multi queue with multiple host rings #964

cakturk opened this issue Aug 2, 2024 · 1 comment

Comments

@cakturk
Copy link

cakturk commented Aug 2, 2024

Hello,

I have a few of questions about netmap. Let's say I have a setup like this;

I have an ethernet card with 4 queues and I want to intercept packets between hw ring and host ring. In doing so, I want to take advantage of netmap's multiple host ring feature. In this case, each thread will intercept between a hardware ring and a host ring. Let's say we have a setup like this:

thread0 -i netmap:em0-0 -i netmap:em0^0
thread1 -i netmap:em0-1 -i netmap:em0^1
thread2 -i netmap:em0-2 -i netmap:em0^2
thread3 -i netmap:em0-3 -i netmap:em0^3

In this setup, let's imagine that we are receiving the first syn packet of a TCP stream from em0-2. What I'm wondering is, will all the remaining packets somehow pass through the same queues, or can the rest of the packets of this TCP session enter different queues? In other words, can I completely recreate the TCP session with the packets I capture from a single queue?

Thanks

@vmaffione
Copy link
Collaborator

This does not depend on netmap, but on your NIC RSS policy (which may be configured through ethtool). Typically each TCP session will end up on the same hardware queue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants