Skip to content

Enable DPDK core build with gcc 7

Bruce Richardson dpdk-dev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10mk: adjust gcc flags for new gcc 7 warningsmk/toolchain/gcc/rte.vars.mk+7 -05 replies
2/10drivers/net: disable new gcc 7 warnings for base codedrivers/net/e1000/Makefile drivers/net/fm10k/Makefile drivers/net/ixgbe/Makefile +1 more+12 -00 replies
3/10net/bnx2x: fix warnings about switch fall-throughdrivers/net/bnx2x/ecore_sp.c drivers/net/bnx2x/elink.c+4 -10 replies
4/10net/ixgbe: fix gcc 7 warning for switch fallthroughdrivers/net/ixgbe/ixgbe_fdir.c+2 -01 reply
5/10net/vmxnet3: fix compile error with gcc 7drivers/net/vmxnet3/vmxnet3_ethdev.c+1 -11 reply
6/10lib: fix gcc 7 warnings for switch fall-throughlib/librte_cmdline/cmdline_parse_num.c lib/librte_hash/rte_hash_crc.h lib/librte_mbuf/rte_mbuf.h+12 -20 replies
7/10net: fix missing break inside conditional compile blocklib/librte_net/rte_net_crc.c+1 -11 reply
8/10app/testpmd: document explicit switch fall-throughapp/test-pmd/cmdline.c+2 -00 replies
9/10test/test: fix missing break in switchtest/test/test_cmdline_num.c+1 -00 replies
10/10test/test: fix gcc 7 compiler errortest/test/test_eventdev_sw.c+1 -10 replies

Reviews trailers per patch

2 of 10 patches have a Reviewed-by or Acked-by.

PatchWenzhuo LuJasvinder Singh
1/10
2/10
3/10
4/10A-b
5/10
6/10
7/10A-b
8/10
9/10
10/10

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/10] Enable DPDK core build with gcc 7

Since GCC 7 is now yesterday's news :-), I figured we should try and make DPDK compile successfully with that new version. The main difficulties are because of new warnings being triggered.

* New warnings for fall-though in case statements
* New warnings for possible truncation using snprintf
* New warnings about uninitialized values.

This set of patches fixes or works around those new issues, fixing a couple of bugs in the process, so that DPDK can compile using gcc 7.

NOTE: this set only covers the basic DPDK libs, apps and tests. It does not cover the example apps, which still have issues.

Bruce Richardson (10):
mk: adjust gcc flags for new gcc 7 warnings drivers/net: disable new gcc 7 warnings for base code net/bnx2x: fix warnings about switch fall-through net/ixgbe: fix gcc 7 warning for switch fallthrough net/vmxnet3: fix compile error with gcc 7
lib: fix gcc 7 warnings for switch fall-through
net: fix missing break inside conditional compile block app/testpmd: document explicit switch fall-through test/test: fix missing break in switch test/test: fix gcc 7 compiler error

 app/test-pmd/cmdline.c                 | 2 ++
 drivers/net/bnx2x/ecore_sp.c           | 2 +-
 drivers/net/bnx2x/elink.c              | 3 +++
 drivers/net/e1000/Makefile             | 3 +++
 drivers/net/fm10k/Makefile             | 3 +++
 drivers/net/ixgbe/Makefile             | 3 +++
 drivers/net/ixgbe/ixgbe_fdir.c         | 2 ++
 drivers/net/qede/Makefile              | 3 +++
 drivers/net/vmxnet3/vmxnet3_ethdev.c   | 2 +-
 lib/librte_cmdline/cmdline_parse_num.c | 4 ++--
 lib/librte_hash/rte_hash_crc.h         | 6 ++++++
 lib/librte_mbuf/rte_mbuf.h             | 4 ++++
 lib/librte_net/rte_net_crc.c           | 2 +-
 mk/toolchain/gcc/rte.vars.mk           | 7 +++++++
 test/test/test_cmdline_num.c           | 1 +
 test/test/test_eventdev_sw.c           | 2 +-
 16 files changed, 43 insertions(+), 6 deletions(-)
Signature · 1 line
2.9.3