From: Daniel Borkmann <daniel@iogearbox.net>
To: stephen@networkplumber.org
Cc: netdev@vger.kernel.org, alexei.starovoitov@gmail.com,
Daniel Borkmann <daniel@iogearbox.net>
Subject: [PATCH iproute2 -master 1/3] tc, bpf: add new csum and tunnel signatures
Date: Sat, 9 Apr 2016 00:32:03 +0200 [thread overview]
Message-ID: <db0c345315f783fb7f289f37d392375bcf6f0b16.1460153854.git.daniel@iogearbox.net> (raw)
In-Reply-To: <cover.1460153854.git.daniel@iogearbox.net>
In-Reply-To: <cover.1460153854.git.daniel@iogearbox.net>
Add new signatures for BPF_FUNC_csum_diff, BPF_FUNC_skb_get_tunnel_opt
and BPF_FUNC_skb_set_tunnel_opt.
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
---
include/bpf_api.h | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/include/bpf_api.h b/include/bpf_api.h
index 4b16d25..0f278f0 100644
--- a/include/bpf_api.h
+++ b/include/bpf_api.h
@@ -212,6 +212,8 @@ static int BPF_FUNC(l3_csum_replace, struct __sk_buff *skb, uint32_t off,
uint32_t from, uint32_t to, uint32_t flags);
static int BPF_FUNC(l4_csum_replace, struct __sk_buff *skb, uint32_t off,
uint32_t from, uint32_t to, uint32_t flags);
+static int BPF_FUNC(csum_diff, const void *from, uint32_t from_size,
+ const void *to, uint32_t to_size, uint32_t seed);
/* Packet vlan encap/decap */
static int BPF_FUNC(skb_vlan_push, struct __sk_buff *skb, uint16_t proto,
@@ -225,6 +227,11 @@ static int BPF_FUNC(skb_set_tunnel_key, struct __sk_buff *skb,
const struct bpf_tunnel_key *from, uint32_t size,
uint32_t flags);
+static int BPF_FUNC(skb_get_tunnel_opt, struct __sk_buff *skb,
+ void *to, uint32_t size);
+static int BPF_FUNC(skb_set_tunnel_opt, struct __sk_buff *skb,
+ const void *from, uint32_t size);
+
/** LLVM built-ins, mem*() routines work for constant size */
#ifndef lock_xadd
--
1.9.3
next prev parent reply other threads:[~2016-04-08 22:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-08 22:32 [PATCH iproute2 -master 0/3] Minor tc/bpf updates Daniel Borkmann
2016-04-08 22:32 ` Daniel Borkmann [this message]
2016-04-08 22:32 ` [PATCH iproute2 -master 2/3] tc, bpf: further improve error reporting Daniel Borkmann
2016-04-08 22:32 ` [PATCH iproute2 -master 3/3] tc, bpf: add support for map pre/allocation Daniel Borkmann
2016-04-11 21:55 ` [PATCH iproute2 -master 0/3] Minor tc/bpf updates Stephen Hemminger
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=db0c345315f783fb7f289f37d392375bcf6f0b16.1460153854.git.daniel@iogearbox.net \
--to=daniel@iogearbox.net \
--cc=alexei.starovoitov@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=stephen@networkplumber.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).