net/mlx5: Fix autogroups groups num not decreasing
authorPaul Blakey <paulb@mellanox.com>
Tue, 25 Oct 2016 15:36:27 +0000 (18:36 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 29 Oct 2016 16:00:39 +0000 (12:00 -0400)
commit32dba76a7a3104b2815f31b1755f4c0ba1f01a78
treee6542a93cd04a91f999c1f377ea9469407f46b36
parenteccec8da3b4e6f403040c7187338a46d2ea27c20
net/mlx5: Fix autogroups groups num not decreasing

Autogroups groups num is increased when creating a new flow group,
but is never decreased.

Now decreasing it when deleting a flow group.

Fixes: f0d22d187473 ('net/mlx5_core: Introduce flow steering autogrouped flow table')
Signed-off-by: Paul Blakey <paulb@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c