]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4: USe one wrapper that returns -EPERM
authorOr Gerlitz <ogerlitz@mellanox.com>
Thu, 27 Mar 2014 12:02:02 +0000 (14:02 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Mar 2014 20:29:35 +0000 (16:29 -0400)
commitdfe262f8db73af6fee60df70a37eeca2aa0c4da9
treee0355259b27d8b72610b04ac5236ced8971d1a50
parentd47e32630936d1bbad2ee6b60dc7386830514782
net/mlx4: USe one wrapper that returns -EPERM

When a VF issues a firmware command which is disallowed for them, the PF
rerturns -EPERM from that command wrapper. Move to use one such wrapper
instance, instead of repeating the same code on such commands.

Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/cmd.c
drivers/net/ethernet/mellanox/mlx4/mlx4.h
drivers/net/ethernet/mellanox/mlx4/resource_tracker.c