net/mlx5: Use exact encap header size for the FW input buffer
authorOr Gerlitz <ogerlitz@mellanox.com>
Sun, 11 Dec 2016 10:15:08 +0000 (12:15 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Tue, 24 Jan 2017 19:13:57 +0000 (21:13 +0200)
commit073ff3c8e6acdd6bae91a037e6f2d0edeed4165d
tree229fae07bd324991c968e6751ce6ee1e9618c192
parent4548b683b78137f8eadeb312b94e20bb0d4a7141
net/mlx5: Use exact encap header size for the FW input buffer

The current code is allocating the max encap size supported by
the firmware and not the size requested by the caller, fix that.

Also, spare a warning when the size of the encapsulation headers
is bigger from what is supported by the firmware.

Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Reviewed-by: Hadar Hen Zion <hadarh@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/fs_cmd.c