net/mlx5: Add handling for port module event
authorHuy Nguyen <huyn@mellanox.com>
Thu, 17 Nov 2016 11:45:57 +0000 (13:45 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Nov 2016 17:08:57 +0000 (12:08 -0500)
commitd4eb4cd78b0774c7061db56844ed2ea7790cc77c
tree362c6ad8416698cbc6c4e4ad21f2d5b1500920c0
parent4ce3bf2fa8ba309b5ca19539fcc8671a0fc084f9
net/mlx5: Add handling for port module event

For each asynchronous port module event:
  1. print with ratelimit to the dmesg log
  2. increment the corresponding event counter

Signed-off-by: Huy Nguyen <huyn@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/eq.c
drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h
drivers/net/ethernet/mellanox/mlx5/core/port.c
include/linux/mlx5/driver.h