From: David Ahern Subject: Re: [PATCH net] net: don't call update_pmtu unconditionally Date: Thu, 25 Jan 2018 11:08:54 -0700 Message-ID: <088bdcd5-f6d7-bd7b-03ae-e70ad381bff5@gmail.com> References: <20180125.112547.1937601270494977117.davem@davemloft.net> <20180125180303.17532-1-nicolas.dichtel@6wind.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, code@rkapl.cz, lucien.xin@gmail.com, jbenc@redhat.com, pablo@netfilter.org, edumazet@google.com, tgraf@suug.ch To: Nicolas Dichtel , davem@davemloft.net Return-path: Received: from mail-pf0-f195.google.com ([209.85.192.195]:33330 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751169AbeAYSI4 (ORCPT ); Thu, 25 Jan 2018 13:08:56 -0500 Received: by mail-pf0-f195.google.com with SMTP id t5so6351961pfi.0 for ; Thu, 25 Jan 2018 10:08:56 -0800 (PST) In-Reply-To: <20180125180303.17532-1-nicolas.dichtel@6wind.com> Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: On 1/25/18 11:03 AM, Nicolas Dichtel wrote: > diff --git a/include/net/dst.h b/include/net/dst.h > index b091fd536098..6216edb58393 100644 > --- a/include/net/dst.h > +++ b/include/net/dst.h > @@ -521,4 +521,12 @@ static inline struct xfrm_state *dst_xfrm(const struct dst_entry *dst) > } > #endif > > +static inline void skb_dst_update_pmtu(struct sk_buff *skb, u32 mtu) > +{ > + struct dst_entry *dst = skb_dst(skb); > + > + if (dst && dst->ops->update_pmtu) > + skb_dst(skb)->ops->update_pmtu(dst, NULL, skb, mtu); in that last line, s/skb_dst(skb)/dst/