numam-dpdk/lib
Thomas Monjalon 722de4c3e7 ethdev: fix build with gcc 5.4.0
Seen on Ubuntu 16.04 with GCC 5.4.0:

lib/librte_ether/rte_ethdev.c: In function 'get_mac_addr_index':
lib/librte_ether/rte_ethdev.c:2369:26: error:
'dev_info.max_mac_addrs' may be used uninitialized in this function

Indeed, rte_eth_dev_info_get() do not write into dev_info
if the port_id is not valid.
So we need to check the port_id and return in case of error.

This extra check should not be needed because the port_id is always
checked before calling get_mac_addr_index().
However it does not hurt.

Reported-by: Matan Azrad <matan@mellanox.com>
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Tested-by: Matan Azrad <matan@mellanox.com>
2017-07-13 11:36:57 +02:00
..
librte_acl update Cavium Inc copyright headers 2017-07-08 17:43:49 +02:00
librte_bitratestats fix typos using codespell utility 2017-06-14 23:54:13 +02:00
librte_cfgfile cfgfile: support empty value 2017-04-04 16:32:06 +02:00
librte_cmdline lib: add switch fall-through comments 2017-05-05 18:36:55 +02:00
librte_compat fix typos using codespell utility 2017-06-14 23:54:13 +02:00
librte_cryptodev cryptodev: fix build with icc 2017-07-12 14:40:40 +02:00
librte_distributor distributor: remove checks for SSE4 2017-07-04 14:35:41 +02:00
librte_eal bus/vdev: allocate empty arguments string 2017-07-12 14:16:51 +02:00
librte_efd update Cavium Inc copyright headers 2017-07-08 17:43:49 +02:00
librte_ether ethdev: fix build with gcc 5.4.0 2017-07-13 11:36:57 +02:00
librte_eventdev update Cavium Inc copyright headers 2017-07-08 17:43:49 +02:00
librte_gro lib/gro: support TCP/IPv4 2017-07-09 18:14:54 +02:00
librte_hash hash: fix lock release on add 2017-07-08 19:00:22 +02:00
librte_ip_frag ip_frag: check for x86 rather than SSE4 2017-07-04 14:35:41 +02:00
librte_jobstats mk: optimize directory dependencies 2017-03-27 23:28:43 +02:00
librte_kni kni: allocate no more mbuf than empty slots in queue 2017-07-01 12:54:51 +02:00
librte_kvargs mk: optimize directory dependencies 2017-03-27 23:28:43 +02:00
librte_latencystats latency: fix missing includes in exported header 2017-05-01 00:13:15 +02:00
librte_lpm update Cavium Inc copyright headers 2017-07-08 17:43:49 +02:00
librte_mbuf mbuf: introduce new Tx offload flag for MPLS-in-UDP 2017-07-06 15:00:57 +02:00
librte_mempool mem: do not advertise physical address when no hugepages 2017-07-04 17:51:22 +02:00
librte_meter mk: optimize directory dependencies 2017-03-27 23:28:43 +02:00
librte_metrics metrics: fix out of bound access 2017-06-05 15:30:27 +02:00
librte_net update Cavium Inc copyright headers 2017-07-08 17:43:49 +02:00
librte_pdump pdump: remove unnecessary header include 2017-06-14 23:45:51 +02:00
librte_pipeline mk: optimize directory dependencies 2017-03-27 23:28:43 +02:00
librte_port eal: introduce macro for always inline 2017-06-06 17:21:55 +02:00
librte_power mk: optimize directory dependencies 2017-03-27 23:28:43 +02:00
librte_reorder fix typos using codespell utility 2017-06-14 23:54:13 +02:00
librte_ring ring: allow non power-of-2 sizes 2017-07-07 09:29:17 +02:00
librte_sched sched: remove check for SSE4 2017-07-04 14:39:18 +02:00
librte_table update Cavium Inc copyright headers 2017-07-08 17:43:49 +02:00
librte_timer eal: switch to architecture specific pause function 2017-07-03 23:58:51 +02:00
librte_vhost vhost: print reason of NUMA node query failure 2017-07-07 02:17:56 +02:00
Makefile lib/gro: add Generic Receive Offload API framework 2017-07-09 18:14:46 +02:00