X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=examples%2Fl2fwd%2FMakefile;fp=examples%2Fl2fwd%2FMakefile;h=9c506844ea3d0fcc8fc91f8c4acaf25c9888870d;hb=264a1598c543f52d63489ee663d91d161d44a7d3;hp=59b2b4ab4ac2c19920157614bd36970d2324f4e2;hpb=bf472259dde6d9c4dd3ebad2c2b477a168c6e021;p=dpdk.git diff --git a/examples/l2fwd/Makefile b/examples/l2fwd/Makefile index 59b2b4ab4a..9c506844ea 100644 --- a/examples/l2fwd/Makefile +++ b/examples/l2fwd/Makefile @@ -21,6 +21,8 @@ PKGCONF=pkg-config --define-prefix PC_FILE := $(shell $(PKGCONF) --path libdpdk) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) +# Add flag to allow experimental API as l2fwd uses rte_ethdev_set_ptype API +CFLAGS += -DALLOW_EXPERIMENTAL_API LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk) LDFLAGS_STATIC = -Wl,-Bstatic $(shell $(PKGCONF) --static --libs libdpdk)