linux-stable/include/linux/mlx5
Borislav Petkov 0276bd3a94 IB/mlx5: Fix undefined behavior due to shift overflowing the constant
Fix:

  drivers/infiniband/hw/mlx5/main.c: In function ‘translate_eth_legacy_proto_oper’:
  drivers/infiniband/hw/mlx5/main.c:370:2: error: case label does not reduce to an integer constant
    case MLX5E_PROT_MASK(MLX5E_50GBASE_KR2):
    ^~~~

See https://lore.kernel.org/r/YkwQ6%2BtIH8GQpuct@zn.tnic for the gory
details as to why it triggers with older gccs only.

Link: https://lore.kernel.org/all/20220405151517.29753-11-bp@alien8.de
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: Leon Romanovsky <leon@kernel.org>
Cc: Saeed Mahameed <saeedm@nvidia.com>
Cc: linux-rdma@vger.kernel.org
Cc: netdev@vger.kernel.org
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
2022-04-06 10:15:03 +03:00
..
accel.h
cq.h net/mlx5: Use mlx5_cmd_do() in core create_{cq,dct} 2022-02-23 15:21:59 -08:00
device.h net/mlx5: Add misc5 flow table match parameters 2021-12-31 00:17:23 -08:00
doorbell.h
driver.h Networking changes for 5.18. 2022-03-24 13:13:26 -07:00
eq.h net/mlx5: Introduce API for bulk request and release of IRQs 2022-01-06 16:22:52 -08:00
eswitch.h net/mlx5: E-Switch, Fix resetting of encap mode when entering switchdev 2021-11-16 12:20:19 -08:00
fs.h net/mlx5: Add ability to insert to specific flow group 2022-02-23 15:21:58 -08:00
fs_helpers.h
mlx5_ifc.h Networking changes for 5.18. 2022-03-24 13:13:26 -07:00
mlx5_ifc_fpga.h net/mlx5_fpga: Drop INNOVA TLS support 2022-04-06 10:00:36 +03:00
mlx5_ifc_vdpa.h
mpfs.h
port.h IB/mlx5: Fix undefined behavior due to shift overflowing the constant 2022-04-06 10:15:03 +03:00
qp.h net/mlx5e: Fix build warning, detected write beyond size of field 2022-03-22 16:48:56 -07:00
rsc_dump.h
transobj.h
vport.h