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)
commit43f93839e359c8044200ec3f6fa455b47ba3aa2c
treeeeeacd2e9869b9aaf22e4b85319f12df680c3bdd
parentae9f83ac24569e4bfc7c174be362d1835233c28f
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: 575ddf5888ea ('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