]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
nfp: move eBPF offload files to BPF app directory
authorJakub Kicinski <jakub.kicinski@netronome.com>
Wed, 31 May 2017 15:06:48 +0000 (08:06 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 31 May 2017 21:58:13 +0000 (17:58 -0400)
Pure move of eBPF offload files to BPF app directory,
only change the names and relative header location.
nfp_asm.h stays in the main dir and it doesn't really
have to include nfp_bpf.h.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/Makefile
drivers/net/ethernet/netronome/nfp/bpf/jit.c [moved from drivers/net/ethernet/netronome/nfp/nfp_bpf_jit.c with 99% similarity]
drivers/net/ethernet/netronome/nfp/bpf/main.h [moved from drivers/net/ethernet/netronome/nfp/nfp_bpf.h with 100% similarity]
drivers/net/ethernet/netronome/nfp/bpf/offload.c [moved from drivers/net/ethernet/netronome/nfp/nfp_net_offload.c with 99% similarity]
drivers/net/ethernet/netronome/nfp/bpf/verifier.c [moved from drivers/net/ethernet/netronome/nfp/nfp_bpf_verifier.c with 99% similarity]
drivers/net/ethernet/netronome/nfp/nfp_asm.h

index bbbfc19e58871329f64dea15e38ee2740b3971b3..5ad9a557f06a29aaf15f14db39b92927b4d9642a 100644 (file)
@@ -21,17 +21,17 @@ nfp-objs := \
            nfp_main.o \
            nfp_net_common.o \
            nfp_net_ethtool.o \
-           nfp_net_offload.o \
            nfp_net_main.o \
            nfp_netvf_main.o \
            nfp_port.o \
            bpf/main.o \
+           bpf/offload.o \
            nic/main.o
 
 ifeq ($(CONFIG_BPF_SYSCALL),y)
 nfp-objs += \
-           nfp_bpf_verifier.o \
-           nfp_bpf_jit.o
+           bpf/verifier.o \
+           bpf/jit.o
 endif
 
 nfp-$(CONFIG_NFP_DEBUG) += nfp_net_debugfs.o
similarity index 99%
rename from drivers/net/ethernet/netronome/nfp/nfp_bpf_jit.c
rename to drivers/net/ethernet/netronome/nfp/bpf/jit.c
index 97a8f00674d01c46901f8c8bdb7e59207dd39422..8e57fda6b8b54135729fc0a4a356a0411adfd304 100644 (file)
@@ -39,8 +39,8 @@
 #include <linux/pkt_cls.h>
 #include <linux/unistd.h>
 
-#include "nfp_asm.h"
-#include "nfp_bpf.h"
+#include "main.h"
+#include "../nfp_asm.h"
 
 /* --- NFP prog --- */
 /* Foreach "multiple" entries macros provide pos and next<n> pointers.
similarity index 99%
rename from drivers/net/ethernet/netronome/nfp/nfp_net_offload.c
rename to drivers/net/ethernet/netronome/nfp/bpf/offload.c
index 2fa7b67d0c6f3aa78569e47b82d6c453f31de2b3..30372dc995175afaa6da12291ba0a999c90fe570 100644 (file)
@@ -47,9 +47,9 @@
 #include <net/tc_act/tc_gact.h>
 #include <net/tc_act/tc_mirred.h>
 
-#include "nfp_bpf.h"
-#include "nfp_net_ctrl.h"
-#include "nfp_net.h"
+#include "main.h"
+#include "../nfp_net_ctrl.h"
+#include "../nfp_net.h"
 
 void nfp_net_filter_stats_timer(unsigned long data)
 {
similarity index 99%
rename from drivers/net/ethernet/netronome/nfp/nfp_bpf_verifier.c
rename to drivers/net/ethernet/netronome/nfp/bpf/verifier.c
index b3361f9b8e5c156c9ce58b156126993e5258fa68..d696ba46f70a6511bea71764cf1dd9578c287929 100644 (file)
@@ -38,7 +38,7 @@
 #include <linux/kernel.h>
 #include <linux/pkt_cls.h>
 
-#include "nfp_bpf.h"
+#include "main.h"
 
 /* Analyzer/verifier definitions */
 struct nfp_bpf_analyzer_priv {
index 22484b6fd3e8bb5dd6497defade140fcf9495faa..d2b535739d2b6f113b6e36b105921937596524ba 100644 (file)
@@ -34,7 +34,7 @@
 #ifndef __NFP_ASM_H__
 #define __NFP_ASM_H__ 1
 
-#include "nfp_bpf.h"
+#include <linux/types.h>
 
 #define REG_NONE       0