[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1232753014.3005.2.camel@achroite>
Date: Fri, 23 Jan 2009 23:23:33 +0000
From: Ben Hutchings <bhutchings@...arflare.com>
To: Ron Mercer <ron.mercer@...gic.com>
Cc: davem@...emloft.net, netdev@...r.kernel.org,
linux-driver@...gic.com
Subject: Re: [PATCH 02/21] [next] qlge: Add new functions for signaling
link up/down.
On Fri, 2009-01-23 at 07:16 -0800, Ron Mercer wrote:
> Centralize this call as it will also be used by firmware events.
>
> Signed-off-by: Ron Mercer <ron.mercer@...gic.com>
> ---
> drivers/net/qlge/qlge_main.c | 38 ++++++++++++++++++++++++--------------
> 1 files changed, 24 insertions(+), 14 deletions(-)
>
> diff --git a/drivers/net/qlge/qlge_main.c b/drivers/net/qlge/qlge_main.c
> index a530f5b..e6f9146 100644
> --- a/drivers/net/qlge/qlge_main.c
> +++ b/drivers/net/qlge/qlge_main.c
> @@ -240,6 +240,24 @@ exit:
> return status;
> }
>
> +static void ql_link_on(struct ql_adapter *qdev)
> +{
> + if (!netif_carrier_ok(qdev->ndev)) {
> + QPRINTK(qdev, LINK, INFO, "Link is Up.\n");
> + netif_carrier_on(qdev->ndev);
> + netif_wake_queue(qdev->ndev);
> + }
> +}
> +
> +static void ql_link_off(struct ql_adapter *qdev)
> +{
> + if (netif_carrier_ok(qdev->ndev)) {
> + QPRINTK(qdev, LINK, INFO, "Link is Down.\n");
> + netif_carrier_off(qdev->ndev);
> + netif_stop_queue(qdev->ndev);
> + }
> +}
> +
netif_{wake,stop_queue}() are redundant with netif_carrier_{on,off}() so
I think this patch is (mostly?) unnecessary.
Ben.
--
Ben Hutchings, Senior Software Engineer, Solarflare Communications
Not speaking for my employer; that's the marketing department's job.
They asked us to note that Solarflare product names are trademarked.
--
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