net/mlx4_en: Release TX QP when destroying TX ring
authorEran Ben Elisha <eranbe@mellanox.com>
Thu, 25 Jun 2015 08:29:41 +0000 (11:29 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 25 Jun 2015 09:06:26 +0000 (02:06 -0700)
commit0eb08514fdbdcd16fd6870680cd638f203662e9d
treebcc9ead3e02ca6b61bcb5f8e739e44c1b5a3d6d4
parentaefbef10e3ae6e2c6e3c54f906f10b34c73a2c66
net/mlx4_en: Release TX QP when destroying TX ring

TX ring QP wasn't released at mlx4_en_destroy_tx_ring. Instead, the code
used the deprecated base_tx_qpn field. Move TX QP release to
mlx4_en_destroy_tx_ring and remove the base_tx_qpn field.

Fixes: ddae0349fdb7 ('net/mlx4: Change QP allocation scheme')
Signed-off-by: Eran Ben Elisha <eranbe@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_netdev.c
drivers/net/ethernet/mellanox/mlx4/en_tx.c
drivers/net/ethernet/mellanox/mlx4/mlx4_en.h