From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0084.outbound.protection.outlook.com [104.47.37.84]) by dpdk.org (Postfix) with ESMTP id BAB1BF04 for ; Mon, 18 Sep 2017 09:58:19 +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=g1v9oxZ0e0IEgxBEAmqTmgeD5Q8H94zCnzB23QiCJew=; b=ks3J1Nt8L+7pvHMwNmuCfrqh9miA/CE9E2d6+hjs7y4pwKyZv3jGcFtQVCtjJoyzi/Pg2E1cBTl2pTF2w6VWeMjrgofJRpoMck2ElKdawsG08YNxMCIhXPzhAIMq2cnG9ftAxMEv9m3VZ3DnUNmXW4yGSTcMPvqRltgbHR3PJyM= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; Received: from jerin (111.93.218.67) by CY1PR07MB2524.namprd07.prod.outlook.com (10.167.16.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.56.11; Mon, 18 Sep 2017 07:58:14 +0000 Date: Mon, 18 Sep 2017 13:27:25 +0530 From: Jerin Jacob To: Akhil Goyal Cc: dev@dpdk.org, declan.doherty@intel.com, pablo.de.lara.guarch@intel.com, hemant.agrawal@nxp.com, radu.nicolau@intel.com, borisp@mellanox.com, aviadye@mellanox.com, thomas@monjalon.net, sandeep.malik@nxp.com Message-ID: <20170918075721.GA7658@jerin> References: <20170914082651.26232-1-akhil.goyal@nxp.com> <20170914082651.26232-7-akhil.goyal@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170914082651.26232-7-akhil.goyal@nxp.com> User-Agent: Mutt/1.9.0 (2017-09-02) X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: BN6PR16CA0017.namprd16.prod.outlook.com (10.172.212.155) To CY1PR07MB2524.namprd07.prod.outlook.com (10.167.16.15) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 2f57e03d-d059-4f93-75b2-08d4fe6b05e1 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(300000503095)(300135400095)(2017052603199)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:CY1PR07MB2524; X-Microsoft-Exchange-Diagnostics: 1; CY1PR07MB2524; 3:XsvvWy8KMjDziQ3AooRh8ntrUySGq1FeFES/twnCnDcEhmmuXv2OY+K5NwuZqguApit60bRimw8T9DFl4kVg7wrWJG2ia/GVZIHZN4waSPRr41IxmCI5kdXj64v/0z5HnUNeu8BZWx20kLq/8OycQu4grDIs7ihtXAvV1gZdh9sY0ZUxn1CNdWnSJ/6X8eZK700XOzOLdXdYuwvGVVzEj0kJNXvs075/DpY9a7AXJCSD5oaVby/YhrVVK+lsR+t2; 25:VmMMxQ3S7AhM1KiLzmUNEhfoialescPuanuRCZioJrbDO+w8JefSqQDn9sSbLC2iwm1IrX5tSCtGYW/LW2VSWkpgD9RD4aSzAmYu1qHqawjvp3HvH3OovXDt+3kmt3yjKpPLzPkyqKrQCpeTOPAj1qZJ03BBFy/oGtWJ+W5qsdjuL7pYghLab5fxabAIplnJG8JnQPK24a3ew1sNwpdtw36nrFDChTsUcoqx8op9FPCUIV6PpOVUVk+Ms0Oglz3psl+JJyNGVzl+6Ne3DQkFsf4Sx/lwVsF08AGYYppXMwB7Yv1IdhsKgfXEkYED1bejxF78qN3pL3oVQn1aAH/WXQ==; 31:3qRgbg2jKnDGzqI5XFl/Xlmn9/VxtbB1fv76YN7PxHi0+1EVDW1jlpHQ8vz6XGQRltBPSeyHnHEche9ddOpnYtfd5B2dOBem9AnwBwEQrLHD/zmtOxvFDupaqoW17OO8tLAI3S/HYMSJI2ANL72aDXD9fcJQKN6B7c6VlWrxC8ebbYooTxY00bz5Q5m89DZOEVD78jslwngUDFxlnTYwDhTKMhC4rFmk7nQOkHzSsfI= X-MS-TrafficTypeDiagnostic: CY1PR07MB2524: X-Microsoft-Exchange-Diagnostics: 1; CY1PR07MB2524; 20:d2pocfpIAa7VO4pMriFQk57RU4ArCqcrS/JYWKwVMq+MHuHJQo1Xvp5awaUUDXnb5sXUfA54+li867FKBogUH2FwzGJJ55XcPSKEprbMHtXzKVTYRsIjwGTTj5RhmCfnZ4Di2UgAG5VYuVkOqDuyA0gbxCH6zakP8C6mAjL/DY5Pv/MEE5by75to4Nnb5ltrqy+HASXF5uOvJQ8gULFbu29oFq3FpqwxDB/F56GDZtvDpJTvB8e1g/tCaEfRcrCSNVf9kfUjIBjLHe/g3xmUGbr6GuF8MbzQZT33FrqktALcfLe81BSBb/e59c9zhCh49CvWwUfjy3IPFOs0kT3sZAffWr2xtvuCPZfyR2euzWTnv9ET+PQ5lF+miPq+Nb3bg5qcV6tA2kHkWc2Cd578A+ZZWisvRaBTqiEkPa7iZWgaqWVSjxOX26diHiUmrQlFGmTTQ/ElGrWTChmJXEdL6hGNXGJoiFLX8W3BJfWEi6B39eC55CZcHMlnUa47tenzZx8q8BrZ87TbOynQCe0bv0zB8EDNhYI7Dvv+HwO3HFJRAs4ymCrouQM1pInN2JUkNu2T3EuknEqa/zOUngMqZALP3FAHK09LFvsKL4UNSLg= X-Exchange-Antispam-Report-Test: UriScan:(192374486261705)(185117386973197)(228905959029699); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(5005006)(8121501046)(100000703101)(100105400095)(3002001)(93006095)(10201501046)(6041248)(20161123558100)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(20161123562025)(20161123560025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY1PR07MB2524; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY1PR07MB2524; X-Microsoft-Exchange-Diagnostics: 1; CY1PR07MB2524; 4:BJiCVWo/ZtFk1nmg/y9K4w5U/3w1dQzLqhdyONAQws7Z4qDub0bfpyLNqvoQS4UEAQ8gewT+rafGK7/BQUY6l2xRiCoBi262B/AxTxChJVeZqrCeBP2CKHhvVlROBax55qUR4b3AC2wyt/HHxOuQHQSj/lpa42sfF+9JA4hr1N2d6JjdPD9d7IQ8sl5nfmwRsBC7DUfHnNlZsS0Yy/G9Z0OeUCxzfwaX7WSlo5oSz04BdkhREMC65go2W+2x6f1ts0GKqrq4WUmeCmj6IhH8NAzrJC/VH4SEtj7seb8FVfoUhFTpDG/n3h6lCQ0YNZ9CJBWqcCxAenpd2VBiIImfLWk0DSv1uIK0RAx4mNJ27vvUd5ffMks+I86AW46v1pbC X-Forefront-PRVS: 04347F8039 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(346002)(376002)(199003)(189002)(13464003)(7736002)(55016002)(81166006)(81156014)(2906002)(7416002)(8676002)(5660300001)(6666003)(42882006)(9686003)(110136004)(54356999)(50986999)(2950100002)(305945005)(4326008)(6916009)(6496005)(6246003)(101416001)(66066001)(47776003)(105586002)(8656003)(8936002)(68736007)(478600001)(33656002)(15650500001)(53936002)(106356001)(76176999)(33716001)(72206003)(50466002)(16526017)(316002)(83506001)(97736004)(16586007)(189998001)(58126008)(25786009)(23726003)(5009440100003)(1076002)(229853002)(3846002)(6116002)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR07MB2524; H:jerin; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR07MB2524; 23:03XqR62uZdN9RvX4NZX9+0S2bP3/Of4OmSwOpbzjO?= =?us-ascii?Q?LbdMl19kYJ8lh1qe4Razy7NsvAf24bYtyhr7AeNAt5RX7j8BZbTj4zmjAJiu?= =?us-ascii?Q?4qdPhmuHypU6LiccH0CUMKkHqE353qJ/goPRJdMcjgdMx4faJyzaRCvxgb4B?= =?us-ascii?Q?561Nw9aj1HuVMXMEHFv/PQCq5tIYKvxKNGKeMzptgrGvRtqb8U9HdtxC4wvo?= =?us-ascii?Q?2E3PQPe1kumNSHVJ+gHUzRXjZ+jgYNumGHStZNqCP0qB4txrojHvfeCY3VZN?= =?us-ascii?Q?q30iBkE+Bgf+CeGmLtZZEWYyKBj0EBTJoqNKscQaHI5Sd5BYEqDnA1LLW94h?= =?us-ascii?Q?ZOvnjmlMuFws9dzRX0bc0XDMh+5NPzqhZrpjtbLPzUs+RxOvZiZ0NN1wMzDy?= =?us-ascii?Q?o2Hzi23GQuQ8AP0xoxUo28gkDbud4wy6TFVZt/2z5Br7q78sYs50QjrHP19f?= =?us-ascii?Q?nr7fzvKkiaGAk8N6FxhzQ5Ch3B7WMHOJMbHqRZelPvsJfWZCz+bFiAbH8AVc?= =?us-ascii?Q?ar+fcM34RKp4Tk9u+SqrnoGU8KyyRyrnHlmixr5tx1YdsMKKemMBB1LgBij/?= =?us-ascii?Q?h4j9QROoP0NXyocd9xyi8GKk5GJz0eHeQZlgB0BVtOOHgAOThirLwsuwp+lw?= =?us-ascii?Q?3i1DT924q3IRvkBleec5Tmd7KqfNs9L2SK8HklJPnwWOCg0tABGuZcnJmOP3?= =?us-ascii?Q?d73sRYpEaDddrYsBy8ZyYiGHNfZYWk5i9z1Rum8jUZBWxvdPPGR5xQXLgag5?= =?us-ascii?Q?nb9ol7UJFTwq52BkEYG8DuJu516XFyeDy0vIvfqrH7aFF5MW9IZL/0muZLYo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aqehoOPEJeHMg62bt7c9a53Ucou7LK/WZcI3JQ80FtkMIjRHDfW3F1P1Sk4JHc4NJLFbyV0x61UP2bIDZ8EysFYL0+Kcw==; 24:fTEsGqJpCd+79N0WcggimdBAfsiFQHQMoVBYDY7RRm8fhr+6D80zrbc4qC0tVe9jEHsT5bHbPtrf6gkbHmEXpU3DUT9DG9/TlPRBgjywgeY=; 7:cNbsASJ0uLVZC/d5SS1Cs7tQrnqcWXkkzU4KwP5Bn536U5IkC7V0vBbkAbeLTr7amd/u0i5dJ1wbdC4K3YlgIBBkw1uASSMLO4dM7ZpxTGhWRkAKlNEf0S05vZ5tA7nf7gDrWi+VYxdxqgo3Q/XgFXYbLSCJqPBSnGDGWiOOJmwVGeebYgMmrtUjY1GQT9I7drx0tpQuaZN96z/IPy4ZD3UA7E7PnyJQQRS2cr4prVU= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Sep 2017 07:58:14.2425 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR07MB2524 Subject: Re: [dpdk-dev] [PATCH 06/11] ethdev: extend ethdev to support security APIs 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: Mon, 18 Sep 2017 07:58:20 -0000 -----Original Message----- > Date: Thu, 14 Sep 2017 13:56:46 +0530 > From: Akhil Goyal > To: dev@dpdk.org > CC: declan.doherty@intel.com, pablo.de.lara.guarch@intel.com, > hemant.agrawal@nxp.com, radu.nicolau@intel.com, borisp@mellanox.com, > aviadye@mellanox.com, thomas@monjalon.net, sandeep.malik@nxp.com, > jerin.jacob@caviumnetworks.com > Subject: [PATCH 06/11] ethdev: extend ethdev to support security APIs > X-Mailer: git-send-email 2.9.3 > > From: Declan Doherty > /** > @@ -907,6 +912,7 @@ struct rte_eth_conf { > #define DEV_RX_OFFLOAD_QINQ_STRIP 0x00000020 > #define DEV_RX_OFFLOAD_OUTER_IPV4_CKSUM 0x00000040 > #define DEV_RX_OFFLOAD_MACSEC_STRIP 0x00000080 > +#define DEV_RX_OFFLOAD_SECURITY 0x00000100 > > /** > * TX offload capabilities of a device. > @@ -926,6 +932,11 @@ struct rte_eth_conf { > #define DEV_TX_OFFLOAD_GENEVE_TNL_TSO 0x00001000 /**< Used for tunneling packet. */ > #define DEV_TX_OFFLOAD_MACSEC_INSERT 0x00002000 > #define DEV_TX_OFFLOAD_MT_LOCKFREE 0x00004000 > +#define DEV_TX_OFFLOAD_SECURITY 0x00008000 For the documentation side, Sharing the same views as Shahaf's > +#define DEV_TX_OFFLOAD_SEC_NEED_MDATA 0x00010000 If i understand correctly, it is more of a fixup if driver needs.I guess we can change to negative logic reflect it as offload. > +#define DEV_TX_OFFLOAD_IPSEC_CRYPTO_HW_TRAILER 0x00020000 > +#define DEV_TX_OFFLOAD_IPSEC_CRYPTO_TSO 0x00040000 > +#define DEV_TX_OFFLOAD_IPSEC_CRYPTO_CKSUM 0x00080000 > /**< Multiple threads can invoke rte_eth_tx_burst() concurrently on the same > * tx queue without SW lock. > */ The above text should come after DEV_TX_OFFLOAD_MT_LOCKFREE(Position got changed in this patch) > @@ -1651,6 +1662,9 @@ struct rte_eth_dev { > enum rte_eth_dev_state state; /**< Flag indicating the port state */ > } __rte_cache_aligned; >