net/mlx5e: Correctly use the namespace type when allocating pedit action
authorTonghao Zhang <xiangxia.m.yue@gmail.com>
Tue, 26 Feb 2019 12:28:32 +0000 (04:28 -0800)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 29 Mar 2019 19:24:42 +0000 (12:24 -0700)
commit84be899f6fd233ff2aeaf14cc43e6457425122b2
tree4a8b59dd6db2c7507eccf27e8bd60b2edc16a343
parent8a91ad9355c66c5026d3d911b434a25408ab876c
net/mlx5e: Correctly use the namespace type when allocating pedit action

The capacity of FDB offloading and NIC offloading table are
different, and when allocating the pedit actions, we should
use the correct namespace type.

Fixes: c500c86b0c75d ("net/mlx5e: support for two independent packet edit actions")
Cc: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Tonghao Zhang <xiangxia.m.yue@gmail.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c