All of lore.kernel.org
 help / color / mirror / Atom feed
From: Martin KaFai Lau <kafai@fb.com>
To: Quentin Monnet <quentin.monnet@netronome.com>
Cc: <daniel@iogearbox.net>, <ast@kernel.org>,
	<netdev@vger.kernel.org>, <oss-drivers@netronome.com>,
	<linux-doc@vger.kernel.org>, <linux-man@vger.kernel.org>,
	Kaixu Xia <xiakaixu@huawei.com>,
	Sargun Dhillon <sargun@sargun.me>, Thomas Graf <tgraf@suug.ch>,
	Gianluca Borello <g.borello@gmail.com>,
	Chenbo Feng <fengc@google.com>
Subject: Re: [PATCH bpf-next v3 6/8] bpf: add documentation for eBPF helpers (42-50)
Date: Wed, 18 Apr 2018 16:42:04 -0700	[thread overview]
Message-ID: <20180418234202.abrxhspxegdkhunv@kafai-mbp> (raw)
In-Reply-To: <20180417143438.7018-7-quentin.monnet@netronome.com>

On Tue, Apr 17, 2018 at 03:34:36PM +0100, Quentin Monnet wrote:
[...]
> @@ -965,6 +984,17 @@ union bpf_attr {
>   * 	Return
>   * 		0 on success, or a negative error in case of failure.
>   *
> + * int bpf_skb_under_cgroup(struct sk_buff *skb, struct bpf_map *map, u32 index)
> + * 	Description
> + * 		Check whether *skb* is a descendant of the cgroup2 held by
> + * 		*map* of type **BPF_MAP_TYPE_CGROUP_ARRAY**, at *index*.
> + * 	Return
> + * 		The return value depends on the result of the test, and can be:
> + *
> + * 		* 0, if the *skb* failed the cgroup2 descendant test.
> + * 		* 1, if the *skb* succeeded the cgroup2 descendant test.
> + * 		* A negative error code, if an error occurred.
> + *
[...]
> + * int bpf_xdp_adjust_head(struct xdp_buff *xdp_md, int delta)
> + * 	Description
> + * 		Adjust (move) *xdp_md*\ **->data** by *delta* bytes. Note that
> + * 		it is possible to use a negative value for *delta*. This helper
> + * 		can be used to prepare the packet for pushing or popping
> + * 		headers.
> + *
> + * 		A call to this helper is susceptible to change data from the
> + * 		packet. Therefore, at load time, all checks on pointers
> + * 		previously done by the verifier are invalidated and must be
> + * 		performed again.
> + * 	Return
> + * 		0 on success, or a negative error in case of failure.
> + *
LGTM. Thanks!

Acked-by: Martin KaFai Lau <kafai@fb.com>

WARNING: multiple messages have this Message-ID (diff)
From: Martin KaFai Lau <kafai@fb.com>
To: Quentin Monnet <quentin.monnet@netronome.com>
Cc: <daniel@iogearbox.net>, <ast@kernel.org>,
	<netdev@vger.kernel.org>, <oss-drivers@netronome.com>,
	<linux-doc@vger.kernel.org>, <linux-man@vger.kernel.org>,
	Kaixu Xia <xiakaixu@huawei.com>,
	Sargun Dhillon <sargun@sargun.me>, Thomas Graf <tgraf@suug.ch>,
	Gianluca Borello <g.borello@gmail.com>,
	Chenbo Feng <fengc@google.com>
Subject: Re: [PATCH bpf-next v3 6/8] bpf: add documentation for eBPF helpers (42-50)
Date: Wed, 18 Apr 2018 16:42:04 -0700	[thread overview]
Message-ID: <20180418234202.abrxhspxegdkhunv@kafai-mbp> (raw)
In-Reply-To: <20180417143438.7018-7-quentin.monnet@netronome.com>

On Tue, Apr 17, 2018 at 03:34:36PM +0100, Quentin Monnet wrote:
[...]
> @@ -965,6 +984,17 @@ union bpf_attr {
>   * 	Return
>   * 		0 on success, or a negative error in case of failure.
>   *
> + * int bpf_skb_under_cgroup(struct sk_buff *skb, struct bpf_map *map, u32 index)
> + * 	Description
> + * 		Check whether *skb* is a descendant of the cgroup2 held by
> + * 		*map* of type **BPF_MAP_TYPE_CGROUP_ARRAY**, at *index*.
> + * 	Return
> + * 		The return value depends on the result of the test, and can be:
> + *
> + * 		* 0, if the *skb* failed the cgroup2 descendant test.
> + * 		* 1, if the *skb* succeeded the cgroup2 descendant test.
> + * 		* A negative error code, if an error occurred.
> + *
[...]
> + * int bpf_xdp_adjust_head(struct xdp_buff *xdp_md, int delta)
> + * 	Description
> + * 		Adjust (move) *xdp_md*\ **->data** by *delta* bytes. Note that
> + * 		it is possible to use a negative value for *delta*. This helper
> + * 		can be used to prepare the packet for pushing or popping
> + * 		headers.
> + *
> + * 		A call to this helper is susceptible to change data from the
> + * 		packet. Therefore, at load time, all checks on pointers
> + * 		previously done by the verifier are invalidated and must be
> + * 		performed again.
> + * 	Return
> + * 		0 on success, or a negative error in case of failure.
> + *
LGTM. Thanks!

Acked-by: Martin KaFai Lau <kafai@fb.com>
--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

WARNING: multiple messages have this Message-ID (diff)
From: Martin KaFai Lau <kafai@fb.com>
To: Quentin Monnet <quentin.monnet@netronome.com>
Cc: daniel@iogearbox.net, ast@kernel.org, netdev@vger.kernel.org,
	oss-drivers@netronome.com, linux-doc@vger.kernel.org,
	linux-man@vger.kernel.org, Kaixu Xia <xiakaixu@huawei.com>,
	Sargun Dhillon <sargun@sargun.me>, Thomas Graf <tgraf@suug.ch>,
	Gianluca Borello <g.borello@gmail.com>,
	Chenbo Feng <fengc@google.com>
Subject: Re: [PATCH bpf-next v3 6/8] bpf: add documentation for eBPF helpers (42-50)
Date: Wed, 18 Apr 2018 16:42:04 -0700	[thread overview]
Message-ID: <20180418234202.abrxhspxegdkhunv@kafai-mbp> (raw)
In-Reply-To: <20180417143438.7018-7-quentin.monnet@netronome.com>

On Tue, Apr 17, 2018 at 03:34:36PM +0100, Quentin Monnet wrote:
[...]
> @@ -965,6 +984,17 @@ union bpf_attr {
>   * 	Return
>   * 		0 on success, or a negative error in case of failure.
>   *
> + * int bpf_skb_under_cgroup(struct sk_buff *skb, struct bpf_map *map, u32 index)
> + * 	Description
> + * 		Check whether *skb* is a descendant of the cgroup2 held by
> + * 		*map* of type **BPF_MAP_TYPE_CGROUP_ARRAY**, at *index*.
> + * 	Return
> + * 		The return value depends on the result of the test, and can be:
> + *
> + * 		* 0, if the *skb* failed the cgroup2 descendant test.
> + * 		* 1, if the *skb* succeeded the cgroup2 descendant test.
> + * 		* A negative error code, if an error occurred.
> + *
[...]
> + * int bpf_xdp_adjust_head(struct xdp_buff *xdp_md, int delta)
> + * 	Description
> + * 		Adjust (move) *xdp_md*\ **->data** by *delta* bytes. Note that
> + * 		it is possible to use a negative value for *delta*. This helper
> + * 		can be used to prepare the packet for pushing or popping
> + * 		headers.
> + *
> + * 		A call to this helper is susceptible to change data from the
> + * 		packet. Therefore, at load time, all checks on pointers
> + * 		previously done by the verifier are invalidated and must be
> + * 		performed again.
> + * 	Return
> + * 		0 on success, or a negative error in case of failure.
> + *
LGTM. Thanks!

Acked-by: Martin KaFai Lau <kafai@fb.com>

  parent reply	other threads:[~2018-04-18 23:42 UTC|newest]

Thread overview: 63+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-17 14:34 [PATCH bpf-next v3 0/8] bpf: document eBPF helpers and add a script to generate man page Quentin Monnet
2018-04-17 14:34 ` Quentin Monnet
2018-04-17 14:34 ` [PATCH bpf-next v3 1/8] bpf: add script and prepare bpf.h for new helpers documentation Quentin Monnet
2018-04-17 14:34   ` Quentin Monnet
2018-04-17 14:34 ` [PATCH bpf-next v3 2/8] bpf: add documentation for eBPF helpers (01-11) Quentin Monnet
2018-04-17 14:34   ` Quentin Monnet
2018-04-18  1:04   ` Alexei Starovoitov
2018-04-18  1:04     ` Alexei Starovoitov
2018-04-19 10:02   ` Daniel Borkmann
2018-04-19 10:02     ` Daniel Borkmann
2018-04-17 14:34 ` [PATCH bpf-next v3 3/8] bpf: add documentation for eBPF helpers (12-22) Quentin Monnet
2018-04-17 14:34   ` Quentin Monnet
2018-04-18 22:10   ` Alexei Starovoitov
2018-04-18 22:10     ` Alexei Starovoitov
2018-04-19 10:29   ` Daniel Borkmann
2018-04-19 10:29     ` Daniel Borkmann
2018-04-17 14:34 ` [PATCH bpf-next v3 4/8] bpf: add documentation for eBPF helpers (23-32) Quentin Monnet
2018-04-17 14:34   ` Quentin Monnet
2018-04-18 22:11   ` Alexei Starovoitov
2018-04-18 22:11     ` Alexei Starovoitov
2018-04-19 11:16   ` Daniel Borkmann
2018-04-19 11:16     ` Daniel Borkmann
2018-04-20 18:54     ` Quentin Monnet
2018-04-20 18:54       ` Quentin Monnet
2018-04-23  9:11       ` Daniel Borkmann
2018-04-23  9:11         ` Daniel Borkmann
2018-04-17 14:34 ` [PATCH bpf-next v3 5/8] bpf: add documentation for eBPF helpers (33-41) Quentin Monnet
2018-04-17 14:34   ` Quentin Monnet
2018-04-18 22:23   ` Alexei Starovoitov
2018-04-18 22:23     ` Alexei Starovoitov
2018-04-19 12:27   ` Daniel Borkmann
2018-04-19 12:27     ` Daniel Borkmann
2018-04-17 14:34 ` [PATCH bpf-next v3 6/8] bpf: add documentation for eBPF helpers (42-50) Quentin Monnet
2018-04-17 14:34   ` Quentin Monnet
2018-04-18 23:29   ` Alexei Starovoitov
2018-04-18 23:29     ` Alexei Starovoitov
2018-04-18 23:42   ` Martin KaFai Lau [this message]
2018-04-18 23:42     ` Martin KaFai Lau
2018-04-18 23:42     ` Martin KaFai Lau
2018-04-19 12:40   ` Daniel Borkmann
2018-04-19 12:40     ` Daniel Borkmann
2018-04-17 14:34 ` [PATCH bpf-next v3 7/8] bpf: add documentation for eBPF helpers (51-57) Quentin Monnet
2018-04-17 14:34   ` Quentin Monnet
2018-04-17 17:51   ` Yonghong Song
2018-04-17 17:51     ` Yonghong Song
2018-04-17 17:51     ` Yonghong Song
2018-04-17 17:55   ` Andrey Ignatov
2018-04-17 17:55     ` Andrey Ignatov
2018-04-17 17:55     ` Andrey Ignatov
2018-04-19 12:47   ` Daniel Borkmann
2018-04-19 12:47     ` Daniel Borkmann
2018-04-17 14:34 ` [PATCH bpf-next v3 8/8] bpf: add documentation for eBPF helpers (58-64) Quentin Monnet
2018-04-17 14:34   ` Quentin Monnet
2018-04-18 13:34   ` Jesper Dangaard Brouer
2018-04-18 13:34     ` Jesper Dangaard Brouer
2018-04-18 14:09     ` Quentin Monnet
2018-04-18 14:09       ` Quentin Monnet
2018-04-18 15:43       ` Jesper Dangaard Brouer
2018-04-18 15:43         ` Jesper Dangaard Brouer
2018-04-19 12:44         ` Quentin Monnet
2018-04-19 12:44           ` Quentin Monnet
2018-04-19 12:58           ` Jesper Dangaard Brouer
2018-04-19 12:58             ` Jesper Dangaard Brouer

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=20180418234202.abrxhspxegdkhunv@kafai-mbp \
    --to=kafai@fb.com \
    --cc=ast@kernel.org \
    --cc=daniel@iogearbox.net \
    --cc=fengc@google.com \
    --cc=g.borello@gmail.com \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-man@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=oss-drivers@netronome.com \
    --cc=quentin.monnet@netronome.com \
    --cc=sargun@sargun.me \
    --cc=tgraf@suug.ch \
    --cc=xiakaixu@huawei.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.