public inbox for netdev@vger.kernel.org 
 help / color / mirror / Atom feed
From: Daniel Borkmann <daniel@iogearbox•net>
To: Chenbo Feng <chenbofeng.kernel@gmail•com>, netdev@vger•kernel.org
Cc: Lorenzo Colitti <lorenzo@google•com>,
	Willem de Bruijn <willemb@google•com>,
	Chenbo Feng <fengc@google•com>
Subject: Re: [PATCH net-next v2] Add uid and cookie bpf helper to cg_skb_func_proto
Date: Sat, 15 Apr 2017 13:30:11 +0200	[thread overview]
Message-ID: <58F20443.4040405@iogearbox.net> (raw)
In-Reply-To: <1492219526-2945-1-git-send-email-chenbofeng.kernel@gmail.com>

On 04/15/2017 03:25 AM, Chenbo Feng wrote:
> From: Chenbo Feng <fengc@google•com>
>
> BPF helper functions get_socket_cookie and get_socket_uid can be
> used for network traffic classifications, among others. Expose
> them also to programs of type BPF_PROG_TYPE_CGROUP_SKB. As of
> commit 8f917bba0042 ("bpf: pass sk to helper functions") the
> required skb->sk function is available at both cgroup bpf ingress
> and egress hooks. With these two new helper, cg_skb_func_proto is
> effectively the same as sk_filter_func_proto.
>
> Change since V1:
> Instead of add the helper to cg_skb_func_proto, redirect the
> cg_skb_func_proto to sk_filter_func_proto since all helper function
> in sk_filter_func_proto are applicable to cg_skb_func_proto now.
>
> Signed-off-by: Chenbo Feng <fengc@google•com>

Acked-by: Daniel Borkmann <daniel@iogearbox•net>

  parent reply	other threads:[~2017-04-15 11:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-15  1:25 [PATCH net-next v2] Add uid and cookie bpf helper to cg_skb_func_proto Chenbo Feng
2017-04-15  1:41 ` Alexei Starovoitov
2017-04-15 11:30 ` Daniel Borkmann [this message]
2017-04-17 19:22 ` David Miller

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=58F20443.4040405@iogearbox.net \
    --to=daniel@iogearbox$(echo .)net \
    --cc=chenbofeng.kernel@gmail$(echo .)com \
    --cc=fengc@google$(echo .)com \
    --cc=lorenzo@google$(echo .)com \
    --cc=netdev@vger$(echo .)kernel.org \
    --cc=willemb@google$(echo .)com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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