From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0087.outbound.protection.outlook.com [104.47.40.87]) by dpdk.org (Postfix) with ESMTP id 4A0E62BB1 for ; Tue, 28 Feb 2017 12:49:45 +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=b7plQbwbLugPAM6Bd8BMsY3pd0BZ08HnnLesHA6BAQ8=; b=azrC9+JcPxsaKyvKNg1sbW+YtTI8SG6yW05gWUuUxHwUnhUIAmCcMOR5yfmLKF13vdx1RG15vamd1anEZsD0dl7M8son2rR3tr3xF4Rz5uQkIXZFZ+a/AI5ykWxNOuHJAcp0NwnYMeAHGhE+mYuIN0zWvSDDNT+BIn77mucix5I= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; Received: from localhost.localdomain (171.48.16.70) by BLUPR0701MB1715.namprd07.prod.outlook.com (10.163.85.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.933.12; Tue, 28 Feb 2017 11:49:41 +0000 Date: Tue, 28 Feb 2017 17:19:23 +0530 From: Jerin Jacob To: Allain Legacy Cc: ferruh.yigit@intel.com, dev@dpdk.org Message-ID: <20170228114922.GA29607@localhost.localdomain> References: <1487985795-136044-1-git-send-email-allain.legacy@windriver.com> <1488136143-116389-1-git-send-email-allain.legacy@windriver.com> <1488136143-116389-3-git-send-email-allain.legacy@windriver.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1488136143-116389-3-git-send-email-allain.legacy@windriver.com> User-Agent: Mutt/1.7.1 (2016-10-04) X-Originating-IP: [171.48.16.70] X-ClientProxiedBy: MAXPR01CA0014.INDPRD01.PROD.OUTLOOK.COM (10.164.147.21) To BLUPR0701MB1715.namprd07.prod.outlook.com (10.163.85.141) X-MS-Office365-Filtering-Correlation-Id: b5f5bfb7-28c3-4829-9d5b-08d45fcfe2b4 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:BLUPR0701MB1715; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1715; 3:qYz0Ca/uRglnFjrP4tsvhODSyaeig8pHcnnhFuDN1WR2XU0vFp9u98TJ7gUR4ZPLj+i7SV0e0zo+B122iGss7x7Ly6ZmbeBgQMXuE5YDkR4c+3/TIRyn3hetZynC6qOh0rnZmDU3PutZk4I6s5gYBtXluWt/UkNv7Qbm9KYUEsHAaV0O7d2MMy/uSvqElrrobbm+OcUtGnpYFV12W2qIw/MRFQ5jHCTwS6bF//WURxcwSLA9nLBg5hLiLlpen96EqVR2cpC7/z5P9IF9qfdq+w==; 25:CoatzAqHbpvmwvFcn4HsQ6Vljr3ZhiU7loSP0qzHoFkxrFP2UNqypK4RN85aNdeLOT8cEwTw0CD8wITY1Xm7/yoPit9KcXFzSEPy2ESm2MHtCo5NZMnl9c/sOEaJvxTsVDd7l6DQPM/B37OXUEnsh0V0k81pJyXGcN1XRt6CBC5kOJ3E/jbqYGvGtZ3GaeUdEHoBVVIma0Ctebdp3WIsVPatuaMqIhtnyJRl9lA2YxpTlpDjhCYtmhhShhg9be1NGNqLbZWRiRqTFQlJneNpqDW4t4EUCWGkrIAXp2rxn3LKifxRSSbSz5AcohQcvO+W8YYknB+J32/ecKA4ZFlKv0tt5veobk/3LAlqxB41umZhE7xgKWEUJpPSOpTQd6w24kGQleAJV/FM49P5bCyWSoBHEtZ1LLDz202KIJkPrqV6wzQDqjFFdxbNuKLkcFJEE4OWgKSMwa3sYQs1HTwhQg== X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1715; 31:1sFvbAGzV/NWeoeqpSuqlEADT9K/0j1oIvY5Tpz2peXuCxcyYOi10E/7eLA7FHo51HR0PblB1d0UyMJHiatM5yheRhzHuAMXJTJawrUyuzoS8m/644d4AHtTUDkoF9jkxm9A1rRrXsmFWNsJKy/TaEj+qb1xmwOvZt+m31lmwMDxs0zyp0rj3uH6eGD9fkmIuIR6uhvu/CiFQjILpihl0P6xVa6D0LJvLpDYdt8D3M+khqBq9bQHTGuv8yflTTNxE5kjNGYvt5z7/GCRgFnLxA==; 20:2zV65H/LxXmvnAZfMN3g7inxOpD3ybjR/u5u9CSfa7j5sAZXZWi8Ca9mwc8kEfuTMOJt83sx4xDPNuyCS7Od4cRVXjtMW2aA8VVq5fYrqxE3eAw3Z55YE+xYy7Y8wLms6hH52O7YDhg0/dW/wWWf0iDs5Mjdoeic3Ve6weCqnD2QXfFdmDCRkJhljJxMG4ME2fdHld6eI0S2czqgNm4a6SDEqTFtmembsSRs0gX6T9Z7jSk7V1OZvxrD3Da2Vh6C+8Ik52+t1bEcadWAlF/akdMKU9w29hsdt2oejYfxv4xEeCUcH4KovU5tnzYYYOmNCQiNdOUMY0yOzdO4SnPi4iI20ByZGDpzJhnSr8R3Ac3UrWJws+Hwc36jcfbVU2juK+vrfqjfK7yKEGqC51eRaL3Fw0fvpogDvZeq8GyIbNEvs1JlGzZ4zqM8cCBDehDpilC21nu7hUfWQcyhfroVanDPau2WAY3g+0baUmAas3iHqoZmIPOI2j384x52OvHFt9HkbDj2WbmPPNG2lUTiq/L2oLKGPPbT7SnQ/XTsYvjSq0P6DfrY+4d7MxWL6Y3q3f+dYyq7rsbDQyUqT4W6tbVNwrMfR2WuRDvvmQ8dP4g= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6041248)(20161123558025)(20161123555025)(20161123560025)(20161123562025)(20161123564025)(6072148); SRVR:BLUPR0701MB1715; BCL:0; PCL:0; RULEID:; SRVR:BLUPR0701MB1715; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1715; 4:zr5gRivB3z9bHjFJyoa1jKZOPPI9E2MB6edCvbE+9ogIqBCmNTOC/5MHyOVNELH1MirY4JjOMTfDiyhxOZt5EVGtLIEt9hZFPq0//Sk8kEs7kGgEcfoZGox5GxyVzDy+LnR0DKNsfz37wuJsLEz91YdHZR5VLMfWnN0pqwRH0de8xA0G1yM7H1TLzBq2SfBNSSQpYxAH48NhMtfId2cO5PxW55vQwlJt8EuZmaxmUutXDNJpCplMJyF198TlDm3WSbhgM9bsvjdWgFqelZo7jtO0V5GDJtGlalY3h0Dc8X0xsacZdHf7KBN48G5zgSz4j1ua87BYTPKAtNXoDy0bu2YnLPpLyEanFr7qkIdUyPPk9uUArRtqw+YJ+J44XSm1VYErhRomn05vosNUDKFtDoBBrLfcCdOz33cgpGZHeWOcnq/RfbDtEhpSoEg8SHBJ1GEOpdDWV+OMAiFpTcR5UAVvaw3TUfTuzM+u1ajvA43ju9yoCs6XZqammxzQ4xBykDDaqfc3W3cdXbX6dwMvP55hxcWgXRFfTJdbago4kg34p75DV+nT7HkvaWvtE5VR4gnb21Epe0J+64hcsN7ruVSU4Tsc3OgZFWCAzCTStZQ= X-Forefront-PRVS: 0232B30BBC X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(6069001)(7916002)(39450400003)(189002)(199003)(24454002)(8676002)(25786008)(55016002)(50466002)(81166006)(9686003)(3846002)(6116002)(6506006)(229853002)(50986999)(68736007)(81156014)(101416001)(5660300001)(6666003)(38730400002)(54356999)(76176999)(6916009)(42882006)(92566002)(2950100002)(61506002)(42186005)(53936002)(1076002)(33656002)(105586002)(23726003)(189998001)(47776003)(66066001)(110136004)(83506001)(97736004)(2906002)(4001350100001)(305945005)(7736002)(6246003)(106356001)(18370500001)(2004002); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR0701MB1715; H:localhost.localdomain; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A: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; BLUPR0701MB1715; 23:Xg10h2GW+uOVw12vDXZ+cac/1st7L+LbiB/QqoZ?= =?us-ascii?Q?DIVmSe5awiknq1LNzO1ki9uKJKmhHtefJkHGI4ixLZ0P1zKEhuGbwd8VBMtY?= =?us-ascii?Q?2YFSTLUFhwhNh3IEVOmtBu9wbQbC4A0s8Jwu+tu7cuumTuUqu3VtISUhOUZB?= =?us-ascii?Q?MfD3btsFt9OL6wjY4lqbgHxN61f1wrkReXOh8iKlXic+98pXrNsh7wyQIF13?= =?us-ascii?Q?V/OVIX6llShumdk/p0Z7KXL/6J1pkfHk8pjbxRF/APFhMsXWMYeC8kS1IfU1?= =?us-ascii?Q?QDmsd3vxYDuco9QuUatju+i2k6nVNQAj3woVcQi4y+0thPaj5yk7BWRGfE3/?= =?us-ascii?Q?dnvWSiVfUxOphf7qCSnxFQRiJkjOgCXFjoGYDrdYS/dYAR380unkoqh5FfXR?= =?us-ascii?Q?cMojke+xKAg9c/xg6M2EwEC9CGC4QAonDvgKQrDcnRicwMnPPcS1M0uw5Kzs?= =?us-ascii?Q?ubxGIwDBtJ1jMR0ARjeWErleEf/twIE0PPvOtiYkLJL6Sh+SzRJYF/WKOImi?= =?us-ascii?Q?jL5BoLwT3qK4P4HCEARU/MoxwNX8JSDTPNMvrVl/NtzQb2W7DyZFtzbWbeMe?= =?us-ascii?Q?aL4Fq6bAG6G0AlJSvZuUx95UAjJbVvb2P+H4MCAZP2AlK28WaJqgQ0OnuWYs?= =?us-ascii?Q?ZijteKxb1PHNKBl+te8Cn7u8q2zwbwvG5IP/WFGuWi8POFGafiaqNTNpiHp/?= =?us-ascii?Q?B76XuSuBYSEW8TW7fdGg/VHhWNBBBuB7eXtCYYDFB5+SGNNzlE8diKja/21q?= =?us-ascii?Q?agUYdo7NeiupDUvPLEeSEjmRXBdo3zanWFoiuAdqoei/XsP1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zMcrlP+eQGTGK4CIvY7eKp8flLsQZVKfWcs5RC3ZWCpBsyGh0uUEG+x5zlgvkBBrtj8qCzutEszx3iqzw1FD1/w==; 24:H0IlpJWyCZhH+5QALIWGpIEr/WWoMU232gWLaWBP5QayFvdtoWZDlUj8PjqZaCfGxdylxJkXrHbmTB9Gv7dP4MMkOav5BiR+afnjlWHaNWc= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1715; 7:9xNAbJ1U75iZAMhKfOvRT/TN0eRw7zniVWuTi0LNIdBMxGsom0iIIRybsotsWbOvcOOZEzjCfP89nW8ZxYN+TqMmUt5cShV4s9bvPjl+piA5ezZ9qH8GX2z/6awLBSksCKsCWJBgoQvVLhKuxd9h7BW3G8I4Tg0OG4mBbE2G/qIi7rt7k8AYb2K7b5c/bvSk7nRe9jXepGT79rHkifqov4OAmFYk6wpbQhXuX//szOY0wJyHQRTv/L74s1VBnWui2uhc2m+n0SqQlHO2B3U4fp9evbUJyW8bQQgc/NIHdOPln7GPfkjxHSD74AepD5EJFDbQaXbnJhFrfsvEqSmr3Q== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Feb 2017 11:49:41.2750 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0701MB1715 Subject: Re: [dpdk-dev] [PATCH v2 02/15] net/avp: public header files 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: Tue, 28 Feb 2017 11:49:46 -0000 On Sun, Feb 26, 2017 at 02:08:50PM -0500, Allain Legacy wrote: > Adds public/exported header files for the AVP PMD. The AVP device is a > shared memory based device. The structures and constants that define the > method of operation of the device must be visible by both the PMD and the > host DPDK application. They must not change without proper version > controls and updates to both the hypervisor DPDK application and the PMD. > > The hypervisor DPDK application is a Wind River Systems proprietary > virtual switch. > > Signed-off-by: Allain Legacy > Signed-off-by: Matt Peters > --- > drivers/net/avp/rte_avp_common.h | 424 +++++++++++++++++++++++++++++++++++++++ > drivers/net/avp/rte_avp_fifo.h | 157 +++++++++++++++ > 2 files changed, 581 insertions(+) > create mode 100644 drivers/net/avp/rte_avp_common.h > create mode 100644 drivers/net/avp/rte_avp_fifo.h > > diff --git a/drivers/net/avp/rte_avp_common.h b/drivers/net/avp/rte_avp_common.h > new file mode 100644 > index 0000000..579d5ac > --- /dev/null > +++ b/drivers/net/avp/rte_avp_common.h > @@ -0,0 +1,424 @@ > +/*- > + * This file is provided under a dual BSD/LGPLv2 license. When using or > + * redistributing this file, you may do so under either license. > + * > + * GNU LESSER GENERAL PUBLIC LICENSE > + * > + * Copyright(c) 2010-2013 Intel Corporation. All rights reserved. > + * Copyright(c) 2014-2015 Wind River Systems, Inc. All rights reserved. > + * > + * This program is free software; you can redistribute it and/or modify > + * it under the terms of version 2.1 of the GNU Lesser General Public License > + * as published by the Free Software Foundation. > + * > + * This program is distributed in the hope that it will be useful, but > + * WITHOUT ANY WARRANTY; without even the implied warranty of > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU > + * Lesser General Public License for more details. > + * > + * Contact Information: > + * Wind River Systems, Inc. > + * > + * > + * BSD LICENSE > + * > + * Copyright(c) 2010-2013 Intel Corporation. All rights reserved. > + * Copyright(c) 2014-2016 Wind River Systems, Inc. All rights reserved. > + * All rights reserved. > + * > + * Redistribution and use in source and binary forms, with or without > + * modification, are permitted provided that the following conditions > + * are met: > + * > + * * Redistributions of source code must retain the above copyright > + * notice, this list of conditions and the following disclaimer. > + * * Redistributions in binary form must reproduce the above copyright > + * notice, this list of conditions and the following disclaimer in > + * the documentation and/or other materials provided with the > + * distribution. > + * * Neither the name of Intel Corporation nor the names of its > + * contributors may be used to endorse or promote products derived > + * from this software without specific prior written permission. > + * > + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS > + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT > + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR > + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT > + * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, > + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT > + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, > + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY > + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT > + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE > + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. > + * > + */ > + > +#ifndef _RTE_AVP_COMMON_H_ > +#define _RTE_AVP_COMMON_H_ > + > +#ifdef __KERNEL__ > +#include > +#endif > + > +/** > + * AVP name is part of network device name. > + */ > +#define RTE_AVP_NAMESIZE 32 > + > +/** > + * AVP alias is a user-defined value used for lookups from secondary > + * processes. Typically, this is a UUID. > + */ > +#define RTE_AVP_ALIASSIZE 128 > + > +/** > + * Memory aligment (cache aligned) > + */ > +#ifndef RTE_AVP_ALIGNMENT > +#define RTE_AVP_ALIGNMENT 64 I think we use RTE_CACHE_LINE_SIZE here? PPC and ThunderX1 targets are cache line size of 128B > +#endif > + > +/* > + * Request id. > + */