From: "Vladislav Zolotarov" <vladz@broadcom.com>
To: "Dave Miller" <davem@davemloft.net>
Cc: "Eilon Greenstein" <eilong@broadcom.com>,
"netdev list" <netdev@vger.kernel.org>,
dmitry@broadcom.com
Subject: [PATCH 11/13] bnx2x: Forbid LRO on when XEN is enabled
Date: Sun, 18 Apr 2010 17:50:58 +0300 [thread overview]
Message-ID: <1271602258.27235.200.camel@lb-tlvb-vladz> (raw)
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
next reply other threads:[~2010-04-18 14:51 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-18 14:50 Vladislav Zolotarov [this message]
2010-04-18 15:11 ` [PATCH 11/13] bnx2x: Forbid LRO on when XEN is enabled Ben Hutchings
2010-04-19 3:58 ` David Miller
2010-04-19 16:14 ` Stephen Hemminger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1271602258.27235.200.camel@lb-tlvb-vladz \
--to=vladz@broadcom.com \
--cc=davem@davemloft.net \
--cc=dmitry@broadcom.com \
--cc=eilong@broadcom.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox