Skip to contentSkip to conversation

caif-hsi: Set default MTU to 4096

PATCH Applied Dmitry Tarnyagin 2 participants 2 messages Mar 4, 2012 – Mar 6, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 caif-hsi: Set default MTU to 4096

From: Sjur Brændeland <[email protected]>

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

---
 drivers/net/caif/caif_hsi.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/caif/caif_hsi.c +1 -1
index c8afd62..9a66e2a 100644
@@ -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);
Signature · 1 line
1.7.9