OSDN Git Service

net: sock: introduce SOCK_XDP
authorJason Wang <jasowang@redhat.com>
Wed, 12 Sep 2018 03:16:59 +0000 (11:16 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Sep 2018 16:25:40 +0000 (09:25 -0700)
commite4a2a3048ed93f0c354ad837f1d45fc8d389d538
treeca93825037b3a5cc93d3aa358aac755ff34f527f
parent9708d2b5b7c648e8e0a40d11e8cea12f6277f33c
net: sock: introduce SOCK_XDP

This patch introduces a new sock flag - SOCK_XDP. This will be used
for notifying the upper layer that XDP program is attached on the
lower socket, and requires for extra headroom.

TUN will be the first user.

Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tun.c
include/net/sock.h