Re: [PATCH bpf] net, xsk: Avoid taking multiple skbuff references

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

 



On 2020-11-23 14:53, Daniel Borkmann wrote:
[...]

Hm, but this way free_on_busy, even though constant, cannot be optimized away? Can't you just move the dev_xmit_complete() check out into dev_direct_xmit() instead? That way you can just drop the bool, and the below dev_direct_xmit()
should probably just become an __always_line function in netdevice.h so you
avoid the double call.


Good suggestion! I'll spin a v2.


Björn



[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