net/mlx5: MPFS, Cleanup add MAC flow
authorGavi Teitz <gavi@mellanox.com>
Tue, 11 Jun 2019 08:54:36 +0000 (11:54 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 28 Jun 2019 23:03:58 +0000 (16:03 -0700)
commit6311f308849e9dfc0ff058fcc332246541030c24
tree50fb3a7403e2fcbd300b7ab9ddbe2637b64f7198
parent4f5d1beadc10b62e141338570b9c32d857814bb0
net/mlx5: MPFS, Cleanup add MAC flow

Unify and isolate the error handling flow in mlx5_mpfs_add_mac(),
removing code duplication.

Signed-off-by: Gavi Teitz <gavi@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/lib/mpfs.c