Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp74073pxx; Mon, 26 Oct 2020 03:46:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx3fMNiJcf4w/9xCotSASO944Xf6Hb4PYMxm05H2pSSKyohNRoDMUdEOlvshEXwXlEd8iuo X-Received: by 2002:aa7:c815:: with SMTP id a21mr14698505edt.166.1603709193664; Mon, 26 Oct 2020 03:46:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603709193; cv=none; d=google.com; s=arc-20160816; b=Zrwykl2EupBI266a9EOE3ZdNaXILR8+9YoUXa5CH0EMGRjrvRNQAeZSCEjOz6TXAfy U6fWSPe4oYBcuUrV/JrkqdOSkqw2y8oev4LjKC33qyNsbinUezQ1L/7veV4x8WL/fKU4 3o4/j8e9wwV5Rr9BJNyPg4LAkP2dSFozDQHw27sknapMEfCkIp3TJtX2+amxHRa83cbm oVgGw3F0l+VZPxIMf3i0nZMfgzkbIMxh09C/uJx9ukHR1rqliJ5XKe6RyCspnhe7gR3T m+/3j8ncaVHfsjyqTAAaN4llcs9TUvhzyEO/YZBK4KGE3MuoWXw4im6mI1bz5lbsctkt MjFA== 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; bh=+sslbVpcyQY2yr9lR97K052U5CkA2Vq4nyr82SWm26o=; b=oWVUajrZCLlHTuE7EpM7RrZmNe13n0AIWR2Boj6b9vrJsWGg6AVpo8u4wvyC1fPEUO nJ/SGNVUrJQiAc7Oh2Y3YWs2LOBXoEhiOxUZ6F7ht81INkBMjuhPOAhHwj5yQUY2SHqu i0Vem0S+TkmYCck1ic4aRza2OVcEP2Yhc07TzMtdDs2Lgqwbjqp17TvHgswF8FgMq6kp eoPm1yfKJKAZqwzUDnJktD3YBdFstjyqSn/F9s07v7caP7IfbAXeyPQ/9w6FHbhA8kPA lH6wTVKH89ij0mmXIRs0qmjS7eE3lrsYuqPJ/VXhrFSQlpE18GBcopD6pTeEk9KqYgz0 j8PQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n5si5830649edy.325.2020.10.26.03.46.11; Mon, 26 Oct 2020 03:46:33 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1770234AbgJZKmf (ORCPT + 99 others); Mon, 26 Oct 2020 06:42:35 -0400 Received: from mx2.suse.de ([195.135.220.15]:43390 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1737087AbgJZKmc (ORCPT ); Mon, 26 Oct 2020 06:42:32 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 5D071ABBE; Mon, 26 Oct 2020 10:42:30 +0000 (UTC) From: Michal Suchanek To: Thomas Bogendoerfer , netdev@vger.kernel.org Cc: Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , Cristobal Forno , "David S. Miller" , Jakub Kicinski , Cris Forno , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Michal Suchanek Subject: [PATCH] ibmveth: Fix use of ibmveth in a bridge. Date: Mon, 26 Oct 2020 11:42:21 +0100 Message-Id: <20201026104221.26570-1-msuchanek@suse.de> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Thomas Bogendoerfer 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 --- ms: added commit message --- drivers/net/ethernet/ibm/ibmveth.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/net/ethernet/ibm/ibmveth.c b/drivers/net/ethernet/ibm/ibmveth.c index 7ef3369953b6..c3ec9ceed833 100644 --- a/drivers/net/ethernet/ibm/ibmveth.c +++ b/drivers/net/ethernet/ibm/ibmveth.c @@ -1031,12 +1031,6 @@ static int ibmveth_is_packet_unsupported(struct sk_buff *skb, 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; } -- 2.28.0