net/mlx5: Eswitch, avoid redundant mask
authorEli Cohen <eli@mellanox.com>
Thu, 6 Feb 2020 13:13:36 +0000 (15:13 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 28 Feb 2020 00:40:02 +0000 (16:40 -0800)
commit1708dd54687db4fd5baa3b6169aa116505c1e2ef
tree47fd56931567dec9dc648b1a0442a3bc18984a46
parentffec97020f841fefa508db038bad58bc6def9431
net/mlx5: Eswitch, avoid redundant mask

misc_params.source_port is a 16 bit field already so no need for
redundant masking against 0xffff. Also change local variables type to
u16.

Signed-off-by: Eli Cohen <eli@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads_termtbl.c