]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
net: remove '__' from __skb_flow_get_ports()
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Fri, 21 Feb 2025 11:07:29 +0000 (12:07 +0100)
committerJakub Kicinski <kuba@kernel.org>
Mon, 24 Feb 2025 22:27:53 +0000 (14:27 -0800)
Only one version of skb_flow_get_ports() exists after the previous commit,
so let's remove the useless '__'.

Suggested-by: Simon Horman <horms@kernel.org>
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Link: https://patch.msgid.link/20250221110941.2041629-3-nicolas.dichtel@6wind.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/bonding/bond_main.c
include/linux/skbuff.h
net/core/flow_dissector.c

index f6d0628a36d9f283bc98e4a75b46fc4ad8c54b35..7d716e90a84c3b0f4dcbe50e0b355792fb500bbd 100644 (file)
@@ -4214,7 +4214,7 @@ static bool bond_flow_ip(struct sk_buff *skb, struct flow_keys *fk, const void *
        }
 
        if (l34 && *ip_proto >= 0)
-               fk->ports.ports = __skb_flow_get_ports(skb, *nhoff, *ip_proto, data, hlen);
+               fk->ports.ports = skb_flow_get_ports(skb, *nhoff, *ip_proto, data, hlen);
 
        return true;
 }
index 21644e9215e41e7dbdeefe5e325aad65f7943bc3..f2bb8473d99a57e341366c6cbbd6a1e2d03881ca 100644 (file)
@@ -1533,8 +1533,8 @@ void __skb_get_hash_net(const struct net *net, struct sk_buff *skb);
 u32 skb_get_poff(const struct sk_buff *skb);
 u32 __skb_get_poff(const struct sk_buff *skb, const void *data,
                   const struct flow_keys_basic *keys, int hlen);
-__be32 __skb_flow_get_ports(const struct sk_buff *skb, int thoff, u8 ip_proto,
-                           const void *data, int hlen_proto);
+__be32 skb_flow_get_ports(const struct sk_buff *skb, int thoff, u8 ip_proto,
+                         const void *data, int hlen_proto);
 
 void skb_flow_dissector_init(struct flow_dissector *flow_dissector,
                             const struct flow_dissector_key *key,
index 9cd8de6bebb543c3d672f576e03b29aa86b9d34a..1b61bb25ba0e5b2d3b44a53d449f493143dce0e1 100644 (file)
@@ -106,7 +106,7 @@ int flow_dissector_bpf_prog_attach_check(struct net *net,
 #endif /* CONFIG_BPF_SYSCALL */
 
 /**
- * __skb_flow_get_ports - extract the upper layer ports and return them
+ * skb_flow_get_ports - extract the upper layer ports and return them
  * @skb: sk_buff to extract the ports from
  * @thoff: transport header offset
  * @ip_proto: protocol for which to get port offset
@@ -116,8 +116,8 @@ int flow_dissector_bpf_prog_attach_check(struct net *net,
  * The function will try to retrieve the ports at offset thoff + poff where poff
  * is the protocol port offset returned from proto_ports_offset
  */
-__be32 __skb_flow_get_ports(const struct sk_buff *skb, int thoff, u8 ip_proto,
-                           const void *data, int hlen)
+__be32 skb_flow_get_ports(const struct sk_buff *skb, int thoff, u8 ip_proto,
+                         const void *data, int hlen)
 {
        int poff = proto_ports_offset(ip_proto);
 
@@ -137,7 +137,7 @@ __be32 __skb_flow_get_ports(const struct sk_buff *skb, int thoff, u8 ip_proto,
 
        return 0;
 }
-EXPORT_SYMBOL(__skb_flow_get_ports);
+EXPORT_SYMBOL(skb_flow_get_ports);
 
 static bool icmp_has_id(u8 type)
 {
@@ -870,7 +870,7 @@ __skb_flow_dissect_ports(const struct sk_buff *skb,
        if (!key_ports && !key_ports_range)
                return;
 
-       ports = __skb_flow_get_ports(skb, nhoff, ip_proto, data, hlen);
+       ports = skb_flow_get_ports(skb, nhoff, ip_proto, data, hlen);
 
        if (key_ports)
                key_ports->ports = ports;