Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp773364pxb; Thu, 17 Feb 2022 14:35:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJzoF1NpEaZGB1MAybzgIIRy1lK1z5w5gg1fQgv7SSYPBr5D2zb7DJ88cFfgn/u6Kf/571Uw X-Received: by 2002:aa7:c793:0:b0:408:4a69:90b4 with SMTP id n19-20020aa7c793000000b004084a6990b4mr5024346eds.58.1645137304617; Thu, 17 Feb 2022 14:35:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645137304; cv=none; d=google.com; s=arc-20160816; b=Nyb1fUoUIW+5hyAOMGm1uZul1J91MQNtVE+DVvUGUbIxDmcTGDQQiRijpBdN2IwFDO 5vnU7B63MfjczTFIqt/4UMHl+AJI80GNtkJHUTaOicUVJqWzTtWNr1uIIpWqb0g/shFv CQFkq9Wbx/htEN6IotHFMaCVKbGDLx/RIcFANlrQBxDt5i4P2qQ4sWWMoeQOz3tRx93J aaqr+EsgfPrH9PNC5SBu2ECrA4A3t2PZkyNur5Twh/l6/2qRzTG35GLRltENzqgjUIOG Cg7Gixwz/OZsnpzctsAPKqO1jLLrm9f2vJZr/WuFxOL9oh4mWuDEPmHgBfOiKcM2cBBj +mDw== 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=8z3d63SHqcR3mVKHY24fDb7BLgrlDasVQnpnwy2k9bA=; b=hRZYkw1soP2uTh5tNkOEfyeBEQY9rYgTIt9r+w5DMRyi479PZC2hgVqTBf7ZL1zlmB 1A8wk/XKcXIKZTvqrWeW2VctGzxastL20uo/oI8taFX59kn7U9sm2zjchD+gcZqDcrK0 gia7lpD6N5ZGDVe/Z5oG49lQMC/cp3YbDtzAGZJGA90rRn2WR6SQ5GvV2EyC5ZWNtzwr N4Y3RpxU1Y3aXFe6sMS8OcUEurtcgCq1Co8e7ukdmq0+OhTIehtOJ9ItXd5GqvqXUpm3 lL2L11PB14YWxIiobzafJTxUnL5c7qKaQH0ZeoWW6iRhw5VqYAJTRF9ilgmLoUcpYVcB VeyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Or2EAeF7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 23si2606533eje.318.2022.02.17.14.34.41; Thu, 17 Feb 2022 14:35:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Or2EAeF7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S243946AbiBQVXh (ORCPT + 99 others); Thu, 17 Feb 2022 16:23:37 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:53370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242293AbiBQVXd (ORCPT ); Thu, 17 Feb 2022 16:23:33 -0500 Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2CF6F8020D; Thu, 17 Feb 2022 13:23:18 -0800 (PST) Received: by mail-pl1-x636.google.com with SMTP id u5so5573380ple.3; Thu, 17 Feb 2022 13:23:18 -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=8z3d63SHqcR3mVKHY24fDb7BLgrlDasVQnpnwy2k9bA=; b=Or2EAeF7OG9Y0jkZlUMw5eiIyDn8Jn5IMGBUKJoepqo9VcwlEbh8Yn0VEqKAvAmFhT weo8hKHvvJN5o7MM62XT02IsvY5YteZJPBb7J3YFTGPwuZCqFBJXEuYeAqpJY2/cG1zO 4NScJxRj9PJlK+5xsDVSZGFx+4qjQLiuKF9UsNSKnk8ezGfJGSDX6iaZ2uQK0ppjOql+ r1IAAizitkSMZLuWFOXlvRuESmn2Pm+L/vBj0hwGqd8tUhYl9PYSvGZfX5dtDDRH45og th84ud2vVbyEwrL+IOWOmpnN0VDSJkWS3eroA+bMqUXYjVH1PwPUNhcLi8VSB23yQCus asNw== 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=8z3d63SHqcR3mVKHY24fDb7BLgrlDasVQnpnwy2k9bA=; b=gLRB57uW2G706lxGZWXYMOR8vqlCmDYs/TdPKoz0nkectmhxjXiknpQ5N7yRwR52wQ oW/SbBU4xeHWwe5ytIXQsDSw9ptlvJw/OQJ03DGsXdB9YGnqabaoYM1Ibb6MSXmryE+j 1IBQaCyTJkmh/DLkx6b/MQF8m53m8s0ayQh22PBBncjkYwKyIsn4k5xZ/I4YJgG/WtYF lnd3DM3H7aEgBXZydsxDMPhgyEVEfDL1AckAUtvmgDOT95qV6GBkMPy4Frt7aeydSgJJ JjSX+il66x9lAbarbOc+E6Bg0glshHKWWcLPgzM4L+9qdtRrHbm90Wo+7g4sMzDg+XF+ coVQ== X-Gm-Message-State: AOAM5323Y7IuTQnRYp7QOJqTxj8uoLHcnKYP5yV5Uvbpole15FB/Hph1 6x1JQjFsYrhD3mvlBkwNtYI= X-Received: by 2002:a17:90a:f409:b0:1b8:b6fe:5adf with SMTP id ch9-20020a17090af40900b001b8b6fe5adfmr4873749pjb.49.1645132997692; Thu, 17 Feb 2022 13:23:17 -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 s2sm520899pfk.3.2022.02.17.13.23.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Feb 2022 13:23:16 -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 , jeffreyji Subject: [PATCH v2 net-next] teaming: deliver link-local packets with the link they arrive on Date: Thu, 17 Feb 2022 21:23:12 +0000 Message-Id: <20220217212312.2827792-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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 link layer packet. Issue is already fixed for bonding in commit b89f04c61efe ("bonding: deliver link-local packets with skb->dev set to link that packets arrived on") changelog: v2: change LLDP -> link layer in comments/commit descrip, comment format Signed-off-by: jeffreyji --- drivers/net/team/team.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/net/team/team.c b/drivers/net/team/team.c index 8b2adc56b92a..b07dde6f0abf 100644 --- a/drivers/net/team/team.c +++ b/drivers/net/team/team.c @@ -734,6 +734,11 @@ 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