Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3037194pxb; Mon, 18 Oct 2021 07:04:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxf/jgxptQlTNsBh67JRCQEW4YbuNgt27JnTlsW1NDMeqUUaQ6rvh2VT+ffpyDAB6Z76qjM X-Received: by 2002:a05:6a00:1c42:b0:44d:2e14:74b7 with SMTP id s2-20020a056a001c4200b0044d2e1474b7mr29313698pfw.25.1634565879461; Mon, 18 Oct 2021 07:04:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634565879; cv=none; d=google.com; s=arc-20160816; b=KAeRsQXKHd+AkZp3roqqtLmdHuKBLorx1DUOFuCvgWibzLld5sfnXtHGnPIvj8ms1R 0K5MB7QnWladAH9/ptMIyZOIY58Z9vuTPrIcXZwIww+z7a/OAKzolwqTAWRz6fnFkfTw TLkyDhFCizRfeTXHUehUwOyQthmCGc0PBCOuRcCpU6c4ScxmIS9RIPlXkJjo2oCkUoO6 QHNxy73oaRmJcMF/U74XX+CopaxYBW3RKwrpj5T1w2aSSgsfK6qWhz02pxJgmf2lYuOa rWdv/2i1ajtM0aAlXBpy/YbG31mLRBMoN/Mt3Gv+JGmKEWxRVt+MHCYkcZoioYMA8CxN rKIA== 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=Chn9TtkCF1+NU+kZCKlgNiDUhiP+GUgjGzAvcc8Uc+M=; b=hxyq6+oyomh+kAt2zFbiGZFJxIoO/NlTlHHkXCReGCtf5A7YjmKmKRMmR5Xn1fWmQ8 igW4D5o1okZKaRPnRS142sBqoeOe+RsgnGvKgygJSfNAOupnLGA7vGP+zG8iPreyhMu9 /l4eEvwpqB3lbRD1/KN9lNrHgIbnAusnK3oMRMm38Dtyjkw/rlNZQmTw6zqhawcFi+oh PT6Vu3DV2zat8tKDiSQmQRDU2TLcd/DCGDuUMHKpYXdGUZpuIJrlrFLADsYW77hRE71S ZLNy8p+MhW7v9miznC+v9HjdfphBvTb5vQ+Ln1i5CJ6iRofyj6Wv8MILrTD/VnYmdzf0 OGDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ZNplSEuS; 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=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 u187si19542593pfc.174.2021.10.18.07.04.25; Mon, 18 Oct 2021 07:04:39 -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=@linuxfoundation.org header.s=korg header.b=ZNplSEuS; 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=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234047AbhJROFH (ORCPT + 99 others); Mon, 18 Oct 2021 10:05:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:39544 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232741AbhJROBH (ORCPT ); Mon, 18 Oct 2021 10:01:07 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 408E461A61; Mon, 18 Oct 2021 13:42:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1634564554; bh=SBsDqRZfaOcdzXzxTekuHZ98esYUKWrpTp/ETu9HS8Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZNplSEuSSCjjlY1GzzcMJDPOMPQj6DJzJFo+Z0Z4XdlW+27yC/sTAcZlszEyPWmvm sWKtd7cyxTnv9Dd22/TCEJGK91afp1wuJ1K/54BEFpxxMek+clvdwgft6TgL1Pg/Mp bJr+vzsYmEtpDcCwdMjibM4+qrP/u+mC9Ck/XlMc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Roopa Prabhu , Saeed Mahameed , Roi Dayan Subject: [PATCH 5.14 106/151] net/mlx5e: Switchdev representors are not vlan challenged Date: Mon, 18 Oct 2021 15:24:45 +0200 Message-Id: <20211018132344.126032957@linuxfoundation.org> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211018132340.682786018@linuxfoundation.org> References: <20211018132340.682786018@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: Saeed Mahameed commit b2107cdc43d8601f2cadfba990ae844cc1f44e68 upstream. Before this patch, mlx5 representors advertised the NETIF_F_VLAN_CHALLENGED bit, this could lead to missing features when using reps with vxlan/bridge and maybe other virtual interfaces, when such interfaces inherit this bit and block vlan usage in their topology. Example: $ip link add dev bridge type bridge # add representor interface to the bridge $ip link set dev pf0hpf master $ip link add link bridge name vlan10 type vlan id 10 protocol 802.1q Error: 8021q: VLANs not supported on device. Reps are perfectly capable of handling vlan traffic, although they don't implement vlan_{add,kill}_vid ndos, hence, remove NETIF_F_VLAN_CHALLENGED advertisement. Fixes: cb67b832921c ("net/mlx5e: Introduce SRIOV VF representors") Reported-by: Roopa Prabhu Signed-off-by: Saeed Mahameed Reviewed-by: Roi Dayan Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/mellanox/mlx5/core/en_rep.c | 1 - 1 file changed, 1 deletion(-) --- a/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c @@ -611,7 +611,6 @@ static void mlx5e_build_rep_netdev(struc netdev->hw_features |= NETIF_F_RXCSUM; netdev->features |= netdev->hw_features; - netdev->features |= NETIF_F_VLAN_CHALLENGED; netdev->features |= NETIF_F_NETNS_LOCAL; }