Skip to contentSkip to conversation

inet: do not export inet_gro_{receive|complete}

PATCH Applied Eric Dumazet 3 participants 3 messages Feb 2, 2021 – Feb 3, 2021

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

PATCH 1/1 inet: do not export inet_gro_{receive|complete}

From: Eric Dumazet <[email protected]>

inet_gro_receive() and inet_gro_complete() are part of GRO engine which can not be modular.

Similarly, inet_gso_segment() does not need to be exported, being part of GSO stack.

In other words, net/ipv6/ip6_offload.o is part of vmlinux, regardless of CONFIG_IPV6.

Cc Leon Romanovsky <[email protected]>
---
 net/ipv4/af_inet.c | 3 ---
 1 file changed, 3 deletions(-)
net/ipv4/af_inet.c +0 -3
index b94fa8eb831bf3b18917529ef6a9263edb968592..be43c8d95af56624c4deee30e5f737eacdb884c1 100644
@@ -1419,7 +1419,6 @@ struct sk_buff *inet_gso_segment(struct sk_buff *skb,
 out:
 	return segs;
 }
-EXPORT_SYMBOL(inet_gso_segment);
 
 static struct sk_buff *ipip_gso_segment(struct sk_buff *skb,
 					netdev_features_t features)
@@ -1550,7 +1549,6 @@ struct sk_buff *inet_gro_receive(struct list_head *head, struct sk_buff *skb)
 
 	return pp;
 }
-EXPORT_SYMBOL(inet_gro_receive);
 
 static struct sk_buff *ipip_gro_receive(struct list_head *head,
 					struct sk_buff *skb)
@@ -1636,7 +1634,6 @@ int inet_gro_complete(struct sk_buff *skb, int nhoff)
 
 	return err;
 }
-EXPORT_SYMBOL(inet_gro_complete);
 
 static int ipip_gro_complete(struct sk_buff *skb, int nhoff)
 {
Signature · 1 line
2.30.0.365.g02bc693789-goog
Reviewed-by on v1 1/1
#1 lore raw
Quoted 8 lines · Eric Dumazet

From: Eric Dumazet <[email protected]>

inet_gro_receive() and inet_gro_complete() are part of GRO engine which can not be modular.

Similarly, inet_gso_segment() does not need to be exported, being part of GSO stack.

Quoted 9 lines

In other words, net/ipv6/ip6_offload.o is part of vmlinux, regardless of CONFIG_IPV6.

Cc Leon Romanovsky <[email protected]>
---
 net/ipv4/af_inet.c | 3 ---
 1 file changed, 3 deletions(-)

Thanks,

#2 lore raw
In reply to Eric Dumazet
This patch was applied to netdev/net-next.git (refs/heads/master):

Hello:

This patch was applied to netdev/net-next.git (refs/heads/master):

Quoted 9 lines · On Tue, 2 Feb 2021 07:41:45 -0800 you wrote:

From: Eric Dumazet <[email protected]>

inet_gro_receive() and inet_gro_complete() are part of GRO engine which can not be modular.

Similarly, inet_gso_segment() does not need to be exported, being part of GSO stack.

[...]

Here is the summary with links:
- [net-next] inet: do not export inet_gro_{receive|complete}

    https://git.kernel.org/netdev/net-next/c/fca23f37f3a7

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html