summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorOr Gerlitz <ogerlitz@mellanox.com>2014-10-30 15:59:28 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-11-14 10:10:21 -0800
commit9b5d0156bcfcc33763f9e62ab23a1d86f0f30ec7 (patch)
tree2ac65149e074e5d5e2fe9a2f9f140d7f2507aed7 /net
parent9e02c54c86ca6e4cfda44bc50ae329ad78f7c3ab (diff)
mlx4: Avoid leaking steering rules on flow creation error flow
[ Upstream commit 571e1b2c7a4c2fd5faa1648462a6b65fa26530d7 ] If mlx4_ib_create_flow() attempts to create > 1 rules with the firmware, and one of these registrations fail, we leaked the already created flow rules. One example of the leak is when the registration of the VXLAN ghost steering rule fails, we didn't unregister the original rule requested by the user, introduced in commit d2fce8a9060d "mlx4: Set user-space raw Ethernet QPs to properly handle VXLAN traffic". While here, add dump of the VXLAN portion of steering rules so it can actually be seen when flow creation fails. Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions