[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20151013.194637.203386807677265903.davem@davemloft.net>
Date: Tue, 13 Oct 2015 19:46:37 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: ogerlitz@...lanox.com
Cc: netdev@...r.kernel.org, eli@...lanox.com, amirv@...lanox.com
Subject: Re: [PATCH net-next 1/4] net/mlx5_core: Fix internal error
detection conditions
From: Or Gerlitz <ogerlitz@...lanox.com>
Date: Tue, 13 Oct 2015 18:44:06 +0300
> + if (in_fatal(dev) && !health->sick) {
> + health->sick = 1;
> + print_health_info(dev);
> + queue_work(health->wq, &health->work);
> }
> }
>
> diff --git a/include/linux/mlx5/driver.h b/include/linux/mlx5/driver.h
> index 41a3287..cd469b9 100644
> --- a/include/linux/mlx5/driver.h
> +++ b/include/linux/mlx5/driver.h
> @@ -393,6 +393,7 @@ struct mlx5_core_health {
> struct timer_list timer;
> u32 prev;
> int miss_counter;
> + int sick;
> struct workqueue_struct *wq;
> struct work_struct work;
> };
> --
> 2.3.7
>
Please use "bool" and true/false for boolean states.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists