numam-dpdk/drivers/net/mlx5
Michael Baum 01de93f245 net/mlx5: fix unreachable MPLS error path
The mlx5_flow_validate_item_mpls function checks MPLS item validation.
It first checks if the device supports MPLS, it is done using the ifdef
condition that if it fails to skip to endif and return the appropriate
error.

When MPLS is supported, the preprocessor will copy the body of the
function ending with return 0 followed by the lines that report MPLS
support.
In fact, these lines are unreachable because before them the function
returns 0 and in any case they are unnecessary.

Replace the endif by else and move endif to the end of the
function.

Fixes: 23c1d42c71 ("net/mlx5: split flow validation to dedicated function")
Cc: stable@dpdk.org

Signed-off-by: Michael Baum <michaelba@mellanox.com>
Acked-by: Matan Azrad <matan@mellanox.com>
2020-06-02 16:06:24 +02:00
..
Makefile build: disable experimental API check internally 2020-04-14 16:22:34 +02:00
meson.build build: disable experimental API check internally 2020-04-14 16:22:34 +02:00
mlx5_defs.h net/mlx5: add device parameter for MPRQ stride size 2020-04-21 13:57:08 +02:00
mlx5_ethdev.c net/mlx5: support 200G link speed 2020-05-11 22:27:39 +02:00
mlx5_flow_dv.c net/mlx5: fix port action resource initialization 2020-05-18 20:35:57 +02:00
mlx5_flow_meter.c net/mlx5: optimize memory for flow meter 2020-04-21 16:18:13 +02:00
mlx5_flow_verbs.c net/mlx5: fix Verbs counter pool allocation 2020-05-18 20:35:57 +02:00
mlx5_flow.c net/mlx5: fix unreachable MPLS error path 2020-06-02 16:06:24 +02:00
mlx5_flow.h net/mlx5: fix flow counter container resize 2020-05-18 20:35:57 +02:00
mlx5_mac.c common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5_mp.c common/mlx5: refactor memory management 2020-04-21 13:57:08 +02:00
mlx5_mr.c common/mlx5: refactor memory management 2020-04-21 13:57:08 +02:00
mlx5_mr.h common/mlx5: refactor memory management 2020-04-21 13:57:08 +02:00
mlx5_rss.c common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5_rxmode.c net/mlx5: reduce Netlink commands dependencies 2020-02-05 09:51:20 +01:00
mlx5_rxq.c net/mlx5: fix hairpin Rx queue creation error path 2020-06-02 16:06:23 +02:00
mlx5_rxtx_vec_altivec.h net/mlx5: fix assert in dynamic metadata handling 2020-05-05 15:54:26 +02:00
mlx5_rxtx_vec_neon.h net/mlx5: fix assert in dynamic metadata handling 2020-05-05 15:54:26 +02:00
mlx5_rxtx_vec_sse.h net/mlx5: fix assert in dynamic metadata handling 2020-05-05 15:54:26 +02:00
mlx5_rxtx_vec.c replace cold attributes 2020-04-16 18:30:58 +02:00
mlx5_rxtx_vec.h common/mlx5: refactor memory management 2020-04-21 13:57:08 +02:00
mlx5_rxtx.c net/mlx5: fix packet length assert in MPRQ 2020-05-05 15:54:26 +02:00
mlx5_rxtx.h net/mlx5: set dynamic flow metadata in Rx queues 2020-04-21 22:28:06 +02:00
mlx5_socket.c net/mlx5: fix socket close 2020-06-02 16:06:23 +02:00
mlx5_stats.c net/mlx5: use open/read/close for ib stats query 2020-04-21 13:57:07 +02:00
mlx5_trigger.c net/mlx5: revert DevX preference for Rx objects 2020-05-21 17:59:29 +02:00
mlx5_txq.c net/mlx5: remove needless Tx queue initialization check 2020-06-02 16:06:24 +02:00
mlx5_utils.c net/mlx5: fix indexed pool bitmap initialization 2020-05-05 15:54:26 +02:00
mlx5_utils.h net/mlx5: fix indexed pool bitmap initialization 2020-05-05 15:54:26 +02:00
mlx5_vlan.c common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5.c fix same typo in multiple places 2020-05-19 15:55:57 +02:00
mlx5.h net/mlx5: fix flow counter container resize 2020-05-18 20:35:57 +02:00
rte_pmd_mlx5_version.map net/mlx5: support fine grain dynamic flag 2020-02-05 09:51:20 +01:00
rte_pmd_mlx5.h net/mlx5: support fine grain dynamic flag 2020-02-05 09:51:20 +01:00