lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <5ee3ae6c-db4e-4cdf-bdc9-f3baea26cb4e@soulik.info>
Date: Wed, 10 Jul 2024 23:23:47 +0800
From: Randy Li <ayaka@...lik.info>
To: Stephen Hemminger <stephen@...workplumber.org>
Cc: netdev@...r.kernel.org
Subject: Re: tun: need an ioctl() cmd to get multi_queue index?

Hello Stephen

On 2024/7/10 23:18, Stephen Hemminger wrote:
> On Wed, 10 Jul 2024 17:40:46 +0800
> ayaka <ayaka@...lik.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.

Yes, I know of that. But I think the argument that queue_mapping 
requires in tc is the index not the file descriptor.

Although I am not sure whether the filter would work as I expected, I 
would apply the filter in the reading from tun/tap side, which is the 
socket data passes through the tun device.


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ