net/mlx5e: Fix endianness when calculating pedit mask first bit
authorMaor Dickman <maord@nvidia.com>
Wed, 2 Sep 2020 13:49:52 +0000 (16:49 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 22 Sep 2020 00:22:23 +0000 (17:22 -0700)
commit82198d8bcdeff01d19215d712aa55031e21bccbc
tree9a6d952ad907d4a030d7caa2fdadfacc68ec8d1f
parent6cec0229ab1959259e71e9a5bbe47c04577950b1
net/mlx5e: Fix endianness when calculating pedit mask first bit

The field mask value is provided in network byte order and has to
be converted to host byte order before calculating pedit mask
first bit.

Fixes: 88f30bbcbaaa ("net/mlx5e: Bit sized fields rewrite support")
Signed-off-by: Maor Dickman <maord@nvidia.com>
Reviewed-by: Roi Dayan <roid@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c