diff mbox series

[bpf-next,2/3] bpf: add tools lib/include support sk_msg_md size field

Message ID 1545004026-5127-3-git-send-email-john.fastabend@gmail.com
State Accepted, archived
Delegated to: BPF Maintainers
Headers show
Series add size field to sk_msg_md | expand

Commit Message

John Fastabend Dec. 16, 2018, 11:47 p.m. UTC
Add the size field to sk_msg_md for tools.

Signed-off-by: John Fastabend <john.fastabend@gmail.com>
---
 tools/include/uapi/linux/bpf.h | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/tools/include/uapi/linux/bpf.h b/tools/include/uapi/linux/bpf.h
index 597afdb..498badc 100644
--- a/tools/include/uapi/linux/bpf.h
+++ b/tools/include/uapi/linux/bpf.h
@@ -2608,6 +2608,7 @@  struct sk_msg_md {
 	__u32 local_ip6[4];	/* Stored in network byte order */
 	__u32 remote_port;	/* Stored in network byte order */
 	__u32 local_port;	/* stored in host byte order */
+	__u32 size;		/* Total size of sk_msg */
 };
 
 struct sk_reuseport_md {