net/mvpp2: fix build
PATCH 1/1 net/mvpp2: fix build
The iterator RTE_ETH_FOREACH_DEV (added in below commit) requires to enable experimental APIs.
Fixing also the config option rename in the build test.
Fixes 8728ccf37615 ("fix ethdev ports enumeration")
Fixes fe93968722af ("net/mrvl: rename PMD as mvpp2")
Reported-by Ferruh Yigit <[email protected]>
Signed-off-by Thomas Monjalon <[email protected]>
--- devtools/test-build.sh | 2 +- drivers/net/mvpp2/Makefile | 1 + 2 files changed, 2 insertions(+), 1 deletion(-)
devtools/test-build.sh +1 -1
@@ -202,7 +202,7 @@ config () # <directory> <target> <options> test -z "$LIBMUSDK_PATH" || \ sed -ri 's,(PMD_MRVL_CRYPTO=)n,\1y,' $1/.config test -z "$LIBMUSDK_PATH" || \ - sed -ri 's,(MRVL_PMD=)n,\1y,' $1/.config + sed -ri 's,(MVPP2_PMD=)n,\1y,' $1/.config build_config_hook $1 $2 $3 # Explicit enabler/disabler (uppercase)
drivers/net/mvpp2/Makefile +1 -0
@@ -27,6 +27,7 @@ CFLAGS += -I$(LIBMUSDK_PATH)/include CFLAGS += -DMVCONF_TYPES_PUBLIC CFLAGS += -DMVCONF_DMA_PHYS_ADDR_T_PUBLIC CFLAGS += $(WERROR_FLAGS) +CFLAGS += -DALLOW_EXPERIMENTAL_API CFLAGS += -O3 LDLIBS += -L$(LIBMUSDK_PATH)/lib LDLIBS += -lmusdk
Signature · 1 line
2.16.2
Quoted 10 lines · Thomas Monjalon
The iterator
RTE_ETH_FOREACH_DEV(added in below commit) requires to enable experimental APIs.Fixing also the config option rename in the build test.
Fixes 8728ccf37615 ("fix ethdev ports enumeration")Fixes fe93968722af ("net/mrvl: rename PMD as mvpp2")Reported-by Ferruh Yigit <[email protected]>Signed-off-by Thomas Monjalon <[email protected]>
Tested-by Ferruh Yigit <[email protected]>
Quoted 41 lines · Thomas Monjalon
The iterator
RTE_ETH_FOREACH_DEV(added in below commit) requires to enable experimental APIs.Fixing also the config option rename in the build test.
Fixes 8728ccf37615 ("fix ethdev ports enumeration")Fixes fe93968722af ("net/mrvl: rename PMD as mvpp2")Reported-by Ferruh Yigit <[email protected]>Signed-off-by Thomas Monjalon <[email protected]>--- devtools/test-build.sh | 2 +- drivers/net/mvpp2/Makefile | 1 + 2 files changed, 2 insertions(+), 1 deletion(-)devtools/test-build.sh +1
-1@@ -202,7 +202,7 @@ config () # <directory> <target> <options> test -z "$LIBMUSDK_PATH" || \ sed -ri 's,(PMD_MRVL_CRYPTO=)n,\1y,' $1/.config test -z "$LIBMUSDK_PATH" || \ - sed -ri 's,(MRVL_PMD=)n,\1y,' $1/.config + sed -ri 's,(MVPP2_PMD=)n,\1y,' $1/.config build_config_hook $1 $2 $3 # Explicit enabler/disabler (uppercase)drivers/net/mvpp2/Makefile +1
-1@@ -27,6 +27,7 @@ CFLAGS += -I$(LIBMUSDK_PATH)/include CFLAGS += -DMVCONF_TYPES_PUBLIC CFLAGS += -DMVCONF_DMA_PHYS_ADDR_T_PUBLIC CFLAGS += $(WERROR_FLAGS) +CFLAGS += -DALLOW_EXPERIMENTAL_API CFLAGS += -O3 LDLIBS += -L$(LIBMUSDK_PATH)/lib LDLIBS += -lmusdk --
Quoted 2 lines
2.16.2
Looks good:
Acked-by Tomasz Duszynski <[email protected]>
--
- Tomasz Duszyński
Thomas Monjalon
Applied19/04/2018 22:52, Ferruh Yigit:
Quoted 6 lines · Thomas Monjalon
Quoted 5 lines
The iterator
RTE_ETH_FOREACH_DEV(added in below commit) requires to enable experimental APIs.Fixing also the config option rename in the build test.
Quoted 7 lines
Quoted 5 lines
Fixes 8728ccf37615 ("fix ethdev ports enumeration")Fixes fe93968722af ("net/mrvl: rename PMD as mvpp2")Reported-by Ferruh Yigit <[email protected]>Signed-off-by Thomas Monjalon <[email protected]>Tested-by Ferruh Yigit <[email protected]>
Applied, thanks