Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2403464ybi; Mon, 17 Jun 2019 04:19:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqyHIch9OHhg4fYeHHJVEchE7Qa2hxTsK95wLdxSFoWJJrxUsxai2QiJK/0ZSt50ZYClCtLY X-Received: by 2002:a17:902:848b:: with SMTP id c11mr84868558plo.217.1560770377267; Mon, 17 Jun 2019 04:19:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560770377; cv=none; d=google.com; s=arc-20160816; b=oLmxNZRlLmO9+nhKa5GCXTPgaDWNl+1KXO3DnQggZpf9doVxk6cdfC9D1IrcebXKDI URwSlq8sxqE4STGlLMA9y3tvAENogciYxjBKJQGGYhM/M38YyZSkXsvExP4Kg5ymGda0 IqsNbj1a+REHvtMh49Yq+wQzA4J4YcrgTSgfWHRAswsm4Zbd/qnlad86nfgZAXctAuRT beJ4QrSXs3HU4zubesPXcEaK8RTcGzZA+y51RuknNyAI15lN5OnleR1/Yo4lKFrzAdJi rkCMA6mcrj3xAT2S/9yAVNCW/UiYngN1fr+kZVLEAhovErKKfoQJibxbVTZDkakEwEck +abQ== 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 :message-id:date:references:in-reply-to:subject:cc:to:from; bh=+fdZLFIhaJS7KikTdygI2BOf6t7BlZie//NOOBpG3KA=; b=W25jfFu1TUxWiUv2pImWPrw2h0QukVp/JtU355VMcfKI/+RK6I5CT2KvmJ8eOhiNKo fr04fMph+h5cx3OGy5noy0EtQo5vKH+3xWHowpNmlFtK7Rc8zUL3TMfj5jFrUY10h8Yf Evntk5x8RKjJLaoXORVvlKtkpx/u0AvfX5HloPypOH91zwZkTk0b8XAYg8xgzErH18kE HKfG7TTnGbeoKZOFLBz0ByBt5Yox/UPdHIKkJam+4kNMOj0JfT+pX+NoJzMA/VP4vQfl rzvjmtH74Wmne/grWpsyLz8TRYMVlUETp5CRHhDnfuPMLeglKsdvp/ja490wUzNcHPNu uZxQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q187si7025700pga.220.2019.06.17.04.19.19; Mon, 17 Jun 2019 04:19:37 -0700 (PDT) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727665AbfFQLSA convert rfc822-to-8bit (ORCPT + 99 others); Mon, 17 Jun 2019 07:18:00 -0400 Received: from mail-ed1-f67.google.com ([209.85.208.67]:41411 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727599AbfFQLR7 (ORCPT ); Mon, 17 Jun 2019 07:17:59 -0400 Received: by mail-ed1-f67.google.com with SMTP id p15so15590796eds.8 for ; Mon, 17 Jun 2019 04:17:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=V6M79Bvlfn3Y/3r6Oi9ctX8EPoRwXSGOlJOMMHDPmWM=; b=UC7X7sENrmKdswVCZGKAll6+p4UULLTQvmfFZ8yW00cmue+idcY7qwKR72G49XFDqc n1Nj6huWCdCh7o58NBdMvOCPgP/pQ6geJ/EB3icgSepWjzL7YPB6se5LimzQUbVCwydP VCs4nvNMy5MHr9Si3REwglZYTJLEIssSJNzdE03QM7Eh5wBJ912LetqNo8av68ZX2pG6 1GfHZNEvg+8nyPtPTpoKyFUtA2qhXK26lfs6IOnVJPNZJ/I/euPfw0bWS6bKOH3Yxl5q FPM9jiHqH759pqHoVwSL+wr6760g69lREA8CPMQxHZ+ReWjqu8McagjxTm+02HunQ6h6 fdQg== X-Gm-Message-State: APjAAAXbn2CoB2qEuV/u6i8g4akccWnm3hUWpSP3FHmkHMj+KGzo0+fo TNMkSc2N+C+2vWd+RajjhrZKIg== X-Received: by 2002:a17:906:6a45:: with SMTP id n5mr42843163ejs.61.1560770277849; Mon, 17 Jun 2019 04:17:57 -0700 (PDT) Received: from alrua-x1.borgediget.toke.dk ([2a00:7660:6da:443::2]) by smtp.gmail.com with ESMTPSA id f3sm2149878ejo.90.2019.06.17.04.17.57 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 17 Jun 2019 04:17:57 -0700 (PDT) Received: by alrua-x1.borgediget.toke.dk (Postfix, from userid 1000) id BEA4C1804AF; Mon, 17 Jun 2019 13:17:56 +0200 (CEST) From: Toke =?utf-8?Q?H=C3=B8iland-J=C3=B8rgensen?= To: Anton Protopopov , Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , Yonghong Song , "David S. Miller" , netdev@vger.kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Anton Protopopov Subject: Re: [PATCH bpf] bpf: fix the check that forwarding is enabled in bpf_ipv6_fib_lookup In-Reply-To: <20190615225348.2539-1-a.s.protopopov@gmail.com> References: <20190615225348.2539-1-a.s.protopopov@gmail.com> X-Clacks-Overhead: GNU Terry Pratchett Date: Mon, 17 Jun 2019 13:17:56 +0200 Message-ID: <877e9ka2aj.fsf@toke.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Anton Protopopov writes: > The bpf_ipv6_fib_lookup function should return BPF_FIB_LKUP_RET_FWD_DISABLED > when forwarding is disabled for the input device. However instead of checking > if forwarding is enabled on the input device, it checked the global > net->ipv6.devconf_all->forwarding flag. Change it to behave as expected. > > Signed-off-by: Anton Protopopov Thanks! Acked-by: Toke Høiland-Jørgensen