Re: pt_prev in net_rx_action()

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

 




samudrala@us.ibm.com writes:
 > Is there any reason why pt_prev is used instead of directly calling
 > ptype->func()? This causes the packet handler to be called during the next
 > iteration after it was found.

If there is only one handler, we need not copy/clone the SKB and
we can just give the original SKB directly to the protocol handler,
otherwise we have to deal with the SKB sharing issues.

Later,
David S. Miller
davem@redhat.com
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux