netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH][net-next] net: remove the check argument from __skb_gro_checksum_convert
@ 2020-01-03  3:51 Li RongQing
  2020-01-03  8:10 ` Simon Horman
  0 siblings, 1 reply; 3+ messages in thread
From: Li RongQing @ 2020-01-03  3:51 UTC (permalink / raw)
  To: netdev

The argument is always ignored, so remove it.

Signed-off-by: Li RongQing <lirongqing@baidu.com>
---
 include/linux/netdevice.h | 6 +++---
 net/ipv4/gre_offload.c    | 2 +-
 net/ipv4/udp_offload.c    | 2 +-
 net/ipv6/udp_offload.c    | 2 +-
 4 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 2fd19fb8826d..2741aa35bec6 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -2826,16 +2826,16 @@ static inline bool __skb_gro_checksum_convert_check(struct sk_buff *skb)
 }
 
 static inline void __skb_gro_checksum_convert(struct sk_buff *skb,
-					      __sum16 check, __wsum pseudo)
+					      __wsum pseudo)
 {
 	NAPI_GRO_CB(skb)->csum = ~pseudo;
 	NAPI_GRO_CB(skb)->csum_valid = 1;
 }
 
-#define skb_gro_checksum_try_convert(skb, proto, check, compute_pseudo)	\
+#define skb_gro_checksum_try_convert(skb, proto, compute_pseudo)	\
 do {									\
 	if (__skb_gro_checksum_convert_check(skb))			\
-		__skb_gro_checksum_convert(skb, check,			\
+		__skb_gro_checksum_convert(skb, 			\
 					   compute_pseudo(skb, proto));	\
 } while (0)
 
diff --git a/net/ipv4/gre_offload.c b/net/ipv4/gre_offload.c
index 4de7e962d3da..2e6d1b7a7bc9 100644
--- a/net/ipv4/gre_offload.c
+++ b/net/ipv4/gre_offload.c
@@ -174,7 +174,7 @@ static struct sk_buff *gre_gro_receive(struct list_head *head,
 		if (skb_gro_checksum_simple_validate(skb))
 			goto out_unlock;
 
-		skb_gro_checksum_try_convert(skb, IPPROTO_GRE, 0,
+		skb_gro_checksum_try_convert(skb, IPPROTO_GRE,
 					     null_compute_pseudo);
 	}
 
diff --git a/net/ipv4/udp_offload.c b/net/ipv4/udp_offload.c
index a3908e55ed89..b25e42100ceb 100644
--- a/net/ipv4/udp_offload.c
+++ b/net/ipv4/udp_offload.c
@@ -480,7 +480,7 @@ struct sk_buff *udp4_gro_receive(struct list_head *head, struct sk_buff *skb)
 						 inet_gro_compute_pseudo))
 		goto flush;
 	else if (uh->check)
-		skb_gro_checksum_try_convert(skb, IPPROTO_UDP, uh->check,
+		skb_gro_checksum_try_convert(skb, IPPROTO_UDP,
 					     inet_gro_compute_pseudo);
 skip:
 	NAPI_GRO_CB(skb)->is_ipv6 = 0;
diff --git a/net/ipv6/udp_offload.c b/net/ipv6/udp_offload.c
index 64b8f05d6735..f0d5fc27d0b5 100644
--- a/net/ipv6/udp_offload.c
+++ b/net/ipv6/udp_offload.c
@@ -127,7 +127,7 @@ struct sk_buff *udp6_gro_receive(struct list_head *head, struct sk_buff *skb)
 						 ip6_gro_compute_pseudo))
 		goto flush;
 	else if (uh->check)
-		skb_gro_checksum_try_convert(skb, IPPROTO_UDP, uh->check,
+		skb_gro_checksum_try_convert(skb, IPPROTO_UDP,
 					     ip6_gro_compute_pseudo);
 
 skip:
-- 
2.16.2


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH][net-next] net: remove the check argument from __skb_gro_checksum_convert
  2020-01-03  3:51 [PATCH][net-next] net: remove the check argument from __skb_gro_checksum_convert Li RongQing
@ 2020-01-03  8:10 ` Simon Horman
  2020-01-03 20:24   ` David Miller
  0 siblings, 1 reply; 3+ messages in thread
From: Simon Horman @ 2020-01-03  8:10 UTC (permalink / raw)
  To: Li RongQing; +Cc: netdev

On Fri, Jan 03, 2020 at 11:51:00AM +0800, Li RongQing wrote:
> The argument is always ignored, so remove it.
> 
> Signed-off-by: Li RongQing <lirongqing@baidu.com>

Reviewed-by: Simon Horman <simon.horman@netronome.com>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH][net-next] net: remove the check argument from __skb_gro_checksum_convert
  2020-01-03  8:10 ` Simon Horman
@ 2020-01-03 20:24   ` David Miller
  0 siblings, 0 replies; 3+ messages in thread
From: David Miller @ 2020-01-03 20:24 UTC (permalink / raw)
  To: simon.horman; +Cc: lirongqing, netdev

From: Simon Horman <simon.horman@netronome.com>
Date: Fri, 3 Jan 2020 09:10:39 +0100

> On Fri, Jan 03, 2020 at 11:51:00AM +0800, Li RongQing wrote:
>> The argument is always ignored, so remove it.
>> 
>> Signed-off-by: Li RongQing <lirongqing@baidu.com>
> 
> Reviewed-by: Simon Horman <simon.horman@netronome.com>

Applied, thanks.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-01-03 20:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-03  3:51 [PATCH][net-next] net: remove the check argument from __skb_gro_checksum_convert Li RongQing
2020-01-03  8:10 ` Simon Horman
2020-01-03 20:24   ` David Miller

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).