net/mlx4_en: Ignore irrelevant hypervisor events
authorEugenia Emantayev <eugenia@mellanox.co.il>
Thu, 19 Dec 2013 19:20:16 +0000 (21:20 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Dec 2013 00:04:44 +0000 (19:04 -0500)
MLX4_DEV_EVENT_SLAVE_INIT and MLX4_DEV_EVENT_SLAVE_SHUTDOWN
events used by Hypervisor to inform the PPF IB driver that
IB para-virtualization must be initialized/destroyed for a slave.
If this event is catched by ETH VF annoying but harmless error message
is printed into dmesg. Remove dmesg prints for these events.

Signed-off-by: Eugenia Emantayev <eugenia@mellanox.co.il>
Signed-off-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_main.c

index 0d087b03a7b09db29f170c712e8f36c71c8f9db6..725a4e1b5f67db07a9c576e051a128aced6e5f2a 100644 (file)
@@ -174,6 +174,9 @@ static void mlx4_en_event(struct mlx4_dev *dev, void *endev_ptr,
                mlx4_err(mdev, "Internal error detected, restarting device\n");
                break;
 
+       case MLX4_DEV_EVENT_SLAVE_INIT:
+       case MLX4_DEV_EVENT_SLAVE_SHUTDOWN:
+               break;
        default:
                if (port < 1 || port > dev->caps.num_ports ||
                    !mdev->pndev[port])