• Jason Wang's avatar
    net: export some generic xdp helpers · 7c497478
    Jason Wang authored
    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: default avatarJason Wang <jasowang@redhat.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    7c497478
dev.c 217 KB