[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <79DAF37B-9AA5-407B-81D2-3EDFD8589254@gmail.com>
Date: Wed, 8 Jan 2014 00:37:21 -0800
From: Scott Feldman <sfeldma@...il.com>
To: Aaron Brown <aaron.f.brown@...el.com>
Cc: David Miller <davem@...emloft.net>,
Mark Rustad <mark.d.rustad@...el.com>,
Netdev <netdev@...r.kernel.org>, gospo@...hat.com,
sassmann@...hat.com
Subject: Re: [net-next 2/7] ixgbe: Indicate removal state explicitly
On Jan 7, 2014, at 11:40 PM, Aaron Brown <aaron.f.brown@...el.com> wrote:
> From: Mark Rustad <mark.d.rustad@...el.com>
>
> Add a bit, __IXGBE_REMOVE, to indicate that the module is being
> removed. The __IXGBE_DOWN bit had been overloaded for this purpose,
> but that leads to trouble. A few places now check both __IXGBE_DOWN
> and __IXGBE_REMOVE. Notably, setting either bit will prevent service
> task execution.
>
> Signed-off-by: Mark Rustad <mark.d.rustad@...el.com>
> Tested-by: Phil Schmitt <phillip.j.schmitt@...el.com>
> Signed-off-by: Aaron Brown <aaron.f.brown@...el.com>
> ---
> drivers/net/ethernet/intel/ixgbe/ixgbe.h | 1 +
> drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 12 ++++++++----
> 2 files changed, 9 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe.h b/drivers/net/ethernet/intel/ixgbe/ixgbe.h
> index 49531cd..8da263a 100644
> --- a/drivers/net/ethernet/intel/ixgbe/ixgbe.h
> +++ b/drivers/net/ethernet/intel/ixgbe/ixgbe.h
> @@ -798,6 +798,7 @@ enum ixgbe_state_t {
> __IXGBE_TESTING,
> __IXGBE_RESETTING,
> __IXGBE_DOWN,
> + __IXGBE_REMOVE,
__IXGBE_REMOVING? More consistent with _TESTING, _RESETTING, etc.--
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