Skip to content

Commit

Permalink
fix the assignment style
Browse files Browse the repository at this point in the history
Signed-off-by: subaoon <subaru.fukuda@gmail.com>
  • Loading branch information
subaroon authored and tohojo committed May 16, 2024
1 parent 1acae59 commit b764c44
Show file tree
Hide file tree
Showing 14 changed files with 23 additions and 28 deletions.
4 changes: 2 additions & 2 deletions advanced03-AF_XDP/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

XDP_TARGETS := af_xdp_kern
USER_TARGETS := af_xdp_user
LDLIBS+= -lpthread
LDLIBS += -lpthread

COMMON_DIR = ../common
COMMON_DIR := ../common

include $(COMMON_DIR)/common.mk
COMMON_OBJS := $(COMMON_DIR)/common_params.o
Expand Down
5 changes: 2 additions & 3 deletions basic-solutions/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@

USER_TARGETS := xdp_stats xdp_loader

COMMON_DIR = ../common
COMMON_DIR := ../common

# Extend with another COMMON_OBJS
COMMON_OBJS += $(COMMON_DIR)/common_user_bpf_xdp.o
COMMON_OBJS := $(COMMON_DIR)/common_user_bpf_xdp.o

include $(COMMON_DIR)/common.mk
4 changes: 2 additions & 2 deletions basic01-xdp-pass/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ LLC ?= llc
CLANG ?= clang
CC := gcc

COMMON_DIR = ../common
COMMON_OBJS += $(COMMON_DIR)/common_user_bpf_xdp.o
COMMON_DIR := ../common
COMMON_OBJS := $(COMMON_DIR)/common_user_bpf_xdp.o

include $(COMMON_DIR)/common.mk
4 changes: 2 additions & 2 deletions basic02-prog-by-name/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
XDP_TARGETS := xdp_prog_kern
USER_TARGETS := xdp_loader

COMMON_DIR = ../common
COMMON_OBJS += $(COMMON_DIR)/common_user_bpf_xdp.o
COMMON_DIR := ../common
COMMON_OBJS := $(COMMON_DIR)/common_user_bpf_xdp.o

include $(COMMON_DIR)/common.mk

4 changes: 2 additions & 2 deletions basic03-map-counter/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
XDP_TARGETS := xdp_prog_kern
USER_TARGETS := xdp_load_and_stats

COMMON_DIR = ../common
COMMON_DIR := ../common

COMMON_OBJS += $(COMMON_DIR)/common_user_bpf_xdp.o
COMMON_OBJS := $(COMMON_DIR)/common_user_bpf_xdp.o
include $(COMMON_DIR)/common.mk
5 changes: 2 additions & 3 deletions basic04-pinning-maps/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ XDP_TARGETS := xdp_prog_kern
USER_TARGETS := xdp_loader
USER_TARGETS += xdp_stats

COMMON_DIR = ../common
COMMON_DIR := ../common

# Extend with another COMMON_OBJS
COMMON_OBJS += $(COMMON_DIR)/common_user_bpf_xdp.o
COMMON_OBJS := $(COMMON_DIR)/common_user_bpf_xdp.o

include $(COMMON_DIR)/common.mk
6 changes: 3 additions & 3 deletions packet-solutions/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ XDP_TARGETS += xdp_vlan01_kern
XDP_TARGETS += xdp_vlan02_kern
USER_TARGETS := xdp_prog_user

COMMON_DIR = ../common
COMMON_DIR := ../common

COPY_LOADER := xdp-loader
COPY_STATS := xdp_stats
EXTRA_DEPS += $(COMMON_DIR)/parsing_helpers.h
EXTRA_DEPS := $(COMMON_DIR)/parsing_helpers.h

COMMON_OBJS += $(COMMON_DIR)/common_user_bpf_xdp.o
COMMON_OBJS := $(COMMON_DIR)/common_user_bpf_xdp.o
include $(COMMON_DIR)/common.mk
2 changes: 1 addition & 1 deletion packet01-parsing/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
XDP_TARGETS := xdp_prog_kern
USER_TARGETS :=

COMMON_DIR = ../common
COMMON_DIR := ../common

COPY_LOADER := xdp-loader
COPY_STATS := xdp_stats
Expand Down
2 changes: 1 addition & 1 deletion packet02-rewriting/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
XDP_TARGETS := xdp_prog_kern
USER_TARGETS :=

COMMON_DIR = ../common
COMMON_DIR := ../common

COPY_LOADER := xdp-loader
COPY_STATS := xdp_stats
Expand Down
2 changes: 1 addition & 1 deletion packet03-redirecting/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
XDP_TARGETS := xdp_prog_kern
USER_TARGETS := xdp_prog_user

COMMON_DIR = ../common
COMMON_DIR := ../common

COPY_LOADER := xdp-loader
COPY_STATS := xdp_stats
Expand Down
2 changes: 1 addition & 1 deletion tracing01-xdp-simple/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
XDP_TARGETS := trace_prog_kern xdp_prog_kern
USER_TARGETS := trace_load_and_stats

COMMON_DIR = ../common
COMMON_DIR := ../common

include $(COMMON_DIR)/common.mk

5 changes: 2 additions & 3 deletions tracing02-xdp-monitor/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@
XDP_TARGETS := trace_prog_kern
USER_TARGETS := trace_load_and_stats

COMMON_DIR = ../common
COMMON_DIR := ../common

# Extend with another COMMON_OBJS
COMMON_OBJS += $(COMMON_DIR)/common_user_bpf_xdp.o
COMMON_OBJS := $(COMMON_DIR)/common_user_bpf_xdp.o

include $(COMMON_DIR)/common.mk

5 changes: 2 additions & 3 deletions tracing03-xdp-debug-print/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@
XDP_TARGETS := xdp_prog_kern
USER_TARGETS := trace_read

COPY_LOADER = xdp-loader
COPY_LOADER := xdp-loader

LLC ?= llc
CLANG ?= clang
CC := gcc

COMMON_DIR = ../common
COMMON_DIR := ../common

include $(COMMON_DIR)/common.mk
COMMON_OBJS := $(COMMON_DIR)/common_params.o
1 change: 0 additions & 1 deletion tracing04-xdp-tcpdump/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,3 @@ LDLIBS+=-lpcap
COMMON_DIR = ../common

include $(COMMON_DIR)/common.mk
COMMON_OBJS := $(COMMON_DIR)/common_params.o

0 comments on commit b764c44

Please sign in to comment.