Skip to content
Commit 5e68ecd6 authored by Sebastian Hense's avatar Sebastian Hense Committed by Greg Kroah-Hartman
Browse files

net/mlx5e: Fix endianness handling in pedit mask

[ Upstream commit 404402ab ]

The mask value is provided as 64 bit and has to be casted in
either 32 or 16 bit. On big endian systems the wrong half was
casted which resulted in an all zero mask.

Fixes: 2b64beba

 ("net/mlx5e: Support header re-write of partial fields in TC pedit offload")
Signed-off-by: default avatarSebastian Hense <sebastian.hense1@ibm.com>
Reviewed-by: default avatarRoi Dayan <roid@mellanox.com>
Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 58277dea
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment