forked from torvalds/linux
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net, xdp: decouple XDP code from the core networking code
Currently, there are a couple of rather big pieces of purely XDP code residing in `net/core/dev.c` and `net/core/filter.c`, and they won't get smaller any time soon. To make it more scalable, move them to the new separate files inside `net/bpf/`, which is almost empty now, along with `net/core/xdp.c`. This goes so well so that we only had to make 3 functions global which were static previously (+1 static key). The only mentions of XDP left in `filter.c` are helpers which share code with the skb variants and it would cost much more to make the shared code global instead. Signed-off-by: Alexander Lobakin <alexandr.lobakin@intel.com>
- Loading branch information
Showing
11 changed files
with
1,705 additions
and
1,660 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
# SPDX-License-Identifier: GPL-2.0-only | ||
obj-$(CONFIG_BPF_SYSCALL) := test_run.o | ||
|
||
obj-y := core.o dev.o prog_ops.o | ||
|
||
obj-$(CONFIG_BPF_SYSCALL) += test_run.o | ||
ifeq ($(CONFIG_BPF_JIT),y) | ||
obj-$(CONFIG_BPF_SYSCALL) += bpf_dummy_struct_ops.o | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.