Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp1984987pxx; Sat, 31 Oct 2020 04:52:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyqhsOAEuBKV/cl0emqpEOyhLkoBgduqKiRN77wRIrUWSK3WZhOGTw2Svmg5oPXKSvH3MO2 X-Received: by 2002:a17:906:7f0d:: with SMTP id d13mr6434384ejr.299.1604145133793; Sat, 31 Oct 2020 04:52:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604145133; cv=none; d=google.com; s=arc-20160816; b=A0suNqkTrmDpvsaJG/h+jmkHkKbiRmTXhlyodRz+qlMOfPYNcJvA6+8VlW6o0AtO1r e2Kjcfr82QWX/d7p3jcDkViCmlFM3k+JRDXwMPlo4yH8/3XZgG7N0P7N7akFhOSjlwqQ AwJxabDZu7+M2/0i6Lp9MYntqooo25e2exQfVPoJzlQpxL9wlZxbTqAXe+54Ka4Gemuc M4KHimXgomLlRz2zjOBNJa8764RD/9Qkwx7cdKvtNF8svlCFcqpnuadYucuM81/lYy6+ /syjpGQwhF3U9honGiM36HTr5Vy13jHtnLFI0FVUH5+7X1yvNqcBptDioFphPvo9yCGM au7Q== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=M8rPjcIWytdRdxwI18MHofMyevpayJ8XTiIr8o6LExE=; b=RHH06s8mD2miiDLYUwnRpEafPSqE/DENvj1Sm9j93enHASn7eUC6ZnmwBp6GPej4AW 0wfjxcWfSqen6pb8f1/Yx3rf6rMUArw3KWpl1/JviA/3ddlm4sKr1hlwLvjGeO16jmlf QEpNplw80gMWIuSNNC+m0IHRt5g0ytquUKJUXcusMMgr0Yt1cIlt5+AQ3Hc8Nc8jvhDm HIkk6fcfAZmF69P9JLmWfNtHsHOQn6C4YZQxwAsCUJ5OS91JQ3wjqC/MKk/RsumhBkJ5 oZPg/YUTbjk1C++8qs1uQTIa+T5bcRXhPLaLPdp/O/h0UEIT3yjPCwxeZZxsvc2qClEr zadw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=BZ+JSfaU; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cc15si6852571edb.150.2020.10.31.04.51.51; Sat, 31 Oct 2020 04:52:13 -0700 (PDT) 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=@kernel.org header.s=default header.b=BZ+JSfaU; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728199AbgJaLuT (ORCPT + 99 others); Sat, 31 Oct 2020 07:50:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:40528 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727673AbgJaLl1 (ORCPT ); Sat, 31 Oct 2020 07:41:27 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 36E6420719; Sat, 31 Oct 2020 11:41:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604144486; bh=/eWSMNuw7hAI76MfM3ORRrqREp2ulmo2HGI74xNA2bA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BZ+JSfaUO4scb5OkHNMmygMhVNZlnNZQS1eM9M1il2RmyNr7KGP58YzqUFvgSaNyf dytWpGkDXHzBb4EQ6t3ZZhHz7OvzulOmtKSHDBFrAe/M9AKUyL2roa/ZCVer58oJ5V r7IGCXoa38WbZA9dY8it4sIkWwOvLbDPMXIGVRF8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Michal Suchanek , Thomas Bogendoerfer , Jakub Kicinski Subject: [PATCH 5.8 37/70] ibmveth: Fix use of ibmveth in a bridge. Date: Sat, 31 Oct 2020 12:36:09 +0100 Message-Id: <20201031113501.274418934@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201031113459.481803250@linuxfoundation.org> References: <20201031113459.481803250@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Thomas Bogendoerfer [ Upstream commit 2ac8af0967aaa2b67cb382727e784900d2f4d0da ] The check for src mac address in ibmveth_is_packet_unsupported is wrong. Commit 6f2275433a2f wanted to shut down messages for loopback packets, but now suppresses bridged frames, which are accepted by the hypervisor otherwise bridging won't work at all. Fixes: 6f2275433a2f ("ibmveth: Detect unsupported packets before sending to the hypervisor") Signed-off-by: Michal Suchanek Signed-off-by: Thomas Bogendoerfer Link: https://lore.kernel.org/r/20201026104221.26570-1-msuchanek@suse.de Signed-off-by: Jakub Kicinski Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/ibm/ibmveth.c | 6 ------ 1 file changed, 6 deletions(-) --- a/drivers/net/ethernet/ibm/ibmveth.c +++ b/drivers/net/ethernet/ibm/ibmveth.c @@ -1031,12 +1031,6 @@ static int ibmveth_is_packet_unsupported ret = -EOPNOTSUPP; } - if (!ether_addr_equal(ether_header->h_source, netdev->dev_addr)) { - netdev_dbg(netdev, "source packet MAC address does not match veth device's, dropping packet.\n"); - netdev->stats.tx_dropped++; - ret = -EOPNOTSUPP; - } - return ret; }