Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2953278pxb; Sun, 28 Feb 2021 19:51:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJxGnnQUZiG4pMcs93svngiSTTq14JFlfpEHeAxooNJONTVX8DBc0AwPdN7pJuzJBWj5/GY7 X-Received: by 2002:a05:6402:b48:: with SMTP id bx8mr3642991edb.162.1614570713877; Sun, 28 Feb 2021 19:51:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614570713; cv=none; d=google.com; s=arc-20160816; b=0c6jReHmDDJHjIqetLC11Fwpcxltpj3fSSZ1t5bVP5yVOMVdrOjW5FSGDCWFeq9CAd 7qDbnoC0cWe+I869XF3TTJ4PXj5TpeJTcAIkFOJQFuvS6oXXyYgudtR7LfamYtIIwUR+ pjptR+earSwWpLXKXYcg6DmI+BAdO5EQOGSSW+ejwG6NK3Ryd8wEF92//xX33LBREu3g wbxn9RFKYBmqTWzXKoWGK6vN4ubszfu7i9nfYEGlC6wznalz50UIaJkZvVhSP8G7uU8v cJprawL9ZfdeGAI9fnLLjojWqzqtxLb8a8KwXGgeLwzlKfe4FueQYg3QTDXX5OCqhjPX UryQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=PlTjljidtcPwBJ9+CnXDxJyG1uC+fzpkw+sBbHIDMgQ=; b=dF/ynD/ss5eH55qZrkhurNsbUN+EoaSCrcEb/az6Y4CctQad3Eq1v4hY+E0vzpjL5s HCkv728O6cG4KJZjytWIyFD1bl6176FiZmSY3x6V0HT0yQ/PXhUZ3x+picHBak9UwUg0 oKXW+hoPK69V09xXFQm4hqfI0h1+bsUg3zhlyG22OcHZXGtsmUmAkulQOoGo77jol0AY UeHYqmqJ+qouNRQkVJcfM4igcnO+AnTwfEv75xEqF6NS8xSfo4MA5nmEhflsCZC2PGu1 +lxamKXYDRLFDXu+lEDfjKKcEwtUlEyHK8whXBpVO5y3GTnRcVUq9xUc8wWcnt9IVeEY JX+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=A+RC368g; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id co27si9246661edb.376.2021.02.28.19.51.32; Sun, 28 Feb 2021 19:51:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=A+RC368g; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231405AbhCADVW (ORCPT + 99 others); Sun, 28 Feb 2021 22:21:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37322 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231312AbhCADVV (ORCPT ); Sun, 28 Feb 2021 22:21:21 -0500 Received: from mail-oo1-xc2d.google.com (mail-oo1-xc2d.google.com [IPv6:2607:f8b0:4864:20::c2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A67AC06174A; Sun, 28 Feb 2021 19:20:41 -0800 (PST) Received: by mail-oo1-xc2d.google.com with SMTP id l11so1438104oov.13; Sun, 28 Feb 2021 19:20:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=PlTjljidtcPwBJ9+CnXDxJyG1uC+fzpkw+sBbHIDMgQ=; b=A+RC368gaPStHiqC1WO8QboEhnPwEzoejk9JLYmx6Th2R88d6u1snEBdsos3eo9WrJ wR6e4JHUHs1Jt5+BeN1y6+Gan2MOM4nC/JhgeI46d0TIl4i3UQ2ZR1mGTYHtsP7ft97h WNOwdUeoJzAZPPEMfOXMvsu5bzqRUNkuaISahloMzAUokctyk1b7KojI4e//nRIllZ+3 SGH6MSlV6jqgsvWK+RauSklRAqFT2D5grQHfU7X0Y46qGylKY53oBL76rjiCrEyiGXP2 JB04RdyzJ39BPewF/L5ReLmiIPzro07GDmZ1nJfGg3yJqsP8+ADdtCMe55JUuJZ1yTKi pEIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=PlTjljidtcPwBJ9+CnXDxJyG1uC+fzpkw+sBbHIDMgQ=; b=Z3wrWq3Lhb34pp5vrc3NsyNPdnlR7UAEIoSch48NtOE1BCUuOUaENZksfxoHGXN7IL wK1jdDRTFEvrhfRQ8eKi2dbcs08/CLwZwnbKBWyg4srvxQuTUa8TtozKrs3ywYu67G4P S20/L3/ZTpsG9TK12nTWxOiJfbXFQFCGq33TIJJ1+BuoteimEy+nWFMzeWmR9QjvwCR6 FrMkV0Z5jgDSLA9g9CQ/4D/LPKlloO+zmyhQmsG1ZA4Kvd39vooPwsQiExdXldxXvVh3 ofaeQtVLJ1Ap1MUUuMWkkCqKJwHSnRq/kzPm0A7O0E8OBWXXS5/fsjt3pFCZM3Vc9x43 VShg== X-Gm-Message-State: AOAM530bNek4CN4lIwPTkPzV9u1qffckex+hDZBlI8krCAXvQgCUYfiM z2J6S3mX7wUYylG1WsLKZMxi6/O4Pns= X-Received: by 2002:a4a:d88a:: with SMTP id b10mr10899327oov.29.1614568840758; Sun, 28 Feb 2021 19:20:40 -0800 (PST) Received: from Davids-MacBook-Pro.local ([8.48.134.40]) by smtp.googlemail.com with ESMTPSA id 109sm3366597otj.8.2021.02.28.19.20.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 28 Feb 2021 19:20:39 -0800 (PST) Subject: Re: [PATCH] net:ipv4: Packet is not forwarded if bc_forwarding not configured on ingress interface To: Henry Shen , davem@davemloft.net Cc: yoshfuji@linux-ipv6.org, dsahern@kernel.org, kuba@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, chris.packham@alliedtelesis.co.nz References: <20210301005318.8959-1-henry.shen@alliedtelesis.co.nz> <20210301005318.8959-2-henry.shen@alliedtelesis.co.nz> From: David Ahern Message-ID: <32dc320d-abb0-475d-ca94-bac3bd26f825@gmail.com> Date: Sun, 28 Feb 2021 20:20:38 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.16; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: <20210301005318.8959-2-henry.shen@alliedtelesis.co.nz> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/28/21 5:53 PM, Henry Shen wrote: > When an IPv4 packet with a destination address of broadcast is received > on an ingress interface, it will not be forwarded out of the egress > interface if the ingress interface is not configured with bc_forwarding > but the egress interface is. If both the ingress and egress interfaces > are configured with bc_forwarding, the packet can be forwarded > successfully. > > This patch is to be inline with Cisco's implementation that packet can be > forwarded if ingress interface is NOT configured with bc_forwarding, > but egress interface is. > In Linux, forwarding decisions are made based on the ingress device, not the egress device.