Patch "net/dst: add new function skb_dst_update_pmtu_no_confirm" has been added to the 4.14-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    net/dst: add new function skb_dst_update_pmtu_no_confirm

to the 4.14-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     net-dst-add-new-function-skb_dst_update_pmtu_no_confirm.patch
and it can be found in the queue-4.14 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.


>From foo@baz Thu 02 Jan 2020 11:13:41 AM CET
From: Hangbin Liu <liuhangbin@xxxxxxxxx>
Date: Sun, 22 Dec 2019 10:51:12 +0800
Subject: net/dst: add new function skb_dst_update_pmtu_no_confirm

From: Hangbin Liu <liuhangbin@xxxxxxxxx>

[ 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@xxxxxxxxxx>
Acked-by: David Ahern <dsahern@xxxxxxxxx>
Signed-off-by: Hangbin Liu <liuhangbin@xxxxxxxxx>
Signed-off-by: David S. Miller <davem@xxxxxxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
---
 include/net/dst.h |    9 +++++++++
 1 file changed, 9 insertions(+)

--- a/include/net/dst.h
+++ b/include/net/dst.h
@@ -531,4 +531,13 @@ static inline void skb_dst_update_pmtu(s
 		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 */


Patches currently in stable-queue which might be from liuhangbin@xxxxxxxxx are

queue-4.14/sit-do-not-confirm-neighbor-when-do-pmtu-update.patch
queue-4.14/net-dst-add-new-function-skb_dst_update_pmtu_no_confirm.patch
queue-4.14/vti-do-not-confirm-neighbor-when-do-pmtu-update.patch
queue-4.14/gtp-do-not-confirm-neighbor-when-do-pmtu-update.patch
queue-4.14/ip6_gre-do-not-confirm-neighbor-when-do-pmtu-update.patch
queue-4.14/net-add-bool-confirm_neigh-parameter-for-dst_ops.update_pmtu.patch
queue-4.14/tunnel-do-not-confirm-neighbor-when-do-pmtu-update.patch



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux