Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp573391pxb; Tue, 15 Feb 2022 22:31:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJylQIP6C1f2wmbbJngMl+eBdjgMjmJUU8ntA+I9phdPEoNgt2PBsKZ73z1+uHhXIOj5B/sc X-Received: by 2002:a65:6941:0:b0:372:b6bc:4328 with SMTP id w1-20020a656941000000b00372b6bc4328mr1137552pgq.106.1644993070413; Tue, 15 Feb 2022 22:31:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644993070; cv=none; d=google.com; s=arc-20160816; b=y4BdlueC2CZrWfPUcFqXLBZMP5gCbF+IOSECNHDAvsF4kb/oyPDV2i7aO4mFhPnAxA jlZW44+AJ3tzyUN/xsJEyDb9jQmF33hBlgqkfq0F4KiSABLhwG7l/UwUkYOYZ4hLIVUe HfN6/qqeV4AYWy5UD6MZXyihKB3Qwis0qj5Hkn2QFxsgYsiINb5GVtIRGOewjQwYd4Rm SXB/RvsMQVbAr4aJG5MVQtmtMUIpAyEhmiGIyG6SQJQoe9ao4fUWEoXIMMLwInCyi017 SD8+Pjw11MXcMPrEoC67XUM6PrjtRl61WX6x3obyxgAu2HYz5ZwMvsUtaF5v9TMqL3Jb 5uIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=dDDOlmNFqQPUtIJmBHCY2QIaiUjiyb0ZsTU/D8n9slY=; b=KmvFfQ2+NU/S3Q4pF6tNWwVWn9wJUKzO6Tv67lk8VPNtWWZoZVrCnlgYNmyseP2Qeq G9yiqUe4thW86qaewQT/bMc+nMfoKPuDIW47uk7t/JE9iwFMfWeaaB/a3CUaAIP6NVGM IBEhNwuMRLy3a3cBksHUN+5Y54ULRWlW2A4pVojjw75s0PPb2qtKOPIvbM4E/876DWMP Adrqywm+Y9tZKlBrTl4DFSoYXwRyEpq/peK+hDFdVHFRcR7UGFB0h5iOeEF3Qq+a6gWR C9z/ExUh5rJKQrlfKCcvzwGbK9+DOvTR9fyhCKi/0SzwSD7LUj7EprYoJpjSMNbDkFSm tvaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=QgZm8Hhx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id pj14si6849609pjb.63.2022.02.15.22.31.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Feb 2022 22:31:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=QgZm8Hhx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5493F1D04A0; Tue, 15 Feb 2022 22:25:05 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243717AbiBOWFe (ORCPT + 99 others); Tue, 15 Feb 2022 17:05:34 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:38724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235480AbiBOWFc (ORCPT ); Tue, 15 Feb 2022 17:05:32 -0500 Received: from mail-pg1-x52c.google.com (mail-pg1-x52c.google.com [IPv6:2607:f8b0:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B156A1EEC0; Tue, 15 Feb 2022 14:05:21 -0800 (PST) Received: by mail-pg1-x52c.google.com with SMTP id r76so210090pgr.10; Tue, 15 Feb 2022 14:05:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=dDDOlmNFqQPUtIJmBHCY2QIaiUjiyb0ZsTU/D8n9slY=; b=QgZm8HhxITQBrEAP5EACOx4w9cYA2N4hu6QUDNkbuZo9+lcrR6l/odPwCEmGQfaewk vSqGM2hc3aTL0eYiYv9R3qDKAufy1qJ1Xuy5A6gs6HyhWfqxcYAPJR9+qunREaFBQzJV DUC/UkAqhfhF+HHi4E0Asx4OjVhgm2LRtPBrkWMvQpKecjZQB5yFEOuEY/w1toEone79 bHKIfyI4PCf1m9WeTNweKwiD6pm3pPmYz+JKRtKk432Fxo1Mp1p7M72ZyvKeA0kaFAvA HkgEzGFT7Mb+MAulIRyEBwDxyGO9vRm605HdXR9qvfuLPZkzQEf8H9kLvVJZGaiVzbPI MYSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=dDDOlmNFqQPUtIJmBHCY2QIaiUjiyb0ZsTU/D8n9slY=; b=yfpxdKiSdJFLnY/Dh85R3yj/1uO2LWTgzwhFE4RT4sDU4HkJ4Ru+IAkGGZUStr4wLl wQ3J3aEIeDgJCie5xjVusSlRIMrL1eYEuCdYG0HR45k/Ck0VmyBXHJCc1w29lWmREOWc D+pnDwQ62cK4l9tnG1Lp3yJ53iQvWbpcxhrnGXSZJFYQ47ZTLodlbrOufn3kUA5zTCNd NZraxjFIvRo2NNN7KH2ZRxv/MOX8tdyrqREvyONTlz9vh3wtRc2tAWjF9yrUImmlxjYs nh5d0wwhD973ouy2ny5k9hQbqVFpJ7aiqz9wb4KfznVcEpIXotoxb+YB54SJJIEF98GJ bWng== X-Gm-Message-State: AOAM5334/zmUifjKtDgLTEQC+mA+0EhTo1rlAmnC720Av8W3XQsmvbSU vOsPp/XqC/f75WC/WNy4A7Q= X-Received: by 2002:a63:6cc1:: with SMTP id h184mr814216pgc.276.1644962721196; Tue, 15 Feb 2022 14:05:21 -0800 (PST) Received: from jeffreyji1.c.googlers.com.com (180.145.227.35.bc.googleusercontent.com. [35.227.145.180]) by smtp.gmail.com with ESMTPSA id om2sm3630952pjb.39.2022.02.15.14.05.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Feb 2022 14:05:20 -0800 (PST) From: Jeffrey Ji X-Google-Original-From: Jeffrey Ji To: Eric Dumazet , "David S . Miller" Cc: Brian Vazquez , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Jakub Kicinski , Mahesh Bandewar , jeffreyji Subject: [PATCH v1 net-next] teaming: deliver link-local packets with the link they arrive on Date: Tue, 15 Feb 2022 22:05:17 +0000 Message-Id: <20220215220517.2498751-1-jeffreyji@google.com> X-Mailer: git-send-email 2.35.1.265.g69c8d7142f-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: jeffreyji skb is ignored if team port is disabled. We want the skb to be delivered if it's an LLDP packet. Issue is already fixed for bonding in commit b89f04c61efe3b7756434d693b9203cc0cce002e Signed-off-by: jeffreyji --- drivers/net/team/team.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/team/team.c b/drivers/net/team/team.c index 8b2adc56b92a..24d66dfbb2e1 100644 --- a/drivers/net/team/team.c +++ b/drivers/net/team/team.c @@ -734,6 +734,12 @@ static rx_handler_result_t team_handle_frame(struct sk_buff **pskb) port = team_port_get_rcu(skb->dev); team = port->team; if (!team_port_enabled(port)) { + if (is_link_local_ether_addr(eth_hdr(skb)->h_dest)) + /* + * link-local packets are mostly useful when stack + * receives them with the link they arrive on. + */ + return RX_HANDLER_PASS; /* allow exact match delivery for disabled ports */ res = RX_HANDLER_EXACT; } else { -- 2.35.1.265.g69c8d7142f-goog