summaryrefslogtreecommitdiffstats
path: root/include/net/dst.h
diff options
context:
space:
mode:
authorHangbin Liu <liuhangbin@gmail.com>2019-12-22 10:51:12 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-01-04 14:00:16 +0100
commitb560914e473a716533af3c24f578351558d40e4c (patch)
tree5334353a1c9b68b2fe8db0e7170368bce8fd7040 /include/net/dst.h
parent58df598b278e63b1f1d8995676c78c3e46800f62 (diff)
downloadlinux-stable-b560914e473a716533af3c24f578351558d40e4c.tar.gz
linux-stable-b560914e473a716533af3c24f578351558d40e4c.tar.bz2
linux-stable-b560914e473a716533af3c24f578351558d40e4c.zip
net/dst: add new function skb_dst_update_pmtu_no_confirm
[ Upstream commit 07dc35c6e3cc3c001915d05f5bf21f80a39a0970 ] Add a new function skb_dst_update_pmtu_no_confirm() for callers who need update pmtu but should not do neighbor confirm. v5: No change. v4: No change. v3: Do not remove dst_confirm_neigh, but add a new bool parameter in dst_ops.update_pmtu to control whether we should do neighbor confirm. Also split the big patch to small ones for each area. v2: Remove dst_confirm_neigh in __ip6_rt_update_pmtu. Reviewed-by: Guillaume Nault <gnault@redhat.com> Acked-by: David Ahern <dsahern@gmail.com> Signed-off-by: Hangbin Liu <liuhangbin@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/net/dst.h')
-rw-r--r--include/net/dst.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/net/dst.h b/include/net/dst.h
index 0e249f48f080..5ebc7356a381 100644
--- a/include/net/dst.h
+++ b/include/net/dst.h
@@ -531,4 +531,13 @@ static inline void skb_dst_update_pmtu(struct sk_buff *skb, u32 mtu)
dst->ops->update_pmtu(dst, NULL, skb, mtu, true);
}
+/* update dst pmtu but not do neighbor confirm */
+static inline void skb_dst_update_pmtu_no_confirm(struct sk_buff *skb, u32 mtu)
+{
+ struct dst_entry *dst = skb_dst(skb);
+
+ if (dst && dst->ops->update_pmtu)
+ dst->ops->update_pmtu(dst, NULL, skb, mtu, false);
+}
+
#endif /* _NET_DST_H */