Netdev List
 help / color / mirror / Atom feed
From: Stephen Hemminger <stephen@networkplumber.org>
To: ayaka <ayaka@soulik.info>
Cc: netdev@vger.kernel.org
Subject: Re: tun: need an ioctl() cmd to get multi_queue index?
Date: Wed, 10 Jul 2024 08:18:21 -0700	[thread overview]
Message-ID: <20240710081821.63b6f6d1@hermes.local> (raw)
In-Reply-To: <FABA3A61-3062-4AC6-94D8-7DF602E09EC3@soulik.info>

On Wed, 10 Jul 2024 17:40:46 +0800
ayaka <ayaka@soulik.info> wrote:

> Hello All
> 
> I have read some example that filter packet with tc qdisc. It could a very useful feature for dispatcher in a VPN program.
> But I didn’t find an ioctl() to fetch the queue index, which I believe is the queue number used in tc qdisc.
> There is an ioctl() which set the ifindex which would affect the queue_index storing in the same union. But I don’t think there is an ioctl() to fetch it.
> 
> If I was right, could I add a new ioctl() cmd for that?
> 
> Sincerely
> Randy

In the case of TUN, each queue is handled by a different file descriptor.

  reply	other threads:[~2024-07-10 15:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-10  9:40 tun: need an ioctl() cmd to get multi_queue index? ayaka
2024-07-10 15:18 ` Stephen Hemminger [this message]
2024-07-10 15:23   ` Randy Li

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=20240710081821.63b6f6d1@hermes.local \
    --to=stephen@networkplumber.org \
    --cc=ayaka@soulik.info \
    --cc=netdev@vger.kernel.org \
    /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