linux-stable/include/linux/mlx5
Eli Cohen b037c29a80 IB/mlx5: Allow future extension of libmlx5 input data
Current check requests that new fields in struct
mlx5_ib_alloc_ucontext_req_v2 that are not known to the driver be zero.
This was introduced so new libraries passing additional information to
the kernel through struct mlx5_ib_alloc_ucontext_req_v2 will be notified
by old kernels that do not support their request by failing the
operation. This schecme is problematic since it requires libmlx5 to issue
the requests with descending input size for struct
mlx5_ib_alloc_ucontext_req_v2.

To avoid this, we require that new features that will obey the following
rules:
If the feature requires one or more fields in the response and the at
least one of the fields can be encoded such that a zero value means the
kernel ignored the request then this field will provide the indication
to the library. If no response is required or if zero is a valid
response, a new field should be added that indicates to the library
whether its request was processed.

Fixes: b368d7cb8c ('IB/mlx5: Add hca_core_clock_offset to udata in init_ucontext')
Signed-off-by: Eli Cohen <eli@mellanox.com>
Reviewed-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
2017-01-09 20:25:09 +02:00
..
cmd.h
cq.h IB/mlx5: Use blue flame register allocator in mlx5_ib 2017-01-09 20:25:08 +02:00
device.h IB/mlx5: Allow future extension of libmlx5 input data 2017-01-09 20:25:09 +02:00
doorbell.h IB/mlx5: Use blue flame register allocator in mlx5_ib 2017-01-09 20:25:08 +02:00
driver.h IB/mlx5: Allow future extension of libmlx5 input data 2017-01-09 20:25:09 +02:00
fs.h net/mlx5: Support encap id when setting new steering entry 2016-11-09 13:41:56 -05:00
mlx5_ifc.h net/mlx5: Introduce blue flame register allocator 2017-01-08 11:21:26 +02:00
port.h net/mlx5: Add DCBX firmware commands support 2016-11-28 15:09:35 -05:00
qp.h IB/mlx5: Add ODP atomics support 2017-01-02 15:51:20 -05:00
srq.h net/mlx5: Ensure SRQ physical address structure endianness 2016-10-30 15:43:10 +02:00
transobj.h IB/mlx5: Support setting Ethernet priority for Raw Packet QPs 2016-01-21 12:01:09 -05:00
vport.h net/mlx5: Enable to query min inline for a specific vport 2016-11-24 16:01:14 -05:00