2015-07-16 09:25, Liang-Min Larry Wang: > The example includes an ethtool library and two applications: > one application is a non- DPDK process (nic-control) > and the other is a DPDK l2fwd applicaiton (l2fwd-app). > The nic-control process sends ethtool alike device management > requests to l2fwd-app through a named pipe IPC. This example > is designed to show how to build a ethtool shim library and > how to use ethtool apis to manage device parameters.
The makefiles need some clean-up and it does not build in shared lib mode. Beginning of a cleanup patch to merge with this one: --- a/examples/Makefile +++ b/examples/Makefile @@ -50,12 +50,10 @@ DIRS-y += ip_reassembly DIRS-$(CONFIG_RTE_IP_FRAG) += ip_fragmentation DIRS-y += ipv4_multicast DIRS-$(CONFIG_RTE_LIBRTE_KNI) += kni -DIRS-y += l2fwd-ethtool/lib -DIRS-y += l2fwd-ethtool/nic-control -DIRS-y += l2fwd-ethtool/l2fwd-app DIRS-y += l2fwd DIRS-$(CONFIG_RTE_LIBRTE_IVSHMEM) += l2fwd-ivshmem DIRS-$(CONFIG_RTE_LIBRTE_JOBSTATS) += l2fwd-jobstats +DIRS-$(CONFIG_RTE_EXEC_ENV_LINUXAPP) += l2fwd-ethtool DIRS-y += l3fwd DIRS-$(CONFIG_RTE_LIBRTE_ACL) += l3fwd-acl DIRS-$(CONFIG_RTE_LIBRTE_POWER) += l3fwd-power --- a/examples/l2fwd-ethtool/Makefile +++ b/examples/l2fwd-ethtool/Makefile @@ -37,7 +37,6 @@ endif RTE_TARGET ?= x86_64-native-linuxapp-gcc include $(RTE_SDK)/mk/rte.vars.mk -unexport RTE_SRCDIR RTE_OUTPUT RTE_EXTMK ifneq ($(CONFIG_RTE_EXEC_ENV),"linuxapp") $(error This application can only operate in a linuxapp environment, \ @@ -46,10 +45,4 @@ endif DIRS-y += lib nic-control l2fwd-app -.PHONY: all clean $(DIRS-y) - -all: $(DIRS-y) -clean: $(DIRS-y) - -$(DIRS-y): - $(MAKE) -C $@ $(MAKECMDGOALS) O=$(RTE_OUTPUT) +include $(RTE_SDK)/mk/rte.extsubdir.mk