Re: [PATCH net-next 1/2] net: renesas: rswitch: use per-port irq handlers
From: Nikita Yushchenko
Date: Fri Dec 20 2024 - 07:47:11 EST
There are only 3 physical ports, however the use case I'm targeting is -
virtual ports serving virtual machines (with offloading features making
hardware directly L2-forward or L3-route most traffic between outside world
and VM-owned virtual port frontends). In this setup, some of 8 GWCA irqs
will be given to VMs and thus there are definitely not enough to
per-consumer allocation.
And you are describing your VMs in DT as well? And if you change your
VM setup, you are going to modify your DT? This all sounds wrong.
Since this is for embedded, particular setups will likely be static... so defining driver configuration
in device tree suits the needs quite well.
Still, if this is considered as device tree misuse, I will implement some other solution.
Maybe, add a sysfs_group to port netdev and have irq_index attribute there?
Then, target rootfs will be able to configure that via udev rules file.
I don't know if it will help, but ethtool mentions:
-l --show-channels
...
-L --set-channels
I believe this is for multi-queue devices configuration, which is a somewhat different thing.
Nikita