aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/sock.h
diff options
context:
space:
mode:
authorJason Wang <jasowang@redhat.com>2018-09-12 11:16:59 +0800
committerDavid S. Miller <davem@davemloft.net>2018-09-13 09:25:40 -0700
commite4a2a3048ed93f0c354ad837f1d45fc8d389d538 (patch)
treeca93825037b3a5cc93d3aa358aac755ff34f527f /include/net/sock.h
parentllc: avoid blocking in llc_sap_close() (diff)
downloadlinux-dev-e4a2a3048ed93f0c354ad837f1d45fc8d389d538.tar.xz
linux-dev-e4a2a3048ed93f0c354ad837f1d45fc8d389d538.zip
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>
Diffstat (limited to 'include/net/sock.h')
-rw-r--r--include/net/sock.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/sock.h b/include/net/sock.h
index 433f45fc2d68..38cae35f6e16 100644
--- a/include/net/sock.h
+++ b/include/net/sock.h
@@ -800,6 +800,7 @@ enum sock_flags {
SOCK_SELECT_ERR_QUEUE, /* Wake select on error queue */
SOCK_RCU_FREE, /* wait rcu grace period in sk_destruct() */
SOCK_TXTIME,
+ SOCK_XDP, /* XDP is attached */
};
#define SK_FLAGS_TIMESTAMP ((1UL << SOCK_TIMESTAMP) | (1UL << SOCK_TIMESTAMPING_RX_SOFTWARE))