]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Fix err prints and return when creating termination table
authorRoi Dayan <roid@nvidia.com>
Thu, 13 May 2021 12:00:53 +0000 (15:00 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 19 May 2021 06:01:26 +0000 (23:01 -0700)
commitc6cd55678e78c8cc375384e2fd4170b55ad3674b
tree8e23ab3cc22cc3bd7e8b2231bcf8c9b9af7e0b69
parent040a0462bb0bdaaafd50c26e316470e9b510db44
net/mlx5: Fix err prints and return when creating termination table

Fix print to print correct error code and not using IS_ERR() which
will just result in always printing 1.
Also return real err instead of always -EOPNOTSUPP.

Fixes: 11a71d9177e8 ("net/mlx5e: Use termination table for VLAN push actions")
Signed-off-by: Roi Dayan <roid@nvidia.com>
Reviewed-by: Maor Dickman <maord@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads_termtbl.c