From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 047D2A0350; Tue, 23 Jun 2020 19:30:01 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D218C1D6C0; Tue, 23 Jun 2020 19:30:00 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 3F46F1D6B5 for ; Tue, 23 Jun 2020 19:29:59 +0200 (CEST) IronPort-SDR: qIBqBgKhqvmGrRV2ZAENoYdo0gW0spT3wehdhmDl59C/3xpyOM+2OPlJBabrDgB1Zf8f1xoPfV ekdvpeXdlWiw== X-IronPort-AV: E=McAfee;i="6000,8403,9661"; a="228834904" X-IronPort-AV: E=Sophos;i="5.75,272,1589266800"; d="scan'208";a="228834904" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jun 2020 10:29:57 -0700 IronPort-SDR: 4H2tDHPkPjVXGDNaLSqF/RPnYS6xKlmj4R6elviBYcubhwZXSVCoqz/F2DpzjrbkBqHc7vFizR Bw/qp4N+6ZMQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,272,1589266800"; d="scan'208";a="279182230" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga006.jf.intel.com with ESMTP; 23 Jun 2020 10:29:56 -0700 Received: from fmsmsx102.amr.corp.intel.com (10.18.124.200) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 23 Jun 2020 10:29:56 -0700 Received: from FMSEDG001.ED.cps.intel.com (10.1.192.133) by FMSMSX102.amr.corp.intel.com (10.18.124.200) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 23 Jun 2020 10:29:55 -0700 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (104.47.66.40) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 23 Jun 2020 10:29:54 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YYtfQzVcwTsW4WY1aI8u3Yb9Qs3BIjXHYegEVL/Q9wtB+qtGc2/07SS79FD+USTd1SEEhFy6wJ0JOR0QO1b2HgcUavVo3iS5+4v8aGIh0ao+cl7UgqV/dYDhr4h/Ior2Ss9XdLiao+SCOnIaBV/ZmtiIVb01w9C0vOizfDxmnCbbTqbOxrehhBMEMz2TckuXnp3QBBdMis4Tul353S/hqL6krTi9KKCSeub4Qoegkl+RrKLjZLNk+pc4M6EgK0NcXcTj1Z+CPKxl80gKdUAwC7j/5xf022qCPSfbAwkoWwM8pqmq7GkvTtEf6U6FwyvqHhBDdjMaNx3zbHRHBF/fKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=lNWkiL3XaoRx8aHmIsy4czbieAS1rask45CSJh89xEA=; b=BQlgQwpHAdAoHpfhNAcjs99bI4Mt7rjKEsdpbNWhgh+OGICALWEDaWFEuuKTxboI4ejyEXVwOPdEwekO1Y0v/xg+lUEjQ+oZkXNb+UB68Z+xUcyQCYO3h+SGUf49+TWCNpxr1V3PWNCAuKWy6NJOrk+PkzWsy4Hqsbj/j7Cp/pF9KuwXhASahHHUdThiGPYfLCOiXZcxSR7IHsmCSLgJe6DRz1UwLCUZtZKHfSJ0bwlIBrsbc7+wLn047wR4Nut/4UmbAAQrORh5SH86jwwPuRL7blUtB2/e2oJgxj/VnYFKuKZ45nm0RO48+dWYgRdSaX+rD+2eVdKmDrJwPLp7mg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=lNWkiL3XaoRx8aHmIsy4czbieAS1rask45CSJh89xEA=; b=OGglO+khZcY+RMH3TYm2qYZ9UhSKtjF20kb/zR+sDayBiU4DWRvj4rmHI3/1N3k14YtExoK2g6qiK+GpQEvh/SMMR9s+aupjnEzCJcdZtivqQtz/jwPjGdfFCX/yiUqaa8aCSH/2TcCp8ccUhGJqk4zmTOe1rWnNzoDpv2lYf5Y= Received: from SN6PR11MB3101.namprd11.prod.outlook.com (2603:10b6:805:d8::23) by SN6PR11MB2941.namprd11.prod.outlook.com (2603:10b6:805:dc::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3109.23; Tue, 23 Jun 2020 17:29:52 +0000 Received: from SN6PR11MB3101.namprd11.prod.outlook.com ([fe80::ac58:2cf3:c611:9b0]) by SN6PR11MB3101.namprd11.prod.outlook.com ([fe80::ac58:2cf3:c611:9b0%3]) with mapi id 15.20.3109.027; Tue, 23 Jun 2020 17:29:52 +0000 From: "De Lara Guarch, Pablo" To: "Coyle, David" , "akhil.goyal@nxp.com" , "Doherty, Declan" , "Trahe, Fiona" , "Zhang, Roy Fan" , "Ananyev, Konstantin" CC: "dev@dpdk.org" , "thomas@monjalon.net" , "Yigit, Ferruh" , "Ryan, Brendan" , "hemant.agrawal@nxp.com" , "anoobj@marvell.com" , "ruifeng.wang@arm.com" , "lironh@marvell.com" , "rnagadheeraj@marvell.com" , "jsrikanth@marvell.com" , "G.Singh@nxp.com" , "jianjay.zhou@huawei.com" , "ravi1.kumar@amd.com" , "Richardson, Bruce" , "olivier.matz@6wind.com" , "honnappa.nagarahalli@arm.com" , "stephen@networkplumber.org" , "alexr@mellanox.com" , "jerinj@marvell.com" , "O'loingsigh, Mairtin" Thread-Topic: [PATCH v2 2/6] security: add support for DOCSIS protocol Thread-Index: AQHWSUpCre+jfQjc/EyGJmLYChH1WajmVHyg Date: Tue, 23 Jun 2020 17:29:52 +0000 Message-ID: References: <20200604151324.50704-1-david.coyle@intel.com> <20200623101423.9215-1-david.coyle@intel.com> <20200623101423.9215-3-david.coyle@intel.com> In-Reply-To: <20200623101423.9215-3-david.coyle@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.2.0.6 authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [192.198.151.190] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 986c5299-d17c-4796-b57d-08d8179b09dc x-ms-traffictypediagnostic: SN6PR11MB2941: x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:3631; x-forefront-prvs: 04433051BF x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: /CSAgs1CIj9+xAvzFcC1Gw4DhPyS1oaZJKbVxV1T37YOMtUo76VXNuShOQolm0II1I4DNtVk01Rmqxfz8Stxnl7tqLN/6lKknZvguo09gvDHVEYu4A1mkEDuRZL3zNWDq5u9Ak0bss0y1QcImo+A4TBq7gFp6bi7izsrz52ipRIaMUHHGwb4bnAOKYG6s7AfAiRS4wUQWoDE/RBFYhhUIvnddQkal/a2t7bfvutk0nmmVPMaMn2jKFDu3UrtdS0mrXLoCKytpOqAZnFWsaXfcDCyZRxb1WBorOrB+phyHmSWwE4Iy6oXkgpSh6w6iP4SW/tMxD5TQxCsmhnR0fsqmXjsysAJGJxfn42LTz/FxWC8p+Xv78Yl22fqzaUtutVY x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN6PR11MB3101.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(366004)(376002)(396003)(136003)(346002)(39850400004)(186003)(2906002)(9686003)(55016002)(52536014)(316002)(5660300002)(26005)(110136005)(71200400001)(7696005)(53546011)(6636002)(6506007)(7416002)(54906003)(8676002)(8936002)(33656002)(15650500001)(86362001)(76116006)(83380400001)(66476007)(66556008)(107886003)(66946007)(64756008)(66446008)(4326008)(478600001)(921003); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: EeevbwPi7oOOOAoW/pk+MQ7MkbFo9Rs+xmi/gl/LoE3lji5Riw8YvDDJoIabUxMvRH05Kxt7ijBHOHz55vjTmo9ZTtiRGjNf7hDJNMViDrwig7MrlBHJ7EBIYjyxclieHTOvCk5HdqSDNIn4ieeZU3wh7fpoFgHoS6euId40m3k/7PAU7AFWCbNNBi13knwDu3mNuMb0LFMFsgVYHvQXneNMhY7aecZCKu83VL7HM8zT2FaS+f2uHhixYYgT+YPiqrvd4fgi+DFxK+BtSHw2dLOUGu868gLs5t01U9T9h2lJoBqNZntX1bGXEV4NMD2f4cGYv0dI9c9EgslyDX8zftEDlSGe+kvVLHQF2JejY91MDqNOX7+xA1u1C+qULZoY6rEMkw/4OyflCq/glvJkxOlGT36A0B95ZE6EzhbuvO4lB6/QqLHwRgx+eFYuJ2PA5JuOV8z6mRA1EtvWdDP5vthVIIft6ta3q28LyOBNu3H7SvhBS1Oi8Io3t/M2KVWu Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 986c5299-d17c-4796-b57d-08d8179b09dc X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Jun 2020 17:29:52.2765 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: BBWnW6Ro2iiLdLMH/d+AlP/SUZWIzWn00Fg04NpKGh9f+kCpUsAic238d39i/3ZnQB5soi0ISb+2SqehBBkaw4nUOYSJgCNfvibOHN4LmEQ= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR11MB2941 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v2 2/6] security: add support for DOCSIS protocol 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > -----Original Message----- > From: Coyle, David > Sent: Tuesday, June 23, 2020 11:14 AM > To: akhil.goyal@nxp.com; Doherty, Declan ; De > Lara Guarch, Pablo ; Trahe, Fiona > ; Zhang, Roy Fan ; > Ananyev, Konstantin > Cc: dev@dpdk.org; thomas@monjalon.net; Yigit, Ferruh > ; Ryan, Brendan ; > hemant.agrawal@nxp.com; anoobj@marvell.com; ruifeng.wang@arm.com; > lironh@marvell.com; rnagadheeraj@marvell.com; jsrikanth@marvell.com; > G.Singh@nxp.com; jianjay.zhou@huawei.com; ravi1.kumar@amd.com; > Richardson, Bruce ; olivier.matz@6wind.com; > honnappa.nagarahalli@arm.com; stephen@networkplumber.org; > alexr@mellanox.com; jerinj@marvell.com; Coyle, David > ; O'loingsigh, Mairtin > Subject: [PATCH v2 2/6] security: add support for DOCSIS protocol >=20 > Add support for DOCSIS protocol to rte_security library. This support cur= rently > comprises the combination of Crypto and CRC operations. >=20 > A security operation definition is also added. This allow security protoc= ol related > parameters be specified at the operation level. For DOCSIS, these paramet= ers > include CRC length and offset. The security operation is accessed via a c= rypto > operation. >=20 > Signed-off-by: David Coyle > Signed-off-by: Mairtin o Loingsigh ... > +++ b/lib/librte_security/rte_security.h > @@ -293,6 +293,30 @@ struct rte_security_pdcp_xform { > uint32_t hfn_ovrd; > }; >=20 > +/** DOCSIS direction */ > +enum rte_security_docsis_direction { > + RTE_SECURITY_DOCSIS_UPLINK, > + /**< Uplink > + * - Decryption, followed by CRC Verification > + */ > + RTE_SECURITY_DOCSIS_DOWNLINK, > + /**< Downlink > + * - CRC Generation, followed by Encryption > + */ > +}; > + > +/** > + * DOCSIS security session configuration. > + * > + * This structure contains data required to create a DOCSIS security ses= sion. > + */ > +struct rte_security_docsis_xform { > + enum rte_security_docsis_direction direction; > + /** DOCSIS direction */ Missing "<" here.