netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: daniel@iogearbox.net
Cc: alexei.starovoitov@gmail.com, netdev@vger.kernel.org
Subject: Re: [PATCH net-next] bpf: add bpf_get_hash_recalc helper
Date: Mon, 04 Jul 2016 16:08:56 -0700 (PDT)	[thread overview]
Message-ID: <20160704.160856.1726060549877002377.davem@davemloft.net> (raw)
In-Reply-To: <6c3f3fd083314b49742d65c54e71e27804b26663.1467501451.git.daniel@iogearbox.net>

From: Daniel Borkmann <daniel@iogearbox.net>
Date: Sun,  3 Jul 2016 01:28:47 +0200

> If skb_clear_hash() was invoked due to mangling of relevant headers and
> BPF program needs skb->hash later on, we can add a helper to trigger hash
> recalculation via bpf_get_hash_recalc().
> 
> The helper will return the newly retrieved hash directly, but later access
> can also be done via skb context again through skb->hash directly (inline)
> without needing to call the helper once more.
> 
> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
> Acked-by: Alexei Starovoitov <ast@kernel.org>

Applied.

      reply	other threads:[~2016-07-04 23:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-02 23:28 [PATCH net-next] bpf: add bpf_get_hash_recalc helper Daniel Borkmann
2016-07-04 23:08 ` David Miller [this message]

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=20160704.160856.1726060549877002377.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=alexei.starovoitov@gmail.com \
    --cc=daniel@iogearbox.net \
    --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;
as well as URLs for NNTP newsgroup(s).