]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
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)
committerTim Gardner <tim.gardner@canonical.com>
Wed, 1 Mar 2017 13:55:52 +0000 (06:55 -0700)
commit4d1e9c13b4cdead64010ee7b7bb8435a9e38f686
tree1f0bc33e602c840df3ab5e735a4fd50ed817754e
parenta147f92049a74127d2d08362cb7626c714e763a3
net/mlx5: Use exact encap header size for the FW input buffer

BugLink: http://bugs.launchpad.net/bugs/1668019
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>
(cherry picked from commit 073ff3c8e6acdd6bae91a037e6f2d0edeed4165d)
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/net/ethernet/mellanox/mlx5/core/fs_cmd.c