]> git.baikalelectronics.ru Git - kernel.git/commit
net: export some generic xdp helpers
authorJason Wang <jasowang@redhat.com>
Fri, 11 Aug 2017 11:41:17 +0000 (19:41 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Aug 2017 02:56:07 +0000 (19:56 -0700)
commitb4ee818b786c8d43e195f6396ea13ac8024a3e51
tree3cef8e46105d414a0601ceb204a4fca0f66f3166
parent0156fb8195cb16b73a46a43290c4dbecde31a8b3
net: export some generic xdp helpers

This patch tries to export some generic xdp helpers to drivers. This
can let driver to do XDP for a specific skb. This is useful for the
case when the packet is hard to be processed at page level directly
(e.g jumbo/GSO frame).

With this patch, there's no need for driver to forbid the XDP set when
configuration is not suitable. Instead, it can defer the XDP for
packets that is hard to be processed directly after skb is created.

Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h
net/core/dev.c