Re: [PATCH net-next v3 12/18] xdp: add generic xdp_build_skb_from_buff()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Toke Høiland-Jørgensen <toke@xxxxxxxxxx>
Date: Fri, 01 Nov 2024 14:18:04 +0100

> Alexander Lobakin <aleksander.lobakin@xxxxxxxxx> writes:
> 
>> The code which builds an skb from an &xdp_buff keeps multiplying itself
>> around the drivers with almost no changes. Let's try to stop that by
>> adding a generic function.
>> There's __xdp_build_skb_from_frame() already, so just convert it to take
>> &xdp_buff instead, while making the original one a wrapper.
> 
> This does not seem to be what the patch actually does? :)

Good catch. Initially, I wanted the common function to take &xdp_buff,
so that frame -> skb conversion would convert frame to a buff and then
call it.
But there were some functional differences and also +56 bytes on the
stack, so I ended up just introducing a standalone function w/o changing
any existing ones.

> 
> -Toke

Thanks,
Olek




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux