]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Check max encap header size capability
authorHadar Hen Zion <hadarh@mellanox.com>
Mon, 7 Nov 2016 13:14:43 +0000 (15:14 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Nov 2016 18:41:55 +0000 (13:41 -0500)
commitff7f027eeece4e2830a5b089914ac70026b9fdbd
treeeeeacd2e9869b9aaf22e4b85319f12df680c3bdd
parent173b666ac3f4a92d81a5e9871db053fcadc134a7
net/mlx5: Check max encap header size capability

Instead of comparing to a const value, check the value of max encap
header size capability as reported by the Firmware.

Fixes: e248614cd461 ('net/mlx5: Introduce alloc_encap and dealloc_encap commands')
Signed-off-by: Hadar Hen Zion <hadarh@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/fs_cmd.c