From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0088.outbound.protection.outlook.com [104.47.38.88]) by dpdk.org (Postfix) with ESMTP id AA55E567F; Sun, 28 May 2017 10:38:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=JKRFY1P40Qul2avR6nFxHK0kPFmP4tIQYsPAc1LiIuY=; b=TaSsK1wFEI10N/rqC/KmRw4eumf+updZCMTOp3jPGSb6JQoTjsDfUSQLR29128A6z6DhgiXY5ENfRQWDHErQ3DM0J6nU0Zp+pYUxfV2hMXPeF+GkR8n1xS1bC3CeAugvd5e7avFX3sUyqwWuVamZ1MZstLE153HpmJrOa/IWWiI= Received: from MWHPR07CA0017.namprd07.prod.outlook.com (10.172.94.27) by CO2PR0701MB1014.namprd07.prod.outlook.com (10.160.10.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1124.9; Sun, 28 May 2017 08:38:54 +0000 Received: from BN1BFFO11FD001.protection.gbl (2a01:111:f400:7c10::1:170) by MWHPR07CA0017.outlook.office365.com (2603:10b6:300:dc::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1124.9 via Frontend Transport; Sun, 28 May 2017 08:38:54 +0000 Authentication-Results: spf=none (sender IP is 50.232.66.26) smtp.mailfrom=cavium.com; dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=cavium.com; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) Received: from CAEXCH02.caveonetworks.com (50.232.66.26) by BN1BFFO11FD001.mail.protection.outlook.com (10.58.144.64) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.1075.5 via Frontend Transport; Sun, 28 May 2017 08:38:54 +0000 Received: from avsmtprelay01.qlc.com (10.1.112.194) by CAEXCH02.caveonetworks.com (10.17.4.29) with Microsoft SMTP Server id 14.2.347.0; Sun, 28 May 2017 01:38:49 -0700 Received: from avluser05.qlc.com (avluser05.qlc.com [10.1.113.115]) by avsmtprelay01.qlc.com (Postfix) with ESMTP id 6D33D8BF762DB; Sun, 28 May 2017 01:38:49 -0700 (PDT) Received: (from rmody@localhost) by avluser05.qlc.com (8.14.4/8.14.4/Submit) id v4S8cnrt000517; Sun, 28 May 2017 01:38:49 -0700 X-Authentication-Warning: avluser05.qlc.com: rmody set sender to rasesh.mody@cavium.com using -f From: Rasesh Mody To: CC: Harish Patil , , Date: Sun, 28 May 2017 01:37:31 -0700 Message-ID: <1495960654-352-5-git-send-email-rasesh.mody@cavium.com> X-Mailer: git-send-email 1.7.10.3 In-Reply-To: <1495960654-352-1-git-send-email-rasesh.mody@cavium.com> References: <1495960654-352-1-git-send-email-rasesh.mody@cavium.com> MIME-Version: 1.0 Content-Type: text/plain X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:50.232.66.26; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(979002)(6009001)(39840400002)(39850400002)(39400400002)(39410400002)(39450400003)(2980300002)(428002)(189002)(199003)(9170700003)(5003940100001)(87636003)(478600001)(450100002)(38730400002)(110136004)(2351001)(4326008)(47776003)(6916009)(2950100002)(4720700003)(6666003)(72206003)(189998001)(76176999)(33646002)(50986999)(356003)(2906002)(101416001)(106466001)(54906002)(86362001)(48376002)(575784001)(50226002)(81166006)(8676002)(105586002)(8936002)(305945005)(5660300001)(36756003)(42186005)(50466002)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:CO2PR0701MB1014; H:CAEXCH02.caveonetworks.com; FPR:; SPF:None; MLV:ovrnspm; MX:1; A:1; PTR:50-232-66-26-static.hfc.comcastbusiness.net; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD001; 1:GkkPdLS6zkEm1TXf6VThQ9XxWoIcYdO8wdOfbyonvRLLAvM+kPJQ+iTtMet+ZTviB+5tZDm799ouG59pCS+4R/aaJ+rkz55XdZ6ZRl2tm7cmmC3HCgiBBjDPhvVNJoaN7A65NOGEAeY5d/02IVdaDv6u1tY+acIwIVT0Vn+jJDtE4kKrIqtxdv6DgL0j5ufX1nN5Yifi9itdC9UyQdu2kyQmFSowCmZvjlR3NfUj46oO9B2fA7AOmUqbg50v2K4m/iL1oloq9LFavkW93pR1aSm8jZJwoHo5H/5gP/ykH4PBV4azFrhXt+8Z4feIzv4srIoEJTlHYawp9MkGn/Vq5dxK/zXkDR+Pl4or8pkz1492hx3FMx605UaxQv0w0sT908qmvYcFwP8sd3uZhAHRJJ0VAyMfOY3827+IhALQDTn5XU8ly45tP/anl3k4BsezcqPHUgXZmiXEfiHmHMnlmw== X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO2PR0701MB1014: X-MS-Office365-Filtering-Correlation-Id: a23dfa56-e81a-4c7b-890b-08d4a5a4f977 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254075)(201703131423075)(201703031133081)(201702281549075); SRVR:CO2PR0701MB1014; X-Microsoft-Exchange-Diagnostics: 1; CO2PR0701MB1014; 3:71YJz8K/PlMZ/PR6yfQNbj3cyIlRg/yHeUVT0+Dw8fTr16zAplWBNUIoTcZ0P4F2+xypE0iD2os3psPpl46dgmj//BHFdyU0IVtEiWwO3co73wENisJ7qd6OM5GCIWM9dbw307NPuokbQpGIzSf3E5xS21t2QUlHaB6XABW3wijNKqfdEoLmtPjDdTg96d1kmQy2OxYfNEo1oAKdtXWZooLj/KYqnrvSzArI3e0lUPP5KoNKjfT6bGF9aG/JM/mPedZWVDkdfDIr4ETqpxqRUDwdIugaKewq9RKVIDx1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f/oxUzGgg79hb5aGMW1ihnmPhtAfG2tjgCk20DHSnN48iRpcbHqg6xntM8F0tajLz/vfHgHJNT9jxRvcHIz7SVB8tgM4HdsKVrj9nh6RFOeDYerPbzR+FUxrzAYssLj4KYtoDUzYayjnBWSac+CyXoh1aMhwaZuNHwPUu7PT0zFo2W1PdNpPXG0qn0w2KWDj/h5Ajffu+AGephNZ5GdiD51wxcSplhfwYe0Sy5x2FmelgJzaDRAb/QfKa8BnUqHKLj4+PHBsF7plmZRpVjfeaO+8Rudeeoim3TnYRJzpE8eqTXF7vCFfTakWDrS2G67ewSjPYLaptATFBGbbkB1z9DdnwlckJe1VpHkTiRMmDEP9+szKmYBOG8slsCwj4J68zEFdjqua72ry212CN9k+CFDbzYwTf5yRCPhBYSg481GlmjsMzqpUhEbQgm0eIpAtsMZXAzuVfni9M3sV3bErn/lORq01Evio9nhWKfEm9xDfYdAbl1nylJLFU X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(13018025)(13016025)(8121501046)(5005006)(93006095)(93001095)(3002001)(10201501046)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123560025)(20161123555025)(20161123562025)(20161123564025)(6072148); SRVR:CO2PR0701MB1014; BCL:0; PCL:0; RULEID:; SRVR:CO2PR0701MB1014; X-Microsoft-Exchange-Diagnostics: 1; CO2PR0701MB1014; 4:iDqJeZbFo2lKqfPjr0GlOek7VOpYlRp2X+mU0QHkm+RsdQo2PQM70+A5SFQjWg75MGwhIoGC7qhCOYqTE6oKyWkzstzZV8grDK0nHhnRSKDW0qdV13znAoZatVnagrduLC0EvibyVU5zI+Ad+7elIsrmuIoH70QyG5sunuf5eEBzeQXyEn+3v6ooZxuaAmsMMj0DYUsMinEyDb/5OVe6/LXVwgSo8jfrHLcbrTkg8ymLbP/Jva1MF8FCsRrksgkTGxo0NK2qDHGE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?Q?/AAA+l03ortuoWFQOOlKV5yAqn4jA2088DkogkaP4?= X-Microsoft-Exchange-Diagnostics: 1; CO2PR0701MB1014; 6:IkhSa/uW3A9tg9A+lNyj2A5lsv4WxCmqzDoFljsQa0lMUfJ87XeRipFJnJdj6/5L2hsLDKdtUWigmLxcq4Cb+sN5xp1uTcj8NvXS0VTXBg5LQmcc/4teuEOAUlkAuRooqNX1/DpNwFZ1xaSEuatdTRh6sROc40rZNNT4YiugiXCoPHlhfiZ/dEbReKpv6x3iSw3yFObVN0mSZrparx6dGeTTsBQnYkopWv4z0KksjHnMnyvON9S9mo8DrzcMGhGt59N20rSK/yl3NS8GuudD5VzXzGXVpXpUAJYc3yyxwaRVMQdn14nsHKWST6WH9FZ4nxzfN8SLIA4GBFUkTCl5YvmXDciCu/NRyLinTCyF7EajOjracfIT4b15e5vhdRDnU+GHV8j1lKmI7/e1B05bj9EbqoKnqlPYlx19g149lRaBxn20CpQ7RO+/pkIsaNTuLxR+c5m+Y2IjDgBirYpoGNrCzjMxtcsV24A0XWrCCUsHXuJ1Lwz0cyX2iLRu9QS1f+q2qtffdzgvNHP2mPv7PQ==; 5:abeAlhE049FFeb2rnU6bJgDsMvUzyywJmcuw7iIClldNhLpkOgXR/gg+v+jHTqFPLr2n7vqKsOcROF9hyAYIR6sVB68+jKocGQPwquwexPyqDTh/h9AaEw0e0v7NBOXKhLbIWfrGKV4Zbtr3tK1pQQ==; 24:AcpP0VeFjV+6oSim9AnxbfmZnQOEuAowfYbVHKD+KPzT/jPP6zSZSPaxKqvTVoI0dF8cL2j4BNsF6U8hy317UcieeSzjBXKe86FaJEBsUUE= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CO2PR0701MB1014; 7:MG/azuqBc7vGyUOxrtxpEINvlSXL959ZZOD7Dn8wW3qqrwewzoYhue2a6Ama1tKxBYlwiahm5qli1srd5nouTJr+ST+IzScyyjBOFiMw9qRGCG/g4gOmmEFSOQR8w8AiFpwg3/AxzMkgiZQILiLdmCzVTMVxO3/kMiVWk3glcOBJiLmovXQuwTlQqNStcIA4XVKzuSAjhXnh13WuX2fKqSAmAaSMgw0iDuisXjPzVbuluv4rZJVrmZz5JeYcD7ZOXlbPx+XTuxjK6cSCkUxlKWACZahaBjCHRdP95+ntSAjMxeOxj+LCbSqCUQiqIPxKIj3094feQcZFpybj8tq3gA== X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 May 2017 08:38:54.1230 (UTC) X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=711e4ccf-2e9b-4bcf-a551-4094005b6194; Ip=[50.232.66.26]; Helo=[CAEXCH02.caveonetworks.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO2PR0701MB1014 Subject: [dpdk-dev] [PATCH 4/7] net/qede: fix VXLAN tunnel Tx offload flag setting X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 May 2017 08:38:57 -0000 From: Harish Patil This patch fixes missing PKT_TX_TUNNEL_VXLAN Tx offload flag from the supported Tx offloads and an incorrect tunnel TX BD bit setting. Fixes: 3d4bb4411683 ("net/qede: add fastpath support for VXLAN tunneling") Cc: stable@dpdk.org Signed-off-by: Harish Patil --- drivers/net/qede/qede_rxtx.c | 4 ++-- drivers/net/qede/qede_rxtx.h | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/net/qede/qede_rxtx.c b/drivers/net/qede/qede_rxtx.c index 00fda8c..82aa607 100644 --- a/drivers/net/qede/qede_rxtx.c +++ b/drivers/net/qede/qede_rxtx.c @@ -1410,7 +1410,7 @@ static inline uint32_t qede_rx_cqe_to_tunn_pkt_type(uint16_t flags) if (bd1) PMD_TX_LOG(INFO, txq, - "BD1: nbytes=%u nbds=%u bd_flags=04%x bf=%04x", + "BD1: nbytes=%u nbds=%u bd_flags=%04x bf=%04x", rte_cpu_to_le_16(bd1->nbytes), bd1->data.nbds, bd1->data.bd_flags.bitfields, rte_cpu_to_le_16(bd1->data.bitfields)); @@ -1609,7 +1609,7 @@ static inline uint32_t qede_rx_cqe_to_tunn_pkt_type(uint16_t flags) if (tunn_flg) { /* First indicate its a tunnel pkt */ - bd1->data.bd_flags.bitfields |= + bd1->data.bitfields |= ETH_TX_DATA_1ST_BD_TUNN_FLAG_MASK << ETH_TX_DATA_1ST_BD_TUNN_FLAG_SHIFT; diff --git a/drivers/net/qede/qede_rxtx.h b/drivers/net/qede/qede_rxtx.h index f9f52ea..3f38d0f 100644 --- a/drivers/net/qede/qede_rxtx.h +++ b/drivers/net/qede/qede_rxtx.h @@ -134,7 +134,8 @@ #define QEDE_TX_OFFLOAD_MASK (QEDE_TX_CSUM_OFFLOAD_MASK | \ PKT_TX_QINQ_PKT | \ - PKT_TX_VLAN_PKT) + PKT_TX_VLAN_PKT | \ + PKT_TX_TUNNEL_VXLAN) #define QEDE_TX_OFFLOAD_NOTSUP_MASK \ (PKT_TX_OFFLOAD_MASK ^ QEDE_TX_OFFLOAD_MASK) -- 1.7.10.3