From patchwork Fri Jul 17 12:19:32 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Grygorii Strashko X-Patchwork-Id: 235694 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp1646997ilg; Fri, 17 Jul 2020 05:19:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx7xpbvVWXYxxGf9S23qp2Si2MWi+wI6/Tml6GCHkruwldxYg5YWz9BotxiZSJp04IxT9r4 X-Received: by 2002:aa7:d285:: with SMTP id w5mr9286783edq.174.1594988389906; Fri, 17 Jul 2020 05:19:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594988389; cv=none; d=google.com; s=arc-20160816; b=k15z3l6JAjyLg1Stpr9ZnOobtn404EQcfwQECTxLSmsKWR/B8iGhPRWbVRcDQXUSR0 5/JkAST9wQ3Uee1zCPRyxdPRKaykT0erf/rshQM4EMEH6oX55s/2qG/eYF4BMQEhxuxw eT/QRlmOeIMhSoU5OCsF8XaFXIYMEl4LgTmo8Db0CPT90AvgxvTqA40qcxCHpZ0cPw6o AaRo2lP7V76UgyeuCttEREnPFqt5hEWj73/pF0aRFMKk5hiRr7i0ru1bQ9BrwxkVqi8F bWjU4hFZw476tizgGM1hh0ySfmy8AJluOQ2a/OsgeSfDyljBSuEe2wI8aJ+0WFlsDxxU tODQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=zxUFAurYBZuCopybPJy1heOrkqjSKewqf4SLYr/5yD0=; b=FiijlfVDs/Jj9af3xNwJxwPSuIPUgcwha7GJ20uC0fwKsItR8UBiriV8KZVxUS+n3n stOxN8Ey83uMzepGmzzfeyUzsUe4m9asmbms8YfVabFO8QAwdbrCVB1n6mTIq7HLpcQu UdXCw2WcJ/fGfEiqpxeq66gE4e+nNxERSwQd2O36TCByRQXgu2vxApWa2+GVV+96nPiV mW1vJN5uUCkZhLN8KbkjCRWI5wtOaiASFhI8coLNISWRUwX5JBlXN/SKz1/8Khc0fwdp qnYVX0c0Qtl5mRR+8nPF3rMSJFysiGDsSr3WRDs/VB5UWwbib5gDlgjyVWKD1TbeLE8P kHgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="MjrmpHf/"; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gl18si4842041ejb.588.2020.07.17.05.19.49; Fri, 17 Jul 2020 05:19:49 -0700 (PDT) Received-SPF: pass (google.com: domain of netdev-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=@ti.com header.s=ti-com-17Q1 header.b="MjrmpHf/"; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726393AbgGQMTq (ORCPT + 9 others); Fri, 17 Jul 2020 08:19:46 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:50790 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726113AbgGQMTp (ORCPT ); Fri, 17 Jul 2020 08:19:45 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 06HCJfM3094214; Fri, 17 Jul 2020 07:19:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1594988381; bh=zxUFAurYBZuCopybPJy1heOrkqjSKewqf4SLYr/5yD0=; h=From:To:CC:Subject:Date; b=MjrmpHf/wJxoWyDYF8L53tUsNvFQhztbQTI0TOeNNdd3WASCWpb+i+o2b5c7q79ZW il7awPzmpZ86+kKIfvrqOsofuR4UHrX/SsilOHCUtUFgU/yxM72dM8aYtXoKaRB2ez Qk44/y8fWI2/0bDhuGbrWM6VFu4+NUHK7jRLIVKg= Received: from DLEE113.ent.ti.com (dlee113.ent.ti.com [157.170.170.24]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 06HCJf5a009074 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 17 Jul 2020 07:19:41 -0500 Received: from DLEE113.ent.ti.com (157.170.170.24) by DLEE113.ent.ti.com (157.170.170.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Fri, 17 Jul 2020 07:19:40 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE113.ent.ti.com (157.170.170.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Fri, 17 Jul 2020 07:19:40 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 06HCJd5q077284; Fri, 17 Jul 2020 07:19:40 -0500 From: Grygorii Strashko To: "David S. Miller" , , Jakub Kicinski CC: Murali Karicheri , Sekhar Nori , , Grygorii Strashko Subject: [PATCH] net: ethernet: ti: add NETIF_F_HW_TC hw feature flag for taprio offload Date: Fri, 17 Jul 2020 15:19:32 +0300 Message-ID: <20200717121932.26649-1-grygorii.strashko@ti.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Murali Karicheri Currently drive supports taprio offload which is a tc feature offloaded to cpsw hardware. So driver has to set the hw feature flag, NETIF_F_HW_TC in the net device to be compliant. This patch adds the flag. Fixes: 8127224c2708 ("ethernet: ti: am65-cpsw-qos: add TAPRIO offload support") Signed-off-by: Murali Karicheri Signed-off-by: Grygorii Strashko --- drivers/net/ethernet/ti/am65-cpsw-nuss.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.17.1 diff --git a/drivers/net/ethernet/ti/am65-cpsw-nuss.c b/drivers/net/ethernet/ti/am65-cpsw-nuss.c index 1492648247d9..6d778bc3d012 100644 --- a/drivers/net/ethernet/ti/am65-cpsw-nuss.c +++ b/drivers/net/ethernet/ti/am65-cpsw-nuss.c @@ -1850,7 +1850,8 @@ static int am65_cpsw_nuss_init_ndev_2g(struct am65_cpsw_common *common) port->ndev->max_mtu = AM65_CPSW_MAX_PACKET_SIZE; port->ndev->hw_features = NETIF_F_SG | NETIF_F_RXCSUM | - NETIF_F_HW_CSUM; + NETIF_F_HW_CSUM | + NETIF_F_HW_TC; port->ndev->features = port->ndev->hw_features | NETIF_F_HW_VLAN_CTAG_FILTER; port->ndev->vlan_features |= NETIF_F_SG;