]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Fix wrong private flag usage causing checksum disable
authorShay Agroskin <shayag@mellanox.com>
Sun, 6 Jan 2019 15:55:59 +0000 (17:55 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 25 Jan 2019 20:00:28 +0000 (12:00 -0800)
commit172671989d3cb1b8afbf4a93509fd75df8bb8fe1
tree68322277d28557579f423c0ab3c6b8be914e7a93
parentef0785797ae937fc32ddd3c8148df9897d01b084
net/mlx5e: Fix wrong private flag usage causing checksum disable

MLX5E_PFLAG_* definitions were changed from bitmask to enumerated
values. However, in mlx5e_open_rq(), the proper API (MLX5E_GET_PFLAG macro)
was not used to read the flag value of MLX5E_PFLAG_RX_NO_CSUM_COMPLETE.
Fixed it.

Fixes: 8d6344c4a56c ("net/mlx5e: Improve ethtool private-flags code structure")
Signed-off-by: Shay Agroskin <shayag@mellanox.com>
Reviewed-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c