From mboxrd@z Thu Jan 1 00:00:00 1970 From: Saeed Mahameed Subject: Re: [Patch net] mlx5: check for malformed packets Date: Tue, 4 Dec 2018 11:28:30 -0800 Message-ID: References: <20181201203837.3306-1-xiyou.wangcong@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Cc: Linux Netdev List , Tariq Toukan , Saeed Mahameed To: Cong Wang Return-path: Received: from mail-lf1-f68.google.com ([209.85.167.68]:44497 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725831AbeLDT2p (ORCPT ); Tue, 4 Dec 2018 14:28:45 -0500 Received: by mail-lf1-f68.google.com with SMTP id z13so12836714lfe.11 for ; Tue, 04 Dec 2018 11:28:44 -0800 (PST) In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: On Mon, Dec 3, 2018 at 10:39 AM Cong Wang wrote: > > On Sat, Dec 1, 2018 at 12:38 PM Cong Wang wrote: > > > > is_last_ethertype_ip() is used to check IP/IPv6 protocol before > > parsing IP/IPv6 headers. > > One thing I noticed while reviewing the assembly code is that > is_last_ethertype_ip() is no longer inlined after this patch. > > I think I should keep it inlined by using __always_inline, as it is on > a hot path. > > What do you think, Tariq? We are against having inline keywords in c file, so better if you move this function to a header file an force the inline keyword there.