From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-eopbgr70045.outbound.protection.outlook.com [40.107.7.45]) by dpdk.org (Postfix) with ESMTP id 4BAB25F20 for ; Fri, 14 Sep 2018 13:52:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=LBGRfkXkLu4AJJ6QqcMlA/vnmtGHwL/cz/Hu7nJt2cQ=; b=lRK6XB+aC4PdHrA2phTM3nIREAbZSIU6a+QqjlFoKqNWeCViBqQnaRRcMNdo6pEMz3xoND9F44cSJ0gyYCORsuaGAfmTRPhzaxkNlr8CryKJUPaPAemg7wSoS5NKpQ5pFW5ZgbWKB8pJtU0OP4xmUwg4jJHJTPiauyxOxS1OQnM= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=akhil.goyal@nxp.com; Received: from GDB1.ap.freescale.net (14.143.30.134) by VI1PR04MB4893.eurprd04.prod.outlook.com (2603:10a6:803:56::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1122.18; Fri, 14 Sep 2018 11:52:08 +0000 From: akhil.goyal@nxp.com To: dev@dpdk.org Cc: hemant.agrawal@nxp.com, pablo.de.lara.guarch@intel.com, Akhil Goyal Date: Fri, 14 Sep 2018 17:18:10 +0530 Message-Id: <20180914114810.14960-4-akhil.goyal@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180914114810.14960-1-akhil.goyal@nxp.com> References: <20180914114810.14960-1-akhil.goyal@nxp.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [14.143.30.134] X-ClientProxiedBy: TY2PR06CA0045.apcprd06.prod.outlook.com (2603:1096:404:2e::33) To VI1PR04MB4893.eurprd04.prod.outlook.com (2603:10a6:803:56::26) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 45a0f395-4c0d-461a-8c0d-08d61a38817b X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:VI1PR04MB4893; X-Microsoft-Exchange-Diagnostics: 1; VI1PR04MB4893; 3:flYSC6lyj1v06/yi4pKRSNy9l8HryHKFdANv/yog/Oi0nxKcBCASI9Yua+u85hhyjci8gk91uHP7VzO9Z/Cz86JN/8riPpgiO+jzWiY8p5cO6ZIlndl07pqlYJ/llOw8VtXXSA6lxhKDQV7Nn6o39pDYapRuf1x15HI30CyjoD8z37JHWn0YFro8CxBQf+onePJgbQFEExbQrKZK7CUaV6+jvAquI5sMLz3hdHIscst6EzlpMkFiUkrBGBpB6g/5; 25:O/GKywAJcZq+QCBqFpqS2lLibxQT8rCjcsrqGmr3m+8uH6gmYlmrbeH9gvkbQuvyTQdGKYe7CubTpjJgZ8e9vAy095lDW6ceSoF3hzNKPgpBUQxJx9vBI0tJ+ohvMN6NfRSjfuT3uekS0aWLwkjj4z2ISe44XcSZYsV4/zabIw82ymR5cbURBbQfhn9ABtRgnDVKGppoySYywB4dBWKuWG/wxhQDanfgD2Ob75S4d8fNvXglt3yDMKf4yiZ1Jt1eWso8hyhJth8AhX1LaxXQ8vBqW5yhMQjK956XhMJtb1Js5xASjRdYDfQpeXKp6LjoeYMGJBW5CDmBzYQlyyaUXw==; 31:k3/VNLWWF/v41X1b4ckhbLDR8DsDW6lgwrYSgZQRjU742vWGXwVNiiLGYliI+9ohqDoGieMocRcm1HJfJDB2esx1xeTx0fZSDPccqKYMWSy1ELjcnl/9K74vSZtQSks0JD5Mf3zDXbOJiO4SZ0MZKrkQylZtCF7Mtj0cy9pt/sf3+6jY0HB2IucYk95Z485EvkQazEx9A+8XFPKcuiQU7zBFCMPD+9bZyc2lsw1znVE= X-MS-TrafficTypeDiagnostic: VI1PR04MB4893: X-Microsoft-Exchange-Diagnostics: 1; VI1PR04MB4893; 20:fSVE8lTQO4UJZpdVFEIaYAezECDWydTovnCz5ykq8EhGBuGlliKJC1ElstH2D7cN86+wbKkvHpVEqK6YV2SdQUEcZDpwwafpYbk2zLrbdJoYl50PcGHRaqmi6lpYXilONMZuosz1WMy26lHTFZu8U1dbe9lcxFtrNbyBUPUcvhcWNYPIizaBN4k5fvetfcxGtT36t1pCs1hNg+Mtz2kovMFT7jRyE8S/bE5ywTV76uL+ke8VVkkkMvqTZVi45r771fyfFK0CpEtBpldDsky/tEJN54cHyDP2w4P2KnssS1dz9YuHacSOF0RPJMKteereRSZUMDT554GQKZ2WHgarKwze2/P6EI3Debud/H4B3ztRJ+rC7nbXdF7df1kWHdOJMHc6bjy8WCGKdchh4N3pgNFKOOTNbGQrUoacSCGybgdOZHsxvV67C/KlVxChlnjuLUpIE6hbTXuByDW22838eAfjPFkXazF6V5fOzPBYa3M0MId8KgBE7k2WRzyFjC+u; 4:kvooCBv4ysZK30lhG/EwbDSiVi5bJ7AXhN4Z89iQblgrHCL/jl/UqIb3ROJjWvxlgmqF1QncSKZXIBwHh2DKf+cNA5zuKkJxSwZmjIaNbcLIySHI/E+Wvmk6QUqmDu50aD6mvIUiR407CUOoJA/er+Qnw/6yiZ/LlmWh9SjJ6Ms6DpcMpJhyzOCJajKbl0lxSGzEs+Z6TZhgMhGruRWxbDZE0/bZs4FT18d3XPzX6M/NYHlda7V2ys8BE73utSp6m+Gm5JCvCEGBaENHhAri1l4kna3u5t5OqRuIm/XFcJAAVnUARo6RZmyx7dGKJ+8BsJaT/+eCdpjDh0bnNhGvlIn20+gGqlnpCwk+O1b1HAk= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(275809806118684); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(823301075)(3002001)(10201501046)(93006095)(93001095)(3231311)(944501410)(52105095)(6055026)(149027)(150027)(6041310)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123564045)(20161123560045)(201708071742011)(7699050); SRVR:VI1PR04MB4893; BCL:0; PCL:0; RULEID:; SRVR:VI1PR04MB4893; X-Forefront-PRVS: 07954CC105 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(376002)(396003)(136003)(346002)(366004)(39860400002)(199004)(189003)(86362001)(575784001)(6666003)(7736002)(105586002)(25786009)(6486002)(1076002)(5660300001)(6116002)(3846002)(47776003)(5024004)(53936002)(66066001)(2351001)(2361001)(106356001)(305945005)(50466002)(36756003)(6916009)(2906002)(6512007)(9686003)(4326008)(85782001)(48376002)(316002)(16586007)(186003)(16526019)(8936002)(486006)(81166006)(8676002)(50226002)(81156014)(5009440100003)(478600001)(68736007)(476003)(2616005)(51416003)(52116002)(11346002)(446003)(76176011)(26005)(956004)(386003)(33896004)(97736004)(6506007)(110426005)(85772001); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR04MB4893; H:GDB1.ap.freescale.net; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR04MB4893; 23:SUl8ZyoemjtfGKBgl2gKaNXJRfwq1L9m6GalCAzTe?= =?us-ascii?Q?pTRRdzPrtQce51ord1cxnNgWnM0ik0kTa1wWfteMZ3PWSvVBIwQ1O0EjDPYz?= =?us-ascii?Q?ilBJL0WFsLkZ2uCez8Xw+guXotDxd8i5hZr/ZQ5JBiuP/mmYeI5XS9JcYxQ4?= =?us-ascii?Q?2VRjyDRfXUcJhpN2ScSBIDvAppSBTQn2eUCEFDLW669nauccsGeYRWJMi3yn?= =?us-ascii?Q?TFoCEbFoJLiAPYj/pIaAgv1l2GMliT1yW3VQWEfThaSorm+nV3557EVScDBk?= =?us-ascii?Q?yxA1G92LlM/zDmgm8O18vVbvHnDXppymo9pjf4uEaAYGP/81MKy6E+EJxJ9t?= =?us-ascii?Q?5TnKoGcoktVjzWBrnxNPVTz/PqhoatnCPukwZzWpqBOwTlHHB4msQ4KhIWk2?= =?us-ascii?Q?botJxX+P9P4Ag4p1G6GCLrtQfkRTBCW/uqcoLrW13L9F+97X0g5tkA6xH8ik?= =?us-ascii?Q?e3Hn5UplNnDr35NOTQieDpiwGxRfO21lM1/20nZDimaE/JeFn1+k6v1v9IUm?= =?us-ascii?Q?a4HPscfj4ADvWTkc2rrmb9PGDHhoIq02b1DI4MfAdvXA5HAjvsUAhQw30nuq?= =?us-ascii?Q?4b4bYCFhzqIerw5T4+krtVb9O6x42+tWoko54XCuppKCGhDvTreQ4F7XpgVD?= =?us-ascii?Q?BTfSljCSdTx0J8u8FZYNeQtlpShmdiE9T/3O/k+mGEX0rEobpJ9VR9eT0T31?= =?us-ascii?Q?ngF36MNrCl3SmVJzYlENPaY3Pog5+6dGkjSB+QV+g8kCFdQvg3/VMNZa4srk?= =?us-ascii?Q?kbZIWkOvqcSv0V9taypvADfJ4hi9F2rc3vdP+mHilm617xIT6YdZkKZbdvjg?= =?us-ascii?Q?ZEoacGgZn4St7DNFTho4avDSelxaU/c7x70suQQROTPUgaD99MLVmwLbiyFO?= =?us-ascii?Q?1gM+vi9g4FHvH8JYAm+2UwYqr/gHptYaCXL/fUwfOZOZwCQfeOUjlAnbdoEr?= =?us-ascii?Q?eRhByXYp0HHNGJ9C78YvFdV+lhr1nczkFu9PFFPwwe/iHlMGByzxnOFt9xoO?= =?us-ascii?Q?SheW6t3wWlLWJiGH6JVhJVq4u3CmikaWvjTaiufQPLUn5+toPxqmtmU0sdld?= =?us-ascii?Q?EXo3idPqsWjrrAY72JXyjMqUzrktf0SF3nokOWg3quvzAhKbgMC+0hOzKzDP?= =?us-ascii?Q?xVv7vh8jxTWrjoZd6x1BpXGGY4mjMSjyspc2OVUw/74i7bkp6RWOEYbDte96?= =?us-ascii?Q?9sp6u7EX+EhfbPYzkn/Dcz+ojSnOgeBX/pFwqnNBSLH+mWWHNG7grw3r4Fdq?= =?us-ascii?Q?qXYRsHDXLB46Q+OFaamlZvsUPd2XnqgakZ8vDViv3INb9L9p7OAzmVMZwUyw?= =?us-ascii?Q?BjGCCGrl0jqwWnMtctP7OCJ4xvdDXT7xLVcDV/BU0OCp7bfN3aI/ZGO+i+SU?= =?us-ascii?Q?JUe5Mqd5qYMpkpmfuj3Wf79Jnfzmj+7d/3fNDW/u9h+MzWE?= X-Microsoft-Antispam-Message-Info: pfSFyJNVD/4cNAezWg3HNKu2gZ8MIgcZzYabIqwAURSbCnCm5V9mwBKCtcAEZcaa40abg2SvCdvg99ZLWdQSe7Pru2vlBdog7wqcXSTp8ecBN6OJBtMVN8PmPYHlEy3fmaqSYacNnBOIDWPQwejmOrNC0C1Fr7rCh15YJF1RRsYHUlj9tv8MSKR8rKArNlGIlU0wGJXNN5+sfl65ggCoZrIrrZoz1fg0kmkjAmHutAgoJV3TOmk7VY3j3Klf7ddUhjJK7i/6ziCkrkBW41/PuVHfWUZRQdBOygCLJ2dA0qBWWvsdPlQHKAnuw71Xgoq/XzyGEHXule+96pZkeMd+Wgu3mSLn8hLpHO48gLip9vM= X-Microsoft-Exchange-Diagnostics: 1; VI1PR04MB4893; 6:/RzyXt5h0nz+L2NwDSgVXLQ4iGtCh6eRQ6PQEFrl4cIqW0oTh2T5zZ7aTtPzqi1v1LFSB2Pcmx9B+Us9zquVeD5qMZqQ/j+SV55PUrJxeW3bTbuHm9iD3TEDVJ20Bt7acQhYyK7GJCxLV8qn/PiRKcUydsYQp/IEsXRwnALU4DClVcVms5KccoTSrzAmR6ZA+t3lJVP97tteJSfuwzucKBrme9oYeib1vaHixxl/KPXzj8xSZLTfkx8/dbEiFIfR7Il0qZL0zlWtlWU8K6laC0/cQXNlCPNMDE3Y08vVt3XFCXzhtEZe5rjqpXL7BUY9TmsAnozdadvbDiyG7oiWXhVd+wpR/JzBwe4k8yxgkhPww+MFwDsS5VoUsnyOrYqbCTe/5cAYNdeRxWjCwYFbMT1XsIqKmm9WE0SHEFk78MCyiV/cbWHOncK6XEbo0Qky1qL3xK5S6wikqs59OP9n4g==; 5:dWBn/xsK+DwPDQU8VbRGzI0uv4lmi74deuFuw1T0h0333C464GwDHb3/7gFFYld5ZadyUK98R3qSbb2D4RJlH4fbUVhtM2j5MeKfvFPr+GBU0DymB32jK/tkbSBdUjxRjRmuSk4030EO1+qC/q8XZApeNY+Bh5wUNkx0TNsUbBM=; 7:SNrHdp7UVZrHsYCLMWr7sVxcg8JPXMsNdEjJ9Nb5Q5fbq6o0yZHw9RNBnMmh9PD/G0gNF7/PSqDPQrxG3F36ce3vC+ZTBuaSCi+8bLu/Z/IiDiIIjISu2sNM1Wz/xKt9newfy1+GDCw/DSmMlY8wTjj9xyGk2lCABQtCukHKf9RUoPpv6nooLcIkRoUwadyXNWM863qz8nKIyILRg21bYq4ysP4qzjzQNhnopo0Kh3N8LJvFEIxtJUoDJz+9fZNj SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Sep 2018 11:52:08.8914 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 45a0f395-4c0d-461a-8c0d-08d61a38817b X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB4893 Subject: [dpdk-dev] [PATCH 3/3] event/dpaa2: support for crypto adapter 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: Fri, 14 Sep 2018 11:52:12 -0000 From: Akhil Goyal Signed-off-by: Akhil Goyal Signed-off-by: Ashish Jain Signed-off-by: Hemant Agrawal --- drivers/event/dpaa2/Makefile | 3 +- drivers/event/dpaa2/dpaa2_eventdev.c | 150 +++++++++++++++++++++++++++ drivers/event/dpaa2/dpaa2_eventdev.h | 9 ++ drivers/event/dpaa2/meson.build | 3 +- 4 files changed, 163 insertions(+), 2 deletions(-) diff --git a/drivers/event/dpaa2/Makefile b/drivers/event/dpaa2/Makefile index 5e1a63200..46f7d061e 100644 --- a/drivers/event/dpaa2/Makefile +++ b/drivers/event/dpaa2/Makefile @@ -20,9 +20,10 @@ CFLAGS += -I$(RTE_SDK)/drivers/event/dpaa2 CFLAGS += -I$(RTE_SDK)/lib/librte_eal/linuxapp/eal LDLIBS += -lrte_eal -lrte_eventdev LDLIBS += -lrte_bus_fslmc -lrte_mempool_dpaa2 -lrte_pmd_dpaa2 -LDLIBS += -lrte_bus_vdev +LDLIBS += -lrte_bus_vdev -lrte_pmd_dpaa2_sec CFLAGS += -I$(RTE_SDK)/drivers/net/dpaa2 CFLAGS += -I$(RTE_SDK)/drivers/net/dpaa2/mc +CFLAGS += -I$(RTE_SDK)/drivers/crypto/dpaa2_sec # versioning export map EXPORT_MAP := rte_pmd_dpaa2_event_version.map diff --git a/drivers/event/dpaa2/dpaa2_eventdev.c b/drivers/event/dpaa2/dpaa2_eventdev.c index cadbdb13b..890ab461c 100644 --- a/drivers/event/dpaa2/dpaa2_eventdev.c +++ b/drivers/event/dpaa2/dpaa2_eventdev.c @@ -27,6 +27,7 @@ #include #include #include +#include #include #include @@ -34,6 +35,7 @@ #include #include #include +#include #include "dpaa2_eventdev.h" #include "dpaa2_eventdev_logs.h" #include @@ -793,6 +795,149 @@ dpaa2_eventdev_eth_stop(const struct rte_eventdev *dev, return 0; } +static int +dpaa2_eventdev_crypto_caps_get(const struct rte_eventdev *dev, + const struct rte_cryptodev *cdev, + uint32_t *caps) +{ + const char *name = cdev->data->name; + + EVENTDEV_INIT_FUNC_TRACE(); + + RTE_SET_USED(dev); + + if (!strncmp(name, "dpsec-", 6)) + *caps = RTE_EVENT_CRYPTO_ADAPTER_DPAA2_CAP; + else + return -1; + + return 0; +} + +static int +dpaa2_eventdev_crypto_queue_add_all(const struct rte_eventdev *dev, + const struct rte_cryptodev *cryptodev, + const struct rte_event *ev) +{ + struct dpaa2_eventdev *priv = dev->data->dev_private; + uint8_t ev_qid = ev->queue_id; + uint16_t dpcon_id = priv->evq_info[ev_qid].dpcon->dpcon_id; + int i, ret; + + EVENTDEV_INIT_FUNC_TRACE(); + + for (i = 0; i < cryptodev->data->nb_queue_pairs; i++) { + ret = dpaa2_sec_eventq_attach(cryptodev, i, + dpcon_id, ev); + if (ret) { + DPAA2_EVENTDEV_ERR("dpaa2_sec_eventq_attach failed: ret %d\n", + ret); + goto fail; + } + } + return 0; +fail: + for (i = (i - 1); i >= 0 ; i--) + dpaa2_sec_eventq_detach(cryptodev, i); + + return ret; +} + +static int +dpaa2_eventdev_crypto_queue_add(const struct rte_eventdev *dev, + const struct rte_cryptodev *cryptodev, + int32_t rx_queue_id, + const struct rte_event *ev) +{ + struct dpaa2_eventdev *priv = dev->data->dev_private; + uint8_t ev_qid = ev->queue_id; + uint16_t dpcon_id = priv->evq_info[ev_qid].dpcon->dpcon_id; + int ret; + + EVENTDEV_INIT_FUNC_TRACE(); + + if (rx_queue_id == -1) + return dpaa2_eventdev_crypto_queue_add_all(dev, + cryptodev, ev); + + ret = dpaa2_sec_eventq_attach(cryptodev, rx_queue_id, + dpcon_id, ev); + if (ret) { + DPAA2_EVENTDEV_ERR( + "dpaa2_sec_eventq_attach failed: ret: %d\n", ret); + return ret; + } + return 0; +} + +static int +dpaa2_eventdev_crypto_queue_del_all(const struct rte_eventdev *dev, + const struct rte_cryptodev *cdev) +{ + int i, ret; + + EVENTDEV_INIT_FUNC_TRACE(); + + RTE_SET_USED(dev); + + for (i = 0; i < cdev->data->nb_queue_pairs; i++) { + ret = dpaa2_sec_eventq_detach(cdev, i); + if (ret) { + DPAA2_EVENTDEV_ERR( + "dpaa2_sec_eventq_detach failed:ret %d\n", ret); + return ret; + } + } + + return 0; +} + +static int +dpaa2_eventdev_crypto_queue_del(const struct rte_eventdev *dev, + const struct rte_cryptodev *cryptodev, + int32_t rx_queue_id) +{ + int ret; + + EVENTDEV_INIT_FUNC_TRACE(); + + if (rx_queue_id == -1) + return dpaa2_eventdev_crypto_queue_del_all(dev, cryptodev); + + ret = dpaa2_sec_eventq_detach(cryptodev, rx_queue_id); + if (ret) { + DPAA2_EVENTDEV_ERR( + "dpaa2_sec_eventq_detach failed: ret: %d\n", ret); + return ret; + } + + return 0; +} + +static int +dpaa2_eventdev_crypto_start(const struct rte_eventdev *dev, + const struct rte_cryptodev *cryptodev) +{ + EVENTDEV_INIT_FUNC_TRACE(); + + RTE_SET_USED(dev); + RTE_SET_USED(cryptodev); + + return 0; +} + +static int +dpaa2_eventdev_crypto_stop(const struct rte_eventdev *dev, + const struct rte_cryptodev *cryptodev) +{ + EVENTDEV_INIT_FUNC_TRACE(); + + RTE_SET_USED(dev); + RTE_SET_USED(cryptodev); + + return 0; +} + static struct rte_eventdev_ops dpaa2_eventdev_ops = { .dev_infos_get = dpaa2_eventdev_info_get, .dev_configure = dpaa2_eventdev_configure, @@ -814,6 +959,11 @@ static struct rte_eventdev_ops dpaa2_eventdev_ops = { .eth_rx_adapter_queue_del = dpaa2_eventdev_eth_queue_del, .eth_rx_adapter_start = dpaa2_eventdev_eth_start, .eth_rx_adapter_stop = dpaa2_eventdev_eth_stop, + .crypto_adapter_caps_get = dpaa2_eventdev_crypto_caps_get, + .crypto_adapter_queue_pair_add = dpaa2_eventdev_crypto_queue_add, + .crypto_adapter_queue_pair_del = dpaa2_eventdev_crypto_queue_del, + .crypto_adapter_start = dpaa2_eventdev_crypto_start, + .crypto_adapter_stop = dpaa2_eventdev_crypto_stop, }; static int diff --git a/drivers/event/dpaa2/dpaa2_eventdev.h b/drivers/event/dpaa2/dpaa2_eventdev.h index 720e0c63b..c847b3eab 100644 --- a/drivers/event/dpaa2/dpaa2_eventdev.h +++ b/drivers/event/dpaa2/dpaa2_eventdev.h @@ -42,6 +42,15 @@ enum { (RTE_EVENT_ETH_RX_ADAPTER_CAP_INTERNAL_PORT | \ RTE_EVENT_ETH_RX_ADAPTER_CAP_MULTI_EVENTQ | \ RTE_EVENT_ETH_RX_ADAPTER_CAP_OVERRIDE_FLOW_ID) + +/**< Crypto Rx adapter cap to return If the packet transfers from + * the cryptodev to eventdev with DPAA2 devices. + */ +#define RTE_EVENT_CRYPTO_ADAPTER_DPAA2_CAP \ + (RTE_EVENT_CRYPTO_ADAPTER_CAP_INTERNAL_PORT_OP_NEW | \ + RTE_EVENT_CRYPTO_ADAPTER_CAP_INTERNAL_PORT_QP_EV_BIND | \ + RTE_EVENT_CRYPTO_ADAPTER_CAP_SESSION_PRIVATE_DATA) + /**< Ethernet Rx adapter cap to return If the packet transfers from * the ethdev to eventdev with DPAA2 devices. */ diff --git a/drivers/event/dpaa2/meson.build b/drivers/event/dpaa2/meson.build index de7a46155..c1bd63384 100644 --- a/drivers/event/dpaa2/meson.build +++ b/drivers/event/dpaa2/meson.build @@ -4,8 +4,9 @@ if host_machine.system() != 'linux' build = false endif -deps += ['bus_vdev', 'pmd_dpaa2'] +deps += ['bus_vdev', 'pmd_dpaa2', 'pmd_dpaa2_sec'] sources = files('dpaa2_hw_dpcon.c', 'dpaa2_eventdev.c') allow_experimental_apis = true +includes += include_directories('../../crypto/dpaa2_sec/') -- 2.17.1