Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp2842196ybc; Wed, 20 Nov 2019 22:22:51 -0800 (PST) X-Google-Smtp-Source: APXvYqxKmzpIBzGhSSiJLXlsjN5+b5yoOuj73a6q6UiHxxrkpUiEXlTSooTfuayRXq6MRnwqT0TQ X-Received: by 2002:a17:906:3495:: with SMTP id g21mr11619868ejb.190.1574317371151; Wed, 20 Nov 2019 22:22:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574317371; cv=none; d=google.com; s=arc-20160816; b=ZrIy+EWqVvQCajFwUb49nZZ9iL0oCw2GkCFip8xwi+nx4qLr5tvcvYNIJyPcOqj8N2 lVabWQ+NHpQGaMw94MfgPEFcsvGYqeSGs+NpLQMHOyRtrOO7OpVHC87ZfYGJwJUgwUYT AuB/WXD/dlDn2RucyXQDizDSprj32JAUuKEs2hTTe2bLAH6LsXqpjitWGAqiRx3VpSrf e1t2Z7z0+aTyUhJsDI2PTLkz+w4xadenisPSluGfon94ZPZ3hk5NqLoXJ5WjOZrNzAAS f0ZWQdl4WjqWaRgAxgqwaopUy2rdL6WT8E3Z4N+aEf+DZDs0VFxOWtEtXnXqXiQ7PVvu W8VA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=wxiq57bWKoJDYgT7FMbIaiEc/ApLlscylqTC3uUZoz4=; b=wlwSDT1s8xji7/6B2e/WvJPmUON2Fn/gUQw9wEBPfE1hjqEfOZ0049EsifWyf0YkV+ G8NsgaCJ387zxMyymVQQSYmgFGHVsO7F/z58cNBnx68heeWgd32jUBEV5CCjG+Pk0HRa Ayfg7C4aQUPl7d3RLpKZrgcB/WSusrdoLWizarB5AymqsovCaNSD3ok5C96CBOF691ef B99FpGwdykP6yUWAO9GWSMB13u/7qCni3pcJ83A3aVkCmuJY8XOQ2WCHCHZo+U9UzcvQ q2WhnNDWWM2ctNWq0FaNP+5V7NPCH73Ffx5D+jS0PS0LNA8rgaJ3cEjAJhhR5pdwDID+ EGow== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p3si1446518edj.395.2019.11.20.22.22.26; Wed, 20 Nov 2019 22:22:51 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726634AbfKUGU7 (ORCPT + 99 others); Thu, 21 Nov 2019 01:20:59 -0500 Received: from shards.monkeyblade.net ([23.128.96.9]:37110 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726132AbfKUGU6 (ORCPT ); Thu, 21 Nov 2019 01:20:58 -0500 Received: from localhost (unknown [IPv6:2601:601:9f00:1e2::3d5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 0B20B14DDE4E5; Wed, 20 Nov 2019 22:20:57 -0800 (PST) Date: Wed, 20 Nov 2019 22:20:57 -0800 (PST) Message-Id: <20191120.222057.2167261859714910483.davem@davemloft.net> To: andrea.mayer@uniroma2.it Cc: sergei.shtylyov@cogentembedded.com, kuznet@ms2.inr.ac.ru, yoshfuji@linux-ipv6.org, dav.lebrun@gmail.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [net-next, v2] seg6: allow local packet processing for SRv6 End.DT6 behavior From: David Miller In-Reply-To: <20191118222558.2973-1-andrea.mayer@uniroma2.it> References: <20191118222558.2973-1-andrea.mayer@uniroma2.it> X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Wed, 20 Nov 2019 22:20:58 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Andrea Mayer Date: Mon, 18 Nov 2019 23:25:58 +0100 > @@ -199,6 +207,12 @@ int seg6_lookup_nexthop(struct sk_buff *skb, struct in6_addr *nhaddr, > return dst->error; > } > > +inline int seg6_lookup_nexthop(struct sk_buff *skb, > + struct in6_addr *nhaddr, u32 tbl_id) Do not use the inline keyword in foo.c files, let the compiler decide.