net/mlx5e: Re-order route and encap header memory allocation
authorEli Britstein <elibr@mellanox.com>
Mon, 3 Dec 2018 15:09:54 +0000 (17:09 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 20 Dec 2018 13:06:02 +0000 (05:06 -0800)
commitc7bcb277bda46d75819fb2d475fa817c10dc209b
tree6b1911860e16c812967df0df59c11033d0c76f93
parent05ada1adb65acd533f978651e7001e3568e7b98a
net/mlx5e: Re-order route and encap header memory allocation

Change the order to first route IPv4/6 and return if error. Only after
successful route continue to allocate an encap header, with no
functional change.

Signed-off-by: Eli Britstein <elibr@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c