From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0086.outbound.protection.outlook.com [104.47.38.86]) by dpdk.org (Postfix) with ESMTP id C93C41B05F for ; Thu, 13 Sep 2018 15:48:21 +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:X-MS-Exchange-SenderADCheck; bh=Dh+XcS+SO9NvQRy032L2w5VWsv9jHypubDStcEfM2Yw=; b=Wk9b4FLhNJABmng1rOzGT4BDXxR66SiJzvqC4ba8/Z7SA7Jw3BzhXTSyL9QBFOhWSVKtNQUPKtjzpLGLTvSk24c0nX8avP7ph37tpU+GTEDir3el/53IUa1oOTnZCvvOcQCc2nfx9LM6wlspcpBAZ0aAc4IvbwXtNuKvvafu0HA= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; Received: from jerin.8.8.4.4 (122.178.212.30) by BL0PR07MB4994.namprd07.prod.outlook.com (2603:10b6:208:49::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1122.15; Thu, 13 Sep 2018 13:48:16 +0000 From: Jerin Jacob To: Wenzhuo Lu , Jingjing Wu , Bernard Iremonger , John McNamara , Marko Kovacevic , Thomas Monjalon , Ferruh Yigit , Andrew Rybchenko , Olivier Matz Cc: dev@dpdk.org, Jerin Jacob Date: Thu, 13 Sep 2018 19:17:06 +0530 Message-Id: <20180913134707.23698-3-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20180913134707.23698-1-jerin.jacob@caviumnetworks.com> References: <20180913134707.23698-1-jerin.jacob@caviumnetworks.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [122.178.212.30] X-ClientProxiedBy: BMXPR01CA0021.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:d::31) To BL0PR07MB4994.namprd07.prod.outlook.com (2603:10b6:208:49::23) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4800dbf8-af21-4f00-b232-08d6197f90e4 X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(2017052603328)(7153060)(7193020); SRVR:BL0PR07MB4994; X-Microsoft-Exchange-Diagnostics: 1; BL0PR07MB4994; 3:3nxEAdF/SpUaY04CpWjCHmXje0dy4I3qlFVhcOLWuQUdvQYh21rPmTJPxzG0L+1MBA5oX5uPfos8g6KiPzDKgYTVFxP/fFMz1R45ERbKXEK/73x9DTaSsViQx/yg1eVtzynHSbVX7ttqwbH+S2qhMX5lTlY1o264jRXzU+GwSZg2HOiFhhuXxq5sVm55RJDi7rwsgWUMp3tUPvk0Of05Yg0HDK34TXrObQYe8JFd7mG+DhY9i0EOAGelYJF4s+DU; 25:qfGiJHr/nRpAHmnx/9AhSdE+F12R0Gbfah1/SNRrs5PuHZoBzdCTNaH7QRMyHtQah9EUXgQLU2jrMNsAdSE6BKKlxuP4URKx7ni2tXZJSJLi6N6GbPtCWGOdNis844EGvf1ehGMXAz5H93TftLAPYB8uqYal2tlIqWeM3QKqD2R+X26aRa31KZxH8QSX/55T6AyG6FZV5r4o0dAX9qDcl8w1OrDqtOTWYcl88MmTT2C7/pX5ilekT6x+3oieFnLzWKMfRAFeHfcl8YLl2vXQ79h96gMmKZ3FGYEi+3G2xw56o5vlCvE1sSCyTzwjojh38qDS4k2ROjEvGUetl49hiQ==; 31:NuqCgj4evgu+cy4U01RLCA3aTLRna9OQZB5CZVYBysR0MhyW/cgCF2K7ffXu6p6T8mSjrlpAG5UF3ndgiDeSLaJSHFwdWV26KuBlXRZoLsGSX96zh/kZM1sO/FjiucF21KLISPH8RtI7RDAYh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X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(93006095)(3231311)(944501410)(52105095)(3002001)(10201501046)(149027)(150027)(6041310)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123558120)(201708071742011)(7699050); SRVR:BL0PR07MB4994; BCL:0; PCL:0; RULEID:; SRVR:BL0PR07MB4994; X-Forefront-PRVS: 07943272E1 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6049001)(136003)(39860400002)(396003)(366004)(346002)(376002)(199004)(189003)(106356001)(81166006)(53936002)(8676002)(52116002)(110136005)(316002)(8936002)(68736007)(4326008)(2870700001)(2906002)(5660300001)(51416003)(50466002)(6666003)(97736004)(6486002)(81156014)(50226002)(105586002)(76176011)(11346002)(446003)(186003)(7416002)(1857600001)(42882007)(25786009)(16526019)(48376002)(476003)(486006)(14444005)(44832011)(26005)(478600001)(36756003)(1076002)(305945005)(2616005)(3846002)(47776003)(386003)(6116002)(66066001)(72206003)(107886003)(956004)(7736002); DIR:OUT; SFP:1101; SCL:1; SRVR:BL0PR07MB4994; H:jerin.8.8.4.4; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BL0PR07MB4994; 23:apLh4HPweAO+f58VLGUP/EzgBLA4ZajEspaEQPw3D?= =?us-ascii?Q?J1GFnLUm8sse5+d7Czizg1Yu8LqpjVh8l5y0nKMhB2xWrFIcZkJ2L/PiZKFY?= =?us-ascii?Q?LwleWwpMoOWcaGd9hZ5W5dFqgp/r2cPca97G5apuSnD6B1l+a081yoHWssO/?= =?us-ascii?Q?xy352FUaRHBUMdBmZlCw5oBFMZwID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l+fN/LijoRDTxK0pQ/eQB/rSirVjDOWI5IaxA+dHEIc4w2WaGD+GwvElJyksIKg6UMNMmUe06meLp0UGeUYRnKrfUZDt0vQpl916t6hfeWEH7Vi5VSRLA==; 5:Y3O2i/kTla9InGIG9MKRG1b/MixWsUeC7cMkSUqCwLi2vCKqXDaywBLUo/L+BsaBU1lv8fJnYSOWPuT8EGWcWs5qCVBbLA5tK3EvjzRxPx32WWZf7Hwk+nPpPouZQh8HW73P0IZ4DZ6fitlVMTwPdzamUE+Jxsa3EC0sxFfWFrM=; 7:NTM4zeb49Qqabkpimi0fuU5pBJ7lSMeH7StB0/9RxMb3Gf8RjNLZ9KGIKjOZFYdLUP7rItYwToAhVoUFYM3ZmmfJdIQ1pS3RXDSks5/qXb60EO9smJURUV/52pAH+7eTikO2gZJ7sNzR5D8FvCCm2tHtf34HumXM/aq/T3cZsMe6BTJo2WpeHKn/O7iIMGRWu4tfr/wvMWtXjwxv5P6go4lshOHopNRaldXNhPSwTNIwyCoACM2MI9Mb/b3pvsov SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Sep 2018 13:48:16.3670 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4800dbf8-af21-4f00-b232-08d6197f90e4 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR07MB4994 Subject: [dpdk-dev] [PATCH 3/4] ethdev: add Rx offload outer L4 checksum definitions 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: Thu, 13 Sep 2018 13:48:22 -0000 Introduced DEV_RX_OFFLOAD_OUTER_UDP_CKSUM, DEV_RX_OFFLOAD_OUTER_TCP_CKSUM and DEV_RX_OFFLOAD_OUTER_SCTP_CKSUM offload flags and PKT_RX_EL4_CKSUM_BAD mbuf ol_flags to enable outer Rx L4 checksum offload. # To use hardware Rx outer L4 checksum offload, the user needs to configure DEV_RX_OFFLOAD_OUTER_* offload flags in slowpath. # Driver updates the PKT_RX_EL4_CKSUM_BAD mbuf ol_flag on checksum failure similar to the outer L3 PKT_RX_EIP_CKSUM_BAD flag. Signed-off-by: Jerin Jacob --- app/test-pmd/config.c | 27 +++++++++++++++++++++++++++ doc/guides/nics/features.rst | 3 +++ lib/librte_ethdev/rte_ethdev.c | 3 +++ lib/librte_ethdev/rte_ethdev.h | 9 +++++++++ lib/librte_mbuf/rte_mbuf.c | 2 ++ lib/librte_mbuf/rte_mbuf.h | 3 +++ 6 files changed, 47 insertions(+) diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c index c4ed8d474..92a177e29 100644 --- a/app/test-pmd/config.c +++ b/app/test-pmd/config.c @@ -594,6 +594,33 @@ port_offload_cap_display(portid_t port_id) printf("off\n"); } + if (dev_info.rx_offload_capa & DEV_RX_OFFLOAD_OUTER_UDP_CKSUM) { + printf("RX Outer UDP checksum: "); + if (ports[port_id].dev_conf.rxmode.offloads & + DEV_RX_OFFLOAD_OUTER_UDP_CKSUM) + printf("on\n"); + else + printf("off\n"); + } + + if (dev_info.rx_offload_capa & DEV_RX_OFFLOAD_OUTER_TCP_CKSUM) { + printf("RX Outer TCP checksum: "); + if (ports[port_id].dev_conf.rxmode.offloads & + DEV_RX_OFFLOAD_OUTER_TCP_CKSUM) + printf("on\n"); + else + printf("off\n"); + } + + if (dev_info.rx_offload_capa & DEV_RX_OFFLOAD_OUTER_SCTP_CKSUM) { + printf("RX Outer SCTP checksum: "); + if (ports[port_id].dev_conf.rxmode.offloads & + DEV_RX_OFFLOAD_OUTER_SCTP_CKSUM) + printf("on\n"); + else + printf("off\n"); + } + if (dev_info.rx_offload_capa & DEV_RX_OFFLOAD_TCP_LRO) { printf("Large receive offload: "); if (ports[port_id].dev_conf.rxmode.offloads & diff --git a/doc/guides/nics/features.rst b/doc/guides/nics/features.rst index a98356a16..68420d196 100644 --- a/doc/guides/nics/features.rst +++ b/doc/guides/nics/features.rst @@ -638,6 +638,9 @@ Inner L4 checksum Supports inner packet L4 checksum. +* **[uses] rte_eth_rxconf,rte_eth_rxmode**: ``offloads:DEV_RX_OFFLOAD_OUTER_UDP_CKSUM,DEV_RX_OFFLOAD_OUTER_TCP_CKSUM,DEV_RX_OFFLOAD_OUTER_SCTP_CKSUM``. +* **[provides] mbuf**: ``mbuf.ol_flags:PKT_RX_EL4_CKSUM_BAD``. +* **[provides] rte_eth_dev_info**: ``rx_offload_capa,rx_queue_offload_capa:DEV_RX_OFFLOAD_OUTER_UDP_CKSUM,DEV_RX_OFFLOAD_OUTER_TCP_CKSUM,DEV_RX_OFFLOAD_OUTER_SCTP_CKSUM``, .. _nic_features_packet_type_parsing: diff --git a/lib/librte_ethdev/rte_ethdev.c b/lib/librte_ethdev/rte_ethdev.c index d91870e90..547132a8c 100644 --- a/lib/librte_ethdev/rte_ethdev.c +++ b/lib/librte_ethdev/rte_ethdev.c @@ -128,6 +128,9 @@ static const struct { RTE_RX_OFFLOAD_BIT2STR(SECURITY), RTE_RX_OFFLOAD_BIT2STR(KEEP_CRC), RTE_RX_OFFLOAD_BIT2STR(SCTP_CKSUM), + RTE_RX_OFFLOAD_BIT2STR(OUTER_UDP_CKSUM), + RTE_RX_OFFLOAD_BIT2STR(OUTER_TCP_CKSUM), + RTE_RX_OFFLOAD_BIT2STR(OUTER_SCTP_CKSUM), }; #undef RTE_RX_OFFLOAD_BIT2STR diff --git a/lib/librte_ethdev/rte_ethdev.h b/lib/librte_ethdev/rte_ethdev.h index adbe936a4..4665bd6f7 100644 --- a/lib/librte_ethdev/rte_ethdev.h +++ b/lib/librte_ethdev/rte_ethdev.h @@ -901,6 +901,10 @@ struct rte_eth_conf { */ #define DEV_RX_OFFLOAD_KEEP_CRC 0x00010000 #define DEV_RX_OFFLOAD_SCTP_CKSUM 0x00020000 +#define DEV_RX_OFFLOAD_OUTER_UDP_CKSUM 0x00040000 +#define DEV_RX_OFFLOAD_OUTER_TCP_CKSUM 0x00080000 +#define DEV_RX_OFFLOAD_OUTER_SCTP_CKSUM 0x00100000 + #define DEV_RX_OFFLOAD_CHECKSUM (DEV_RX_OFFLOAD_IPV4_CKSUM | \ DEV_RX_OFFLOAD_UDP_CKSUM | \ DEV_RX_OFFLOAD_TCP_CKSUM) @@ -908,6 +912,11 @@ struct rte_eth_conf { DEV_RX_OFFLOAD_VLAN_FILTER | \ DEV_RX_OFFLOAD_VLAN_EXTEND) +#define DEV_RX_OFFLOAD_OUTER_CHECKSUM (DEV_RX_OFFLOAD_OUTER_IPV4_CKSUM | \ + DEV_RX_OFFLOAD_OUTER_UDP_CKSUM | \ + DEV_RX_OFFLOAD_OUTER_TCP_CKSUM | \ + DEV_RX_OFFLOAD_OUTER_SCTP_CKSUM) + /* * If new Rx offload capabilities are defined, they also must be * mentioned in rte_rx_offload_names in rte_ethdev.c file. diff --git a/lib/librte_mbuf/rte_mbuf.c b/lib/librte_mbuf/rte_mbuf.c index e714c5a59..022e92b3c 100644 --- a/lib/librte_mbuf/rte_mbuf.c +++ b/lib/librte_mbuf/rte_mbuf.c @@ -301,6 +301,7 @@ const char *rte_get_rx_ol_flag_name(uint64_t mask) case PKT_RX_TIMESTAMP: return "PKT_RX_TIMESTAMP"; case PKT_RX_SEC_OFFLOAD: return "PKT_RX_SEC_OFFLOAD"; case PKT_RX_SEC_OFFLOAD_FAILED: return "PKT_RX_SEC_OFFLOAD_FAILED"; + case PKT_RX_EL4_CKSUM_BAD: return "PKT_RX_EL4_CKSUM_BAD"; default: return NULL; } } @@ -339,6 +340,7 @@ rte_get_rx_ol_flag_list(uint64_t mask, char *buf, size_t buflen) { PKT_RX_SEC_OFFLOAD, PKT_RX_SEC_OFFLOAD, NULL }, { PKT_RX_SEC_OFFLOAD_FAILED, PKT_RX_SEC_OFFLOAD_FAILED, NULL }, { PKT_RX_QINQ, PKT_RX_QINQ, NULL }, + { PKT_RX_EL4_CKSUM_BAD, PKT_RX_EL4_CKSUM_BAD, NULL }, }; const char *name; unsigned int i; diff --git a/lib/librte_mbuf/rte_mbuf.h b/lib/librte_mbuf/rte_mbuf.h index 6a5dbbc8f..80989483b 100644 --- a/lib/librte_mbuf/rte_mbuf.h +++ b/lib/librte_mbuf/rte_mbuf.h @@ -177,6 +177,9 @@ extern "C" { */ #define PKT_RX_QINQ (1ULL << 20) +/**< External/Outer Layer4 header checksum error. */ +#define PKT_RX_EL4_CKSUM_BAD (1ULL << 21) + /* add new RX flags here */ /* add new TX flags here */ -- 2.19.0