[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210620233200.855534-1-memxor@gmail.com>
Date: Mon, 21 Jun 2021 05:01:56 +0530
From: Kumar Kartikeya Dwivedi <memxor@...il.com>
To: netdev@...r.kernel.org
Cc: Kumar Kartikeya Dwivedi <memxor@...il.com>,
Alexei Starovoitov <ast@...nel.org>,
Daniel Borkmann <daniel@...earbox.net>,
Andrii Nakryiko <andrii@...nel.org>,
Toke Høiland-Jørgensen <toke@...hat.com>,
Jesper Dangaard Brouer <brouer@...hat.com>,
"David S. Miller" <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>,
John Fastabend <john.fastabend@...il.com>,
Martin KaFai Lau <kafai@...com>, bpf@...r.kernel.org
Subject: [PATCH net-next 0/4] Generic XDP improvements
This small series makes some improvements to generic XDP mode and brings it
closer to native XDP. Patch 1 splits out generic XDP processing into reusable
parts, patch 2 implements generic cpumap support (details in commit) and patch 3
allows devmap bpf prog execution before generic_xdp_tx is called.
Patch 4 just updates a couple of selftests to adapt to changes in behavior (in
that specifying devmap/cpumap prog fd in generic mode is now allowed).
Kumar Kartikeya Dwivedi (4):
net: core: split out code to run generic XDP prog
net: implement generic cpumap
bpf: devmap: implement devmap prog execution for generic XDP
bpf: update XDP selftests to not fail with generic XDP
include/linux/bpf.h | 8 +
include/linux/netdevice.h | 2 +
include/linux/skbuff.h | 10 +-
kernel/bpf/cpumap.c | 151 ++++++++++++++++--
kernel/bpf/devmap.c | 42 ++++-
net/core/dev.c | 86 ++++++----
net/core/filter.c | 6 +-
.../bpf/prog_tests/xdp_cpumap_attach.c | 4 +-
.../bpf/prog_tests/xdp_devmap_attach.c | 4 +-
9 files changed, 255 insertions(+), 58 deletions(-)
--
2.31.1
Powered by blists - more mailing lists