[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <48004E71.4040805@pobox.com>
Date: Sat, 12 Apr 2008 01:53:53 -0400
From: Jeff Garzik <jgarzik@...ox.com>
To: Laurent Pinchart <laurentp@...-semaphore.com>
CC: netdev@...r.kernel.org, linuxppc-dev@...abs.org
Subject: Re: [PATCH] fs_enet: Don't call NAPI functions when NAPI is not used.
Laurent Pinchart wrote:
> fs_enet_close() calls napi_disable() unconditionally. This patch skips the
> call when use_napi isn't set.
>
> Signed-off-by: Laurent Pinchart <laurentp@...-semaphore.com>
> ---
> drivers/net/fs_enet/fs_enet-main.c | 3 ++-
> 1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/net/fs_enet/fs_enet-main.c b/drivers/net/fs_enet/fs_enet-main.c
> index c83bd65..1801ce3 100644
> --- a/drivers/net/fs_enet/fs_enet-main.c
> +++ b/drivers/net/fs_enet/fs_enet-main.c
> @@ -835,7 +835,8 @@ static int fs_enet_close(struct net_device *dev)
>
> netif_stop_queue(dev);
> netif_carrier_off(dev);
> - napi_disable(&fep->napi);
> + if (fep->fpi->use_napi)
> + napi_disable(&fep->napi);
> phy_stop(fep->phydev);
applied
--
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