[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20100607130038.11581e28@dhcp-lab-109.englab.brq.redhat.com>
Date: Mon, 7 Jun 2010 13:00:38 +0200
From: Stanislaw Gruszka <sgruszka@...hat.com>
To: Cong Wang <amwang@...hat.com>
Cc: Ben Hutchings <bhutchings@...arflare.com>, netdev@...r.kernel.org,
herbert.xu@...hat.com, nhorman@...hat.com, davem@...emloft.net
Subject: Re: [Patch 2/2] mlx4: add dynamic LRO disable support
On Mon, 07 Jun 2010 16:51:49 +0800
Cong Wang <amwang@...hat.com> wrote:
> > Now that I look at the patch again, I see you're using a static (i.e.
> > global) variable to 'back up' the non-zero (enabled) value of num_lro.
> > This is introducing a bug! The correct value is apparently set in
> > mlx4_en_get_profile(); you would need to replicate that.
> >
>
> Oh, probably, but unfortunately 'num_lro' is static so only visible
> in en_main.c.
So just remove "static" and make it global :-)
Stanislaw
--
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