Go to file
Ferruh Yigit d90141961b net/thunderx: fix build with gcc optimization on
build error gcc version 6.3.1 20161221 (Red Hat 6.3.1-1),
with EXTRA_CFLAGS="-O3":

.../drivers/net/thunderx/nicvf_ethdev.c:907:9:
   error: ‘txq’ may be used uninitialized in this function
   [-Werror=maybe-uninitialized]
  if (txq->pool_free == nicvf_single_pool_free_xmited_buffers)
      ~~~^~~~~~~~~~~
.../drivers/net/thunderx/nicvf_ethdev.c:886:20:
   note: ‘txq’ was declared here
  struct nicvf_txq *txq;
                    ^~~

Same error on function 'nicvf_eth_dev_init' and 'nicvf_dev_start', it
seems 'nicvf_set_tx_function' inlined when optimization enabled.

Initialize the txq and add NULL check before using it to fix.

Fixes: 7413feee66 ("net/thunderx: add device start/stop and close")
Cc: stable@dpdk.org

Reported-by: Richard Walsh <richard.walsh@intel.com>
Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
Acked-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
2018-07-03 01:35:58 +02:00
app app/testpmd: fix VLAN TCI mask set error for FDIR 2018-07-03 01:35:58 +02:00
buildtools use SPDX tag for 6WIND copyrighted files 2018-05-25 10:47:06 +02:00
config crypto/qat: move to dynamic logging for data-path trace 2018-06-28 01:25:33 +02:00
devtools devtools: fix ARM builds test with meson 2018-06-14 17:46:02 +02:00
doc net/thunderx: add support for hardware first skip feature 2018-07-03 01:35:58 +02:00
drivers net/thunderx: fix build with gcc optimization on 2018-07-03 01:35:58 +02:00
examples examples/performance-thread: convert license to SPDX 2018-05-25 12:55:11 +02:00
kernel igb_uio: add write combining option 2018-06-30 00:12:58 +02:00
lib eal: do not enable static log macro for ethdev 2018-07-03 01:35:58 +02:00
license license: introduce SPDX identifiers 2018-01-04 22:41:38 +01:00
mk net/ifc: make driver name consistent 2018-06-14 19:27:50 +02:00
pkg version: 18.05.0 2018-05-30 22:55:57 +02:00
test test/eventdev: add multi-ports test 2018-06-19 00:06:34 +02:00
usertools usertools: add Cavium TIM as an event device 2018-04-16 11:11:06 +02:00
.gitattributes improve git diff 2016-11-13 15:25:12 +01:00
.gitignore doc: add compression driver and ISA-L PMD guides 2018-05-10 17:46:20 +01:00
GNUmakefile move kernel modules directories 2018-03-21 23:04:21 +01:00
MAINTAINERS maintainers: update for ethdev 2018-06-29 18:05:58 +02:00
Makefile license: use SPDX tag in root makefile 2018-01-04 22:41:38 +01:00
meson_options.txt net/mvpp2: add to meson build 2018-04-19 14:10:44 +02:00
meson.build version: 18.08-rc0 2018-06-01 12:58:36 +02:00
README license: introduce SPDX identifiers 2018-01-04 22:41:38 +01:00

DPDK is a set of libraries and drivers for fast packet processing.
It supports many processor architectures and both FreeBSD and Linux.

The DPDK uses the Open Source BSD-3-Clause license for the core libraries
and drivers. The kernel components are GPL-2.0 licensed.

Please check the doc directory for release notes,
API documentation, and sample application information.

For questions and usage discussions, subscribe to: users@dpdk.org
Report bugs and issues to the development mailing list: dev@dpdk.org