numam-dpdk/drivers/net/mlx5
Dekel Peled 8dd569abad net/mlx5: fix validation of Rx queue number
Function mlx5_ctrl_flow_vlan() is used to set the rss rule in
MLX5 PMD, using priv->reta_idx_n as number of Rx queues.
This number is passed to mlx5_flow_validate_action_rss(), which
attempts to access the Rx queues at priv->rxqs.
In case priv->rxqs_n is 0, priv->rxqs is empty, and
mlx5_flow_validate_action_rss() will crash with segmentation fault.

priv->reta_idx_n can never be 0, even if priv->rxqs_n is set to 0.
But when priv->rxqs_n is set to 0, setting the rss rule is invalid.

This patch updates mlx5_ctrl_flow_vlan(), if priv->rxqs_n is 0 the
function will fail with EINVAL errno.

Fixes: 8086cf08b2 ("net/mlx5: handle RSS hash configuration in RSS flow")
Cc: stable@dpdk.org

Signed-off-by: Dekel Peled <dekelp@mellanox.com>
Acked-by: Shahaf Shuler <shahafs@mellanox.com>
2018-12-13 17:44:52 +00:00
..
Makefile net/mlx5: fallback quietly if pkg-config is unavailable 2018-11-14 00:35:53 +01:00
meson.build net/mlx5: prepare meson build for adding E-Switch VXLAN 2018-11-05 15:01:25 +01:00
mlx5_defs.h net/mlx5: make vectorized Tx threshold configurable 2018-11-05 15:01:25 +01:00
mlx5_ethdev.c mk: build with _GNU_SOURCE defined by default 2018-10-22 11:28:27 +02:00
mlx5_flow_dv.c net/mlx5: fix MPLS item validation 2018-11-16 10:45:37 +01:00
mlx5_flow_tcf.c net/mlx5: fix TPID check for VLAN push action on E-Switch 2018-11-22 16:17:31 +01:00
mlx5_flow_verbs.c net/mlx5: fix MPLS item validation 2018-11-16 10:45:37 +01:00
mlx5_flow.c net/mlx5: fix validation of Rx queue number 2018-12-13 17:44:52 +00:00
mlx5_flow.h net/mlx5: fix MPLS item validation 2018-11-16 10:45:37 +01:00
mlx5_glue.c net/mlx5: add flow action functions to glue 2018-11-05 15:01:25 +01:00
mlx5_glue.h net/mlx5: add flow action functions to glue 2018-11-05 15:01:25 +01:00
mlx5_mac.c net/mlx5: always use representor ifindex for ioctl 2018-10-11 18:56:02 +02:00
mlx5_mr.c net/mlx5: optimize Tx external memory registration 2018-11-16 10:45:37 +01:00
mlx5_mr.h net/mlx5: clean-up developer logs 2018-07-03 01:35:57 +02:00
mlx5_nl.c net/mlx5: fix invalid network interface index 2018-07-26 14:05:52 +02:00
mlx5_prm.h net/mlx5: support metadata as flow rule criteria 2018-10-26 22:14:06 +02:00
mlx5_rss.c net/mlx5: use a macro for the RSS key size 2018-07-12 12:10:03 +02:00
mlx5_rxmode.c net/mlx5: preserve allmulticast flag for flow isolation mode 2018-08-05 08:47:41 +02:00
mlx5_rxq.c net/mlx5: optimize Rx buffer replenishment threshold 2018-11-16 10:45:37 +01:00
mlx5_rxtx_vec_neon.h net/mlx5: optimize Rx buffer replenishment threshold 2018-11-16 10:45:37 +01:00
mlx5_rxtx_vec_sse.h net/mlx5: optimize Rx buffer replenishment threshold 2018-11-16 10:45:37 +01:00
mlx5_rxtx_vec.c net/mlx5: make vectorized Tx threshold configurable 2018-11-05 15:01:25 +01:00
mlx5_rxtx_vec.h net/mlx5: support metadata as flow rule criteria 2018-10-26 22:14:06 +02:00
mlx5_rxtx.c net/mlx5: support Rx queue count API 2018-11-05 15:01:25 +01:00
mlx5_rxtx.h net/mlx5: fix function documentation 2018-12-13 16:32:10 +00:00
mlx5_socket.c mk: build with _GNU_SOURCE defined by default 2018-10-22 11:28:27 +02:00
mlx5_stats.c net/mlx5: report imissed statistics 2018-12-13 16:31:06 +00:00
mlx5_trigger.c net/mlx5: report imissed statistics 2018-12-13 16:31:06 +00:00
mlx5_txq.c net/mlx5: support metadata as flow rule criteria 2018-10-26 22:14:06 +02:00
mlx5_utils.h net/mlx5: fix build on PPC64 2018-11-14 00:35:53 +01:00
mlx5_vlan.c align SPDX Mellanox copyrights 2018-04-11 01:47:47 +02:00
mlx5.c drivers/net: set close behaviour flag at probing 2018-11-14 00:35:53 +01:00
mlx5.h net/mlx5: report imissed statistics 2018-12-13 16:31:06 +00:00
rte_pmd_mlx5_version.map mlx5: introduce new driver for Mellanox ConnectX-4 adapters 2015-10-30 22:03:42 +01:00