numam-dpdk/config
Bruce Richardson 14b53e27b3 ethdev: fix crash with multiprocess
The data structure for the rx and tx callbacks is local to each process
since it contains function pointers and cannot be shared between
different unique binaries. However, because it is not in
rte_eth_dev_data structure, the array is not getting initialized for
secondary processes - neither is it getting appropriately resized if the
number of RX/TX queues changes. This causes crashes in secondary
processes as they dereference a null pointer in struct rte_eth_dev.

This patch fixes this by introducing an upper-bound on the number of
queues per port that can be configured, and then uses this to make the
array statically sized, thereby avoiding the crashes.

Fixes: 4dc294158c ("ethdev: support optional Rx and Tx callbacks")

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Tested-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
2015-03-26 22:27:51 +01:00
..
common_bsdapp ethdev: fix crash with multiprocess 2015-03-26 22:27:51 +01:00
common_linuxapp ethdev: fix crash with multiprocess 2015-03-26 22:27:51 +01:00
defconfig_i686-native-linuxapp-gcc config: cleanup duplicated comments 2014-07-19 01:54:35 +02:00
defconfig_i686-native-linuxapp-icc config: cleanup duplicated comments 2014-07-19 01:54:35 +02:00
defconfig_ppc_64-power8-linuxapp-gcc eal: detect endianness 2014-12-05 16:55:00 +01:00
defconfig_x86_64-ivshmem-linuxapp-gcc remove trailing whitespaces 2014-06-11 00:29:34 +02:00
defconfig_x86_64-ivshmem-linuxapp-icc remove trailing whitespaces 2014-06-11 00:29:34 +02:00
defconfig_x86_64-native-bsdapp-clang config: add clang 2014-07-19 01:54:35 +02:00
defconfig_x86_64-native-bsdapp-gcc config: cleanup duplicated comments 2014-07-19 01:54:35 +02:00
defconfig_x86_64-native-linuxapp-clang mem: support layout of IBM Power 2014-11-26 21:50:10 +01:00
defconfig_x86_64-native-linuxapp-gcc mem: support layout of IBM Power 2014-11-26 21:50:10 +01:00
defconfig_x86_64-native-linuxapp-icc mem: support layout of IBM Power 2014-11-26 21:50:10 +01:00
defconfig_x86_x32-native-linuxapp-gcc mk: support x32 ABI 2015-02-18 20:26:33 +01:00