linux_dsm_epyc7002/drivers/infiniband/hw/mlx5
Ariel Levkovich 0f750966dc IB/mlx5: Add inner spec and IPv6 validation in user's flow attribute list
This change fixes an incomplete validation of the user's
flow attributes list.

Previous implementation validated only matching of IPv4 Ethertype
to IPv4 spec of outer headers (in case both Ethernet with specified
Ethertype and IP specs were present) and lacked the validation of:
1. Matching of IPv6 Ethertype in Ethernet spec (if such exists) to an
   IPv6 protocol spec (if such exists).
2. Validation of Ethertype to IP protocol matching on inner headers specs.
Which could cause some combinations of unmatching Ethernet and IP
protocols to pass validation and apply on the device.

The fix adds validation of IPv6 Ethertype and IP spec as well as
performing the scan on both outer and inner attributes.

Fixes: 038d2ef875 ("Add flow steering support")
Signed-off-by: Ariel Levkovich <lariel@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
2017-04-21 12:26:05 -04:00
..
ah.c IB/mlx5: Use kernel driver to help userspace create ah 2016-12-13 13:38:49 -05:00
cmd.c IB/mlx5: Add null_mkey access 2017-02-14 11:41:18 -05:00
cmd.h IB/mlx5: Add null_mkey access 2017-02-14 11:41:18 -05:00
cq.c IB/mlx5: Fix wrong use of kfree at bad flow in create_cq_user 2017-04-21 12:26:05 -04:00
doorbell.c IB/mlx5: Fix Mellanox copyright note 2015-04-02 16:33:42 -04:00
gsi.c IB/mlx5: Fix iteration overrun in GSI qps 2016-08-02 14:32:51 -04:00
ib_virt.c IB/mlx5: Implement callbacks for manipulating VFs 2016-03-21 17:13:14 -04:00
Kconfig net/mlx5: Extend mlx5_core to support ConnectX-4 Ethernet functionality 2015-05-30 18:24:51 -07:00
mad.c IB: Query ports via the core instead of direct into the driver 2017-02-14 11:41:22 -05:00
main.c IB/mlx5: Add inner spec and IPv6 validation in user's flow attribute list 2017-04-21 12:26:05 -04:00
Makefile IB/mlx5: Add null_mkey access 2017-02-14 11:41:18 -05:00
mem.c IB/mlx5: Add MR cache for large UMR regions 2017-01-02 15:51:20 -05:00
mlx5_ib.h net/mlx5e: IPoIB, Xmit flow 2017-04-17 11:08:31 -04:00
mr.c This is a tree wide change and has been kept separate for that reason. 2017-02-25 13:45:43 -08:00
odp.c IB/mlx5: Add implicit MR support 2017-02-14 11:41:19 -05:00
qp.c hw/mlx5: Add New bit to check over QP creation 2017-04-17 11:08:32 -04:00
srq.c IB/mlx5: Fix out-of-bound access 2017-02-14 10:14:25 -05:00