net: provide stubs for ip6_set_txhash and ip6_make_flowlabel
[deliverable/linux.git] / include / net / ipv6.h
index 4308f2ada8b34ec8a5b83bbd7a73b6ade15092cb..b9ac2357e7dbc6b7b88497bb18bbe2748f087978 100644 (file)
@@ -685,6 +685,7 @@ static inline int ip6_sk_dst_hoplimit(struct ipv6_pinfo *np, struct flowi6 *fl6,
        return hlimit;
 }
 
+#if IS_ENABLED(CONFIG_IPV6)
 static inline void ip6_set_txhash(struct sock *sk)
 {
        struct inet_sock *inet = inet_sk(sk);
@@ -718,6 +719,15 @@ static inline __be32 ip6_make_flowlabel(struct net *net, struct sk_buff *skb,
 
        return flowlabel;
 }
+#else
+static inline void ip6_set_txhash(struct sock *sk) { }
+static inline __be32 ip6_make_flowlabel(struct net *net, struct sk_buff *skb,
+                                       __be32 flowlabel, bool autolabel)
+{
+       return flowlabel;
+}
+#endif
+
 
 /*
  *     Header manipulation
This page took 0.024636 seconds and 5 git commands to generate.