linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: saeed@marvell.com (Saeed Bishara)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/2] set packet size limit for the mv643xx csum offloading
Date: Sun,  6 Jun 2010 15:28:56 +0300	[thread overview]
Message-ID: <1275827336-31111-2-git-send-email-saeed@marvell.com> (raw)
In-Reply-To: <1275827336-31111-1-git-send-email-saeed@marvell.com>

The mv643xx ethernet controller limits the packet size for the TX
checksum offloading. this patch sets this limits for the needed
devices.

Signed-off-by: Saeed Bishara <saeed@marvell.com>
---
 arch/arm/mach-dove/common.c     |    1 +
 arch/arm/mach-kirkwood/common.c |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-dove/common.c b/arch/arm/mach-dove/common.c
index 5da2cf4..473ce0b 100644
--- a/arch/arm/mach-dove/common.c
+++ b/arch/arm/mach-dove/common.c
@@ -149,6 +149,7 @@ void __init dove_ehci1_init(void)
 struct mv643xx_eth_shared_platform_data dove_ge00_shared_data = {
 	.t_clk		= 0,
 	.dram		= &dove_mbus_dram_info,
+	.tx_csum_limit	= 1600,
 };
 
 static struct resource dove_ge00_shared_resources[] = {
diff --git a/arch/arm/mach-kirkwood/common.c b/arch/arm/mach-kirkwood/common.c
index 4ccfdf9..c4bd8cb 100644
--- a/arch/arm/mach-kirkwood/common.c
+++ b/arch/arm/mach-kirkwood/common.c
@@ -114,6 +114,7 @@ void __init kirkwood_ehci_init(void)
  ****************************************************************************/
 struct mv643xx_eth_shared_platform_data kirkwood_ge00_shared_data = {
 	.dram		= &kirkwood_mbus_dram_info,
+	.tx_csum_limit	= 1600,
 };
 
 static struct resource kirkwood_ge00_shared_resources[] = {
-- 
1.6.0.4

  reply	other threads:[~2010-06-06 12:28 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-06 12:28 [PATCH 1/2] mv643xx_eth: disable csum offloading if the hw limited by max size Saeed Bishara
2010-06-06 12:28 ` Saeed Bishara [this message]
2010-06-08 17:09   ` [PATCH 2/2] set packet size limit for the mv643xx csum offloading Lennert Buytenhek
2010-07-15 20:26   ` Martin Michlmayr
2010-07-16  6:08     ` Lennert Buytenhek
2010-08-31 11:17       ` saeed bishara
2010-08-31 13:13       ` saeed bishara
2010-08-31 16:48         ` Lennert Buytenhek
2010-09-01  7:42           ` saeed bishara
2010-09-01  7:49             ` Lennert Buytenhek
2010-08-13 22:28   ` Maxime Bizon
2010-08-31 11:17     ` saeed bishara
2010-08-31 13:13     ` saeed bishara
2010-06-08 17:08 ` [PATCH 1/2] mv643xx_eth: disable csum offloading if the hw limited by max size Lennert Buytenhek
2010-06-09  8:21   ` Saeed Bishara
2010-06-09  8:51     ` [PATCH 1/2 v2] mv643xx_eth: use sw csum for big packets Saeed Bishara
2010-06-10  6:43       ` Lennert Buytenhek
2010-06-10  7:38         ` Saeed Bishara
2010-06-12  8:31           ` Lennert Buytenhek
2010-06-13  7:38             ` Saeed Bishara
2010-06-14  9:32               ` Lennert Buytenhek
2010-06-20 11:49                 ` saeed bishara
2010-06-20 11:58                   ` Lennert Buytenhek
2010-06-27  4:22                     ` David Miller
2010-06-09 19:10     ` [PATCH 1/2] mv643xx_eth: disable csum offloading if the hw limited by max size Lennert Buytenhek
2010-06-09 19:22       ` Abhijeet Gole

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=1275827336-31111-2-git-send-email-saeed@marvell.com \
    --to=saeed@marvell.com \
    --cc=linux-arm-kernel@lists.infradead.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;
as well as URLs for NNTP newsgroup(s).