[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CADxym3YEdO8zGhUsd7S=kh+nfCsTYbK1guOYYbMSdswubNZQaw@mail.gmail.com>
Date: Fri, 18 Feb 2022 10:28:18 +0800
From: Menglong Dong <menglong8.dong@...il.com>
To: Steven Rostedt <rostedt@...dmis.org>
Cc: Jakub Kicinski <kuba@...nel.org>, David Ahern <dsahern@...nel.org>,
Eric Dumazet <edumazet@...gle.com>,
David Miller <davem@...emloft.net>,
Ingo Molnar <mingo@...hat.com>,
Hideaki YOSHIFUJI <yoshfuji@...ux-ipv6.org>,
Alexei Starovoitov <ast@...nel.org>,
Daniel Borkmann <daniel@...earbox.net>,
Jesper Dangaard Brouer <hawk@...nel.org>,
John Fastabend <john.fastabend@...il.com>,
Menglong Dong <imagedong@...cent.com>,
Talal Ahmad <talalahmad@...gle.com>,
Kees Cook <keescook@...omium.org>,
Ilias Apalodimas <ilias.apalodimas@...aro.org>,
Alexander Lobakin <alobakin@...me>,
Kumar Kartikeya Dwivedi <memxor@...il.com>,
Antoine Tenart <atenart@...nel.org>,
Sebastian Andrzej Siewior <bigeasy@...utronix.de>,
Paolo Abeni <pabeni@...hat.com>,
Yunsheng Lin <linyunsheng@...wei.com>,
Arnd Bergmann <arnd@...db.de>,
Yajun Deng <yajun.deng@...ux.dev>,
Roopa Prabhu <roopa@...dia.com>,
Willem de Bruijn <willemb@...gle.com>,
Vasily Averin <vvs@...tuozzo.com>,
Cong Wang <cong.wang@...edance.com>,
Luiz Augusto von Dentz <luiz.von.dentz@...el.com>,
LKML <linux-kernel@...r.kernel.org>,
netdev <netdev@...r.kernel.org>, bpf <bpf@...r.kernel.org>,
flyingpeng@...cent.com
Subject: Re: [PATCH net-next 1/9] net: tcp: introduce tcp_drop_reason()
On Thu, Feb 17, 2022 at 12:50 AM Steven Rostedt <rostedt@...dmis.org> wrote:
>
> On Wed, 16 Feb 2022 07:58:21 -0800
> Jakub Kicinski <kuba@...nel.org> wrote:
>
> > On Wed, 16 Feb 2022 11:54:18 +0800 menglong8.dong@...il.com wrote:
> > > +static inline void tcp_drop(struct sock *sk, struct sk_buff *skb)
> > > +{
> > > + tcp_drop_reason(sk, skb, SKB_DROP_REASON_NOT_SPECIFIED);
> > > }
> >
> > Please make this non-inline. The compiler will inline it anyway, and
> > if it's a static inline compiler will not warn us that it should be
> > removed once all callers are gone.
>
> I guess that's no longer true for C files.
>
> https://lore.kernel.org/all/202202132037.4aN017dU-lkp@intel.com/
>
Ok, seems we can keep this inline still.
> -- Steve
Powered by blists - more mailing lists