From: "Iago López Galeiras" <iago@kinvolk.io>
To: john.fastabend@gmail.com, ast@kernel.org, daniel@iogearbox.net
Cc: alban@kinvolk.io, krzesimir@kinvolk.io, bpf@vger.kernel.org,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH bpf-next v5 2/4] bpf: sync bpf.h to tools/ for bpf_sock_ops->netns*
Date: Fri, 7 Jun 2019 16:11:04 +0200 [thread overview]
Message-ID: <20190607141106.32148-3-iago@kinvolk.io> (raw)
In-Reply-To: <20190607141106.32148-1-iago@kinvolk.io>
From: Alban Crequy <alban@kinvolk.io>
The change in struct bpf_sock_ops is synchronised
from: include/uapi/linux/bpf.h
to: tools/include/uapi/linux/bpf.h
Signed-off-by: Alban Crequy <alban@kinvolk.io>
---
Changes since v2:
- standalone patch for the sync (requested by Y Song)
Changes since v4:
- add netns_dev comment on uapi header (review from Y Song)
---
tools/include/uapi/linux/bpf.h | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/tools/include/uapi/linux/bpf.h b/tools/include/uapi/linux/bpf.h
index 63e0cf66f01a..41f54ac3db95 100644
--- a/tools/include/uapi/linux/bpf.h
+++ b/tools/include/uapi/linux/bpf.h
@@ -3261,6 +3261,12 @@ struct bpf_sock_ops {
__u32 sk_txhash;
__u64 bytes_received;
__u64 bytes_acked;
+ /*
+ * netns_dev might be zero if there's an error getting it
+ * when loading the BPF program. This is very unlikely.
+ */
+ __u64 netns_dev;
+ __u64 netns_ino;
};
/* Definitions for bpf_sock_ops_cb_flags */
--
2.21.0
next prev parent reply other threads:[~2019-06-07 14:11 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-07 14:11 [PATCH bpf-next v5 0/4] sock ops: add netns ino and dev in bpf context Iago López Galeiras
2019-06-07 14:11 ` [PATCH bpf-next v5 1/4] bpf: " Iago López Galeiras
2019-06-12 16:16 ` Daniel Borkmann
2019-06-07 14:11 ` Iago López Galeiras [this message]
2019-06-07 14:11 ` [PATCH bpf-next v5 3/4] selftests: bpf: read netns_ino from struct bpf_sock_ops Iago López Galeiras
2019-06-07 14:11 ` [PATCH bpf-next v5 4/4] selftests: bpf: verifier: read netns_dev and " Iago López Galeiras
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190607141106.32148-3-iago@kinvolk.io \
--to=iago@kinvolk.io \
--cc=alban@kinvolk.io \
--cc=ast@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=daniel@iogearbox.net \
--cc=john.fastabend@gmail.com \
--cc=krzesimir@kinvolk.io \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®