Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp29269ybl; Thu, 22 Aug 2019 19:05:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqyjtdEeVXizxYIcbPIDWJhy7XhY+5T4Etcv4FlQ0HZ2mORlMNHn3hyE93pik3N6GtVvQkyu X-Received: by 2002:a17:902:bd4a:: with SMTP id b10mr1943056plx.219.1566525948156; Thu, 22 Aug 2019 19:05:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566525948; cv=none; d=google.com; s=arc-20160816; b=GS8WpN9sIQAqu+WyEwXFE6vGiQzs1h93Smg7pHDu32da1wFO0PrvDdsGPqTCsHxKjN j14Ng3/KcZGb1d9+VYgQgU14vUvihj3QVllgnn3ragBLJtJgIMGCE1dK9VGGi+ioNUg4 x27k5WwVByOeQy0p46cTjAj558sSlcg35Mk2OhOt1D8avXbAd98VLGfjjahnt2iGbemr KsimQpqQ2ZCPnmLky3tOKZA1qzB24+QEPvudxSdzNEcbClhthIyxWTXaQFCx6vFk9aYT gZdMAjmw5dL32zOCeNZcQXRikIEoLYQ3ZSraWCvkZYWilq6yg2thyVAzCA/fz6ITf8Pb Bx0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=OiEAxz5TIT+24QwtyPCYvgxsP9W7+yg1pa7kZNMlKtY=; b=nRcJuekkcxmZEzHVLMmXF6lnJtyISDOZoub/ZUwKNU0bBwpSSdnZLky4NH8B7Lghhd +HE/aLNAsGTYd8OEbCWzNXNE37PD0P5nB10HEjoZz5YG8hhth0KUhvnLg30XWRU4h5xn 6NxALUlVOVwVE3eN6tVxWDg5N/sORs+yo8rFYSF4tcIaObUtTmlVxdD+HRmexa/tyfIA VihT5olqsfkAvEjl0naryCXhLC/JelGLwRBady+p0NZJx1u9iNtnaMuH8ImygG5vzfkr zRYCprzx4D/loidaX2mr1vtDUlCQoZmbWNNn3EucQsYb6R1b81Vnhq2l9J5Cqd61g5gU aQaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=i8RMHExO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f8si770988pgb.566.2019.08.22.19.05.30; Thu, 22 Aug 2019 19:05:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=i8RMHExO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404280AbfHVRYj (ORCPT + 99 others); Thu, 22 Aug 2019 13:24:39 -0400 Received: from mail.kernel.org ([198.145.29.99]:45736 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391343AbfHVRYU (ORCPT ); Thu, 22 Aug 2019 13:24:20 -0400 Received: from localhost (wsip-184-188-36-2.sd.sd.cox.net [184.188.36.2]) (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 3E09523400; Thu, 22 Aug 2019 17:24:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566494660; bh=1dcMSu4TAYul7LkH8fqne0TvbN4f4LdLMSu1D9WanJQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=i8RMHExOe975msVQlplC5ZbeRMYLEyQf9LK9dHw/Yhoq1VEsc6xjeTzyBoZUy7qxq 8hsEGGgBUCtvmkivr58GjD91Y2D63ymKI50iQAcBh0tG9yZ0BPE1ujBymqYP2l4YdM qlMpJY0d9moFFml5Kw6gCAtyC5BcLCXcV2BaFOEs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, YueHaibing , "David S. Miller" Subject: [PATCH 4.9 102/103] team: Add vlan tx offload to hw_enc_features Date: Thu, 22 Aug 2019 10:19:30 -0700 Message-Id: <20190822171733.272845410@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190822171728.445189830@linuxfoundation.org> References: <20190822171728.445189830@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: YueHaibing [ Upstream commit 227f2f030e28d8783c3d10ce70ff4ba79cad653f ] We should also enable team's vlan tx offload in hw_enc_features, pass the vlan packets to the slave devices with vlan tci, let the slave handle vlan tunneling offload implementation. Fixes: 3268e5cb494d ("team: Advertise tunneling offload features") Signed-off-by: YueHaibing Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/team/team.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- a/drivers/net/team/team.c +++ b/drivers/net/team/team.c @@ -1014,7 +1014,9 @@ static void ___team_compute_features(str } team->dev->vlan_features = vlan_features; - team->dev->hw_enc_features = enc_features | NETIF_F_GSO_ENCAP_ALL; + team->dev->hw_enc_features = enc_features | NETIF_F_GSO_ENCAP_ALL | + NETIF_F_HW_VLAN_CTAG_TX | + NETIF_F_HW_VLAN_STAG_TX; team->dev->hard_header_len = max_hard_header_len; team->dev->priv_flags &= ~IFF_XMIT_DST_RELEASE;