[PATCH v2 bpf-next 13/17] veth: implement ethtool's get_channels() callback

2021-03-11 Thread Maciej Fijalkowski
Libbpf's xsk part calls get_channels() API to retrieve the queue count of the underlying driver so that XSKMAP is sized accordingly. Implement that in veth so multi queue scenarios can work properly. Signed-off-by: Maciej Fijalkowski --- drivers/net/veth.c | 12 1 file changed, 12

Re: [PATCH v2 bpf-next 13/17] veth: implement ethtool's get_channels() callback

2021-03-16 Thread Magnus Karlsson
On Thu, Mar 11, 2021 at 4:43 PM Maciej Fijalkowski wrote: > > Libbpf's xsk part calls get_channels() API to retrieve the queue count > of the underlying driver so that XSKMAP is sized accordingly. > > Implement that in veth so multi queue scenarios can work properly. > > Signed-off-by: Maciej Fija

Re: [PATCH v2 bpf-next 13/17] veth: implement ethtool's get_channels() callback

2021-03-22 Thread Maciej Fijalkowski
On Tue, Mar 16, 2021 at 09:44:38AM +0100, Magnus Karlsson wrote: > On Thu, Mar 11, 2021 at 4:43 PM Maciej Fijalkowski > wrote: > > > > Libbpf's xsk part calls get_channels() API to retrieve the queue count > > of the underlying driver so that XSKMAP is sized accordingly. > > > > Implement that in