fbafc3e621/Documentation/networking/device_drivers/wwan/t7xx.rst
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
32 lines
1.1 KiB
Diff
32 lines
1.1 KiB
Diff
From c053d7b6bdcb45780036b32be6a950f71a78bf52 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= <ilpo.jarvinen@linux.intel.com>
|
|
Date: Thu, 3 Nov 2022 14:48:28 +0530
|
|
Subject: [PATCH] net: wwan: t7xx: Use needed_headroom instead of
|
|
hard_header_len
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
hard_header_len is used by gro_list_prepare() but on Rx, there
|
|
is no header so use needed_headroom instead.
|
|
|
|
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
|
|
Signed-off-by: Sreehari Kancharla <sreehari.kancharla@linux.intel.com>
|
|
Reviewed-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
|
|
Signed-off-by: David S. Miller <davem@davemloft.net>
|
|
---
|
|
drivers/net/wwan/t7xx/t7xx_netdev.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
--- a/drivers/net/wwan/t7xx/t7xx_netdev.c
|
|
+++ b/drivers/net/wwan/t7xx/t7xx_netdev.c
|
|
@@ -161,7 +161,7 @@ static void t7xx_ccmni_post_stop(struct
|
|
|
|
static void t7xx_ccmni_wwan_setup(struct net_device *dev)
|
|
{
|
|
- dev->hard_header_len += sizeof(struct ccci_header);
|
|
+ dev->needed_headroom += sizeof(struct ccci_header);
|
|
|
|
dev->mtu = ETH_DATA_LEN;
|
|
dev->max_mtu = CCMNI_MTU_MAX;
|