Commit e5cc44b2 authored by Yevgeny Petrilin's avatar Yevgeny Petrilin Committed by David S. Miller

mlx4_en: Reporting link state with KERN_INFO

Signed-off-by: default avatarYevgeny Petrilin <yevgenyp@mellanox.co.il>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a0b4e6e0
...@@ -528,10 +528,10 @@ static void mlx4_en_linkstate(struct work_struct *work) ...@@ -528,10 +528,10 @@ static void mlx4_en_linkstate(struct work_struct *work)
* report to system log */ * report to system log */
if (priv->last_link_state != linkstate) { if (priv->last_link_state != linkstate) {
if (linkstate == MLX4_DEV_EVENT_PORT_DOWN) { if (linkstate == MLX4_DEV_EVENT_PORT_DOWN) {
en_dbg(LINK, priv, "Link Down\n"); en_info(priv, "Link Down\n");
netif_carrier_off(priv->dev); netif_carrier_off(priv->dev);
} else { } else {
en_dbg(LINK, priv, "Link Up\n"); en_info(priv, "Link Up\n");
netif_carrier_on(priv->dev); netif_carrier_on(priv->dev);
} }
} }
......
...@@ -554,6 +554,8 @@ do { \ ...@@ -554,6 +554,8 @@ do { \
en_print(KERN_WARNING, priv, format, ##arg) en_print(KERN_WARNING, priv, format, ##arg)
#define en_err(priv, format, arg...) \ #define en_err(priv, format, arg...) \
en_print(KERN_ERR, priv, format, ##arg) en_print(KERN_ERR, priv, format, ##arg)
#define en_info(priv, format, arg...) \
en_print(KERN_INFO, priv, format, ## arg)
#define mlx4_err(mdev, format, arg...) \ #define mlx4_err(mdev, format, arg...) \
pr_err("%s %s: " format, DRV_NAME, \ pr_err("%s %s: " format, DRV_NAME, \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment