Patchwork caif-hsi: Set default MTU to 4096

login
register
mail settings
Submitter Dmitry Tarnyagin
Date March 4, 2012, 6:38 p.m.
Message ID <1330886338-4814-1-git-send-email-abi.dmitryt@gmail.com>
Download mbox | patch
Permalink /patch/144516/
State Accepted
Delegated to: David Miller
Headers show

Comments

Dmitry Tarnyagin - March 4, 2012, 6:38 p.m.
From: Sjur Brændeland <sjur.brandeland@stericsson.com>

Default MTU for CAIF HSI was wrongly set to 15 * 4092 bytes.
The patch sets default MTU size to 4096.

Signed-off-by: Sjur Brændeland <sjur.brandeland@stericsson.com>
---
 drivers/net/caif/caif_hsi.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
David Miller - March 6, 2012, 9:29 p.m.
From: Dmitry Tarnyagin <abi.dmitryt@gmail.com>
Date: Sun,  4 Mar 2012 19:38:58 +0100

> From: Sjur Brændeland <sjur.brandeland@stericsson.com>
> 
> Default MTU for CAIF HSI was wrongly set to 15 * 4092 bytes.
> The patch sets default MTU size to 4096.
> 
> Signed-off-by: Sjur Brændeland <sjur.brandeland@stericsson.com>

Applied.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/drivers/net/caif/caif_hsi.c b/drivers/net/caif/caif_hsi.c
index c8afd62..9a66e2a 100644
--- a/drivers/net/caif/caif_hsi.c
+++ b/drivers/net/caif/caif_hsi.c
@@ -1031,7 +1031,7 @@  static void cfhsi_setup(struct net_device *dev)
 	dev->netdev_ops = &cfhsi_ops;
 	dev->type = ARPHRD_CAIF;
 	dev->flags = IFF_POINTOPOINT | IFF_NOARP;
-	dev->mtu = CFHSI_MAX_PAYLOAD_SZ;
+	dev->mtu = CFHSI_MAX_CAIF_FRAME_SZ;
 	dev->tx_queue_len = 0;
 	dev->destructor = free_netdev;
 	skb_queue_head_init(&cfhsi->qhead);