netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 11/13] bnx2x: Forbid LRO on when XEN is enabled
@ 2010-04-18 14:50 Vladislav Zolotarov
  2010-04-18 15:11 ` Ben Hutchings
  0 siblings, 1 reply; 4+ messages in thread
From: Vladislav Zolotarov @ 2010-04-18 14:50 UTC (permalink / raw)
  To: Dave Miller; +Cc: Eilon Greenstein, netdev list, dmitry

LRO cannot be used on virtualized environment, so it is best
to disable it on compile time in XEN kernel.


Author: Dmitry Kravkov <dmitry@broadcom.com>
Signed-off-by: Dmitry Kravkov <dmitry@broadcom.com>
Signed-off-by: Vladislav Zolotarov <vladz@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
---
 drivers/net/bnx2x_main.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/drivers/net/bnx2x_main.c b/drivers/net/bnx2x_main.c
index a35def6..ab9a9eb 100644
--- a/drivers/net/bnx2x_main.c
+++ b/drivers/net/bnx2x_main.c
@@ -52,6 +52,10 @@
 #include <linux/stringify.h>
 
 
+#if defined(CONFIG_XEN)
+#define __NO_TPA__		1
+#endif
+
 #include "bnx2x.h"
 #include "bnx2x_init.h"
 #include "bnx2x_init_ops.h"
-- 
1.6.3.3





^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 11/13] bnx2x: Forbid LRO on when XEN is enabled
  2010-04-18 14:50 [PATCH 11/13] bnx2x: Forbid LRO on when XEN is enabled Vladislav Zolotarov
@ 2010-04-18 15:11 ` Ben Hutchings
  2010-04-19  3:58   ` David Miller
  0 siblings, 1 reply; 4+ messages in thread
From: Ben Hutchings @ 2010-04-18 15:11 UTC (permalink / raw)
  To: Vladislav Zolotarov; +Cc: Dave Miller, Eilon Greenstein, netdev list, dmitry

On Sun, 2010-04-18 at 17:50 +0300, Vladislav Zolotarov wrote:
> LRO cannot be used on virtualized environment, so it is best
> to disable it on compile time in XEN kernel.
[...]

If you want to cripple your performance, I'm not going to stand in your
way, but be aware that most distribution kernels now enable CONFIG_XEN.

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.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 11/13] bnx2x: Forbid LRO on when XEN is enabled
  2010-04-18 15:11 ` Ben Hutchings
@ 2010-04-19  3:58   ` David Miller
  2010-04-19 16:14     ` Stephen Hemminger
  0 siblings, 1 reply; 4+ messages in thread
From: David Miller @ 2010-04-19  3:58 UTC (permalink / raw)
  To: bhutchings; +Cc: vladz, eilong, netdev, dmitry

From: Ben Hutchings <bhutchings@solarflare.com>
Date: Sun, 18 Apr 2010 16:11:25 +0100

> On Sun, 2010-04-18 at 17:50 +0300, Vladislav Zolotarov wrote:
>> LRO cannot be used on virtualized environment, so it is best
>> to disable it on compile time in XEN kernel.
> [...]
> 
> If you want to cripple your performance, I'm not going to stand in your
> way, but be aware that most distribution kernels now enable CONFIG_XEN.

There is also zero reason to do this.

When the XEN code or whatever setups up the bridge, LRO will be
disabled by the bridge code.

It automatically issues ethtool LRO disable commands to the devices
involved in the bridge configuration.  And it has done this for
a _long_ time.  The ipv4 routing code will do the same.

This change is bogus and likely based upon behavior in some ancient
distribution kernel that lacks the ethtool facilities.

I absolutely refuse to apply this.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 11/13] bnx2x: Forbid LRO on when XEN is enabled
  2010-04-19  3:58   ` David Miller
@ 2010-04-19 16:14     ` Stephen Hemminger
  0 siblings, 0 replies; 4+ messages in thread
From: Stephen Hemminger @ 2010-04-19 16:14 UTC (permalink / raw)
  To: David Miller; +Cc: bhutchings, vladz, eilong, netdev, dmitry

On Sun, 18 Apr 2010 20:58:58 -0700 (PDT)
David Miller <davem@davemloft.net> wrote:

> From: Ben Hutchings <bhutchings@solarflare.com>
> Date: Sun, 18 Apr 2010 16:11:25 +0100
> 
> > On Sun, 2010-04-18 at 17:50 +0300, Vladislav Zolotarov wrote:
> >> LRO cannot be used on virtualized environment, so it is best
> >> to disable it on compile time in XEN kernel.
> > [...]
> > 
> > If you want to cripple your performance, I'm not going to stand in your
> > way, but be aware that most distribution kernels now enable CONFIG_XEN.
> 
> There is also zero reason to do this.
> 
> When the XEN code or whatever setups up the bridge, LRO will be
> disabled by the bridge code.
> 
> It automatically issues ethtool LRO disable commands to the devices
> involved in the bridge configuration.  And it has done this for
> a _long_ time.  The ipv4 routing code will do the same.
> 
> This change is bogus and likely based upon behavior in some ancient
> distribution kernel that lacks the ethtool facilities.
> 
> I absolutely refuse to apply this.

Agreed. It is often devices that implement LRO, but don't have way
to turn it off.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-04-19 20:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-18 14:50 [PATCH 11/13] bnx2x: Forbid LRO on when XEN is enabled Vladislav Zolotarov
2010-04-18 15:11 ` Ben Hutchings
2010-04-19  3:58   ` David Miller
2010-04-19 16:14     ` Stephen Hemminger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).