From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0058.outbound.protection.outlook.com [104.47.41.58]) by dpdk.org (Postfix) with ESMTP id 2293FA493 for ; Mon, 22 Jan 2018 14:11:53 +0100 (CET) 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=e7G4qat1xiMf59DZEFnZFGfyIzqN72E3tbjMXzJnslo=; b=npGwIYByJ2ne0k8qEJ777f/zamPLZ+LwhdLlI1uwBnchhtSPCicomBxBzfF45uXgm9no0TrFKMypZqlbK2sHz/LkO1x0yTXckOc3xj5jywSkBrXwE4Ej98ZUaQC0F9zgX2h2AZwzw14FPEyhqeIMsr+7+U3G5rZJ/ud04qV1QNg= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Anoob.Joseph@cavium.com; Received: from ajoseph83.caveonetworks.com (115.113.156.2) by SN2PR0701MB1071.namprd07.prod.outlook.com (2a01:111:e400:341f::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.428.17; Mon, 22 Jan 2018 13:11:47 +0000 From: Anoob Joseph To: Akhil Goyal , Declan Doherty , Radu Nicolau , Sergio Gonzalez Monroy Cc: Anoob Joseph , Jerin Jacob , Narayana Prasad , Nelio Laranjeiro , dev@dpdk.org Date: Mon, 22 Jan 2018 13:11:07 +0000 Message-Id: <1516626668-9031-3-git-send-email-anoob.joseph@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516626668-9031-1-git-send-email-anoob.joseph@caviumnetworks.com> References: <1516626668-9031-1-git-send-email-anoob.joseph@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [115.113.156.2] X-ClientProxiedBy: MWHPR14CA0068.namprd14.prod.outlook.com (2603:10b6:300:81::30) To SN2PR0701MB1071.namprd07.prod.outlook.com (2a01:111:e400:341f::17) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a8ae17a9-50f3-45dd-3caf-08d56199b326 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(4534125)(4602075)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603307)(7153060)(7193020); SRVR:SN2PR0701MB1071; X-Microsoft-Exchange-Diagnostics: 1; SN2PR0701MB1071; 3:kPSNXiLODD3+NcOxUaBki/YQxcXPHcJDdr7VmAPxzjdPUuKoYO865kUak8j90Qh5MNCqOvTsUxo9r0/eQwXn0lEKX2n7ES8Iil+5yztsKtrfqyHlRH+ClsTI8zkOjqp+BPJdbeKI3S03AwqzCSjL5FHMpt9RpD2n06l0ocLMFkBx2ct7RQXzUn97Wph5gGAapc7J2eHh71wYWhQAsfk9XYYQcNslgTNlvnmztGNjpwVJ25Puaj9nQGBrShQWMZ6k; 25:tw8tYBlgWTV6EmYuqlo2B44NJYpoBsMgvkiL8byIwlg7DXI2tF3G57qWmeewonH2ee3pew7QEPAJQFhZ0ZFpwp2ng8+5UDn4ynEeNEAeVe9Amllyv883BqgwZLWWvOmJq/vLNpEaCSOC66YxlkXWPAlHXCqZecMOxwaCMg0mNvrprhcJKlESQiU8iWfTUMH6sr7o5nWfMgfDTfqrTtRqh1eRxd3TUNIqJNylXQh7oCPqLoLHkX/5v940ZXyp7yRn3r2wDGLlcSw549Lay3hwaYq2jgYMpSSi1SJACh5ZYJ42+xml/ADVNzJj5L0gh6bPJ8p9++UmOJb40ZSoatWqyA==; 31:bMneIkbb95SwjutZ9UvDpO0ejzI3qh13ouGbLJiArXwDAhhrym/EmJY+1beuFlN8XA06FKEFbcTQSz3x1kD+s9keTt3W/iYf+E/Rs9+1ScId2vdvwR8vJtB8oJoe6xRTqqjD9zPAixpQqo4/k6l6XzKME1tmNX29RWJtZCc5ucr+tkBjTdVsx/J0HyKyCIpMd9nIBtk187NI6g4LQ59zUrfZRGC8/G+NfMCuK15bKTI= X-MS-TrafficTypeDiagnostic: SN2PR0701MB1071: X-Microsoft-Exchange-Diagnostics: 1; SN2PR0701MB1071; 20:GLJ/+DGf/xt6Ui4rFQkPQiCaUN32YNDuPP2moj/6Bum4I6PEClA/yCj9r9/mEAPNa2uR0603/hHOxh2ghFQ99ab8kFWldwNzSUZ3/C+gCitYuivJ0RAqBDg047G4RehsdYmIikaZuK2MrKWAQM4kd9H/FjKJrrsbdm8/lktDpmZepEeVRnWazzMbK6ggn1XJuFletnauNxo7LEfJ4tdpcccz7TVyy4NkScJSheriBwv81rftO734c5fLR1GLY7DRNwvP0llaZDR/VV1M//ehbjraM9jkw0aQk0aDNaBgA3v+zbrFzoaCKjSr3Q+ac8a8dyVTHPez90WQ0kPMJH8XG2/jYtb15/k7tDB5CYlrGU8zQXmq31VaVLJcPvCNx8ij1WdlM0CZbPkIAZZPKl+bFoho1vmjnfj1IzJPmqSuPMynTz8rnqyLOntXNX/0vKo91eO4dzLZ5VcoWqdHxqt20KWk+ZCw7JjU6FUamOToEq7FHxWvhnmiKO/BFcRs+T6UAY1T7HxpVcB49uEAj6OmOw8U14oQTRHNuGXG7Elw98D9o4CphRqg/VMy3WQd+flq4j1dxgpMzp2N4q1LYqHvDHYOizDjwTAV2PXfLfs1MAs=; 4:fjEIxAS1UoBZ2WzZHRLgq+Ixwj7JeQjLeJpQNoeil6dx6UzNpRqowNxBfYH7DYu66BFDZr5oEuPOHwNaXZiXlHQCMp5IDhtvVYuSCjyYB22SVTDI4dOqQbrn6NHOmKYilhY9/le1L8IRkf9VC5QvuhEjrbbLCLGWVXJE1NKfuZXhLsOZC3QvIm1m6Rmixr/LPFHIcu4BNm5qXheEREBmeoFRy6OaxkaOH5XWZe5xLTzxzHKUz+1sjTPCyYCtgLC5i9XJDQt5ctfkNlrPKiuiLw== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040501)(2401047)(8121501046)(5005006)(3002001)(10201501046)(93006095)(3231023)(2400081)(944501161)(6041288)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:SN2PR0701MB1071; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:SN2PR0701MB1071; X-Forefront-PRVS: 0560A2214D X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39380400002)(376002)(396003)(39850400004)(366004)(346002)(199004)(189003)(6506007)(47776003)(16526018)(69596002)(72206003)(8936002)(8656006)(25786009)(6512007)(3846002)(6116002)(68736007)(53936002)(6486002)(4326008)(386003)(8676002)(66066001)(6666003)(2906002)(55236004)(2950100002)(50466002)(81166006)(36756003)(81156014)(42882006)(110136005)(54906003)(106356001)(16586007)(48376002)(316002)(105586002)(53416004)(478600001)(305945005)(50226002)(7736002)(5660300001)(51416003)(97736004)(52116002)(76176011)(26005)(59450400001); DIR:OUT; SFP:1101; SCL:1; SRVR:SN2PR0701MB1071; H:ajoseph83.caveonetworks.com; 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; SN2PR0701MB1071; 23:WtSf4/m1PRrFBUnws5sniPWaCCegfl5XbGz8y7U?= =?us-ascii?Q?88lbb3xj0JUJyqUUncaFSSV8kcX1q7MGHti5GFQe7sXvo+9Ae/0If/63M6BJ?= =?us-ascii?Q?+UaoV6WLQEAztQqkFoifaxOLDD4T6A+KTOK7WeeUkoneDG4NzXALgRUxNc6J?= =?us-ascii?Q?2P2xKaWHJ/EpGUjjbyZw0ZQPKCC2fes/gxdNmbMc4lgpRf3gyU0JgVZbugvx?= =?us-ascii?Q?DCuGpAhUDe9qjqm8n/GCKv9hQVVlheVR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vyPCVtZWjddeCqAwEHLNhV0qAUssDXbhBWccZJQjUG8CL1+t SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jan 2018 13:11:47.5842 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a8ae17a9-50f3-45dd-3caf-08d56199b326 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN2PR0701MB1071 Subject: [dpdk-dev] [RFC 2/3] net/ixgbe: use structure for passing metadata 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, 22 Jan 2018 13:11:53 -0000 Using structure to pass metadata Signed-off-by: Anoob Joseph --- drivers/net/ixgbe/ixgbe_ipsec.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/net/ixgbe/ixgbe_ipsec.c b/drivers/net/ixgbe/ixgbe_ipsec.c index 85305c6..6c8d6b4 100644 --- a/drivers/net/ixgbe/ixgbe_ipsec.c +++ b/drivers/net/ixgbe/ixgbe_ipsec.c @@ -444,9 +444,10 @@ ixgbe_crypto_compute_pad_len(struct rte_mbuf *m) static int ixgbe_crypto_update_mb(void *device __rte_unused, - struct rte_security_session *session, - struct rte_mbuf *m, void *params __rte_unused) + struct rte_security_mdata *sec_mdata, + struct rte_mbuf *m) { + struct rte_security_session *session = sec_mdata->sess; struct ixgbe_crypto_session *ic_session = get_sec_session_private_data(session); if (ic_session->op == IXGBE_OP_AUTHENTICATED_ENCRYPTION) { -- 2.7.4