Commit 52de4502 authored by Leonardo Lai's avatar Leonardo Lai

update DPDK to 20.05

parent 9fac978e
...@@ -38,7 +38,7 @@ The list of hardware officially supported by DPDK is available [here](https://co ...@@ -38,7 +38,7 @@ The list of hardware officially supported by DPDK is available [here](https://co
## Install Dependencies ## Install Dependencies
UDPDK requires: UDPDK requires:
- DPDK 19.11 - DPDK 20.05
- inih (any) - inih (any)
They are already included in this repository as submodules, so pull them: They are already included in this repository as submodules, so pull them:
...@@ -56,9 +56,9 @@ cd dpdk/usertools ...@@ -56,9 +56,9 @@ cd dpdk/usertools
``` ```
From the menu, do the following: From the menu, do the following:
1. Compile for your specific arch, usually `x86_64-native-linuxapp-gcc` 1. Compile for your specific arch, usually `x86_64-native-linuxapp-gcc`
2. Load the `igb` module 2. Load the `vfio` module
3. Configure hugepages (e.g. 1024M for each NUMA node) 3. Configure hugepages (e.g. 1024M for each NUMA node)
4. Bind the NIC to igb driver, specifying its PCI address 4. Bind the NIC to vfio driver, specifying its PCI address
### inih ### inih
......
...@@ -17,7 +17,7 @@ endif ...@@ -17,7 +17,7 @@ endif
SRCS= main.c SRCS= main.c
LIBS+= -L${UDPDK_PATH}/udpdk -Wl,--whole-archive,-ludpdk,--no-whole-archive LIBS+= -L${UDPDK_PATH}/udpdk -Wl,--whole-archive,-ludpdk,--no-whole-archive
LIBS+= -Wl,--whole-archive,-ldpdk,--no-whole-archive LIBS+= -L${RTE_SDK}/${RTE_TARGET}/lib -Wl,--whole-archive,-ldpdk,--no-whole-archive
LIBS+= -Wl,--no-whole-archive -lrt -lm -ldl -lcrypto -pthread -lnuma LIBS+= -Wl,--no-whole-archive -lrt -lm -ldl -lcrypto -pthread -lnuma
CFLAGS += $(WERROR_FLAGS) -O3 CFLAGS += $(WERROR_FLAGS) -O3
...@@ -28,4 +28,4 @@ all: ...@@ -28,4 +28,4 @@ all:
.PHONY: clean .PHONY: clean
clean: clean:
rm -f *.o ${TARGET} rm -f *.o ${TARGET}
\ No newline at end of file
...@@ -17,7 +17,7 @@ endif ...@@ -17,7 +17,7 @@ endif
SRCS= main.c SRCS= main.c
LIBS+= -L${UDPDK_PATH}/udpdk -Wl,--whole-archive,-ludpdk,--no-whole-archive LIBS+= -L${UDPDK_PATH}/udpdk -Wl,--whole-archive,-ludpdk,--no-whole-archive
LIBS+= -Wl,--whole-archive,-ldpdk,--no-whole-archive LIBS+= -L${RTE_SDK}/${RTE_TARGET}/lib -Wl,--whole-archive,-ldpdk,--no-whole-archive
LIBS+= -Wl,--no-whole-archive -lrt -lm -ldl -lcrypto -pthread -lnuma LIBS+= -Wl,--no-whole-archive -lrt -lm -ldl -lcrypto -pthread -lnuma
CFLAGS += $(WERROR_FLAGS) -O3 CFLAGS += $(WERROR_FLAGS) -O3
...@@ -28,4 +28,4 @@ all: ...@@ -28,4 +28,4 @@ all:
.PHONY: clean .PHONY: clean
clean: clean:
rm -f *.o ${TARGET} rm -f *.o ${TARGET}
\ No newline at end of file
Subproject commit 7001c8fdb27357c67147c0a13cb3826e48c0f2bf Subproject commit e2a234488854fdeee267a2aa582aa082fce01d6e
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment