Re: [PATCH] packet.7: add description of zero protocol for socket

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

 



Hi Grzegorz,

On 1/30/22 11:48, Grzegorz Szpetkowski wrote:
> In addtion of preventing unwanted packets (from other interfaces)
> being received between socket and bind, I've found another one. If
> desired usage of the raw packet socket is egress-only, meaning user
> doesn't want to receive any packet, then such a socket created with
> protocol = 0 argument will save both CPU/memory resources of the
> process, since Rx protocol handler won't be invoked upon reception of
> packets and the associated Rx socket buffer won't be populated,
> regardless of ingress traffic load  This can be especially useful in
> embedded applications.
> 
> Not sure if this can also be added to man, though.

I'd say yes.

I'll merge the other patch, and them you can suggest a new one with this
information.

Thanks,

Alex


-- 
Alejandro Colomar
Linux man-pages comaintainer; https://www.kernel.org/doc/man-pages/
http://www.alejandro-colomar.es/



[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux