From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0050.outbound.protection.outlook.com [104.47.40.50]) by dpdk.org (Postfix) with ESMTP id CC34F37AA for ; Fri, 3 Mar 2017 08:14:25 +0100 (CET) Received: from DM5PR03CA0010.namprd03.prod.outlook.com (10.175.104.20) by DM5PR03MB2954.namprd03.prod.outlook.com (10.175.106.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.947.12; Fri, 3 Mar 2017 07:14:24 +0000 Received: from BY2FFO11FD030.protection.gbl (2a01:111:f400:7c0c::135) by DM5PR03CA0010.outlook.office365.com (2603:10b6:3:118::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.947.12 via Frontend Transport; Fri, 3 Mar 2017 07:14:24 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; caviumnetworks.com; dkim=none (message not signed) header.d=none; caviumnetworks.com; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BY2FFO11FD030.mail.protection.outlook.com (10.1.14.211) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.947.7 via Frontend Transport; Fri, 3 Mar 2017 07:14:24 +0000 Received: from bf-netperf1.idc ([10.232.134.28]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v237D50S005035; Fri, 3 Mar 2017 00:14:21 -0700 From: Hemant Agrawal To: CC: , , , , , Date: Fri, 3 Mar 2017 18:16:42 +0530 Message-ID: <1488545223-25739-26-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1488545223-25739-1-git-send-email-hemant.agrawal@nxp.com> References: <1487205586-6785-1-git-send-email-hemant.agrawal@nxp.com> <1488545223-25739-1-git-send-email-hemant.agrawal@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131329988645427624; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(336005)(39850400002)(39380400002)(39840400002)(39410400002)(39860400002)(39450400003)(39400400002)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(9170700003)(356003)(2351001)(106466001)(33646002)(86362001)(626004)(85426001)(104016004)(4326008)(5003940100001)(77096006)(5660300001)(8656002)(6916009)(54906002)(189998001)(2950100002)(6666003)(50986999)(48376002)(110136004)(38730400002)(92566002)(47776003)(53936002)(76176999)(305945005)(50226002)(81166006)(2906002)(105606002)(8936002)(8676002)(36756003)(50466002); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR03MB2954; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; A:1; MX:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD030; 1:MpFIZ0fotGm/jIv6u6g/S9VIAlfi7sjC+5HRRtAmh3Erhcw4Itn3aTMNKqixUbPN62fzQ1xlUjvtvd6RepkJBk2MQWIqqEC040gzCPddqJXqGF7/YhDNTP6Jec2MNfNiPHf4TTIr1tLLjwvlFYhUJtMSgj1UATjWJwyO1GDux5pP6q9labynzGok7MEE8FRzjM2lkJN03N929O+xnxhaaB6iK7OycNzdkFsLqszceUO2q5lqta5JGboR6A1mGucWMOR11/s4HKodoKRPta4QPJ2GvsfMqJ7Ar2Z8XzZKcpFMGhMMh2SJ4KgY1rXWdhSVQB7HFDWxYiNxVU7cf3JfjU89KjXLaTvcmueiL4I6ZofVwMsqE2XuK8qfJVCxdpF67G3sl7UL5WQR6rXLRqcgn44Jm3vV/02SbdOkmpBiRTATACH5TA24d5Hx7feW7uSoK0B8k+fT51OBrkeUrlYdoIB6h3z/hhi09pyxTRBn4BIBGRjFQafBUyR+WBzKrIyjv43Sioz2Hgx3+T25nZtNQg5Un0KFXetC7xu24Wwa9TJWvSQPkEWtcvxBv6C7+k+v5lWZjnUH36OO1EroQIjpBxl7eGBnD1OZpldvh4SOrdlI9BZr3pX3kCdCvDNHNc4mj/jIdB4tOSNKsPA459FQUQ== MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 908fb0e6-d3b8-4d78-0ea8-08d46204ebf5 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:DM5PR03MB2954; X-Microsoft-Exchange-Diagnostics: 1; DM5PR03MB2954; 3:9eg41VIoSkTZVdneJgQnoY1JQAHzSwPKuwKpakweYkZ/KeFZd32lG7zlj2KcC6IyylG4ywKr6572Lyjri16KmqOHVjM9y9yS63mN4QBO2eBESpfvCP2rHXLDuBnFOT3AO1FEbPF9G1krldUSbLIMZA2r14P9ov+h/kCp5rzy1RY1tRTgW5a1QZAkSbk0JHOWa4rUPHztIwDO+z6Ma5xD+eHTkO88qwpmjr0ZnYofNFnL7zgr6QttWHCIHBocdFHzuOACJnzXTFYw6NFY7gfE3lTn/5FgqRhgn1HMr/YSaMre4+gfqDbGa4HDdusRzagfuitpU/RKhx0oxf01cf/UTfT+aHFZhUgLFwCmvGYJZDs5whJRzi4D5fT+dtYc/C7h; 25:lZJduMC+QePoLPoSY+DT0QFMQQ3mxhYYVdYIxQvVVMFA6wBW8VEpZLlW9Jp+NrFce2hEy5PYrMAUlFc2dzjvjO3Va78s2D9DiWT5VO6i8D4s9xrm+MlGogdqzLrLTa4pqJFNSykLFTSgYjLDEnYRh7xP0q4uAzsfYHvdLoBNidK/pL9f0sSxpGNY/vRjCHKDggaa5tTERM9fE3/rVQsPz+q6qwF85/Pogohw1+ZRVKq/Un5wZ7pLeT9BUDrIZKCxCU2cGjvWB6VN7rjHzB77XynrNwCVjVtBhJ7I/lMjlGgM4E7f2UuojC2o6WpU1Svk0N+K0x8mB7zRcY8evXqDfqN57TeyEcIJYU0SdRIvoZQhCHz7ukY7teZD1hi0eY2O6fwdOhjbj1jwvsPak/FXIw3p6QZIMAnVbd0QG3FqRcg3TQropbjwqCdxS5jhe6IyFBNtoJ8c+woFA3vFW33Mbg== X-Microsoft-Exchange-Diagnostics: 1; DM5PR03MB2954; 31:/Jp555hqsphE6ZhsIyS9eClPctnFXcOym3dCaAWJJsiNto7m922/b3NITn3Yq7dhp87Ku628qgWn0USsIB4PyqcKhbuktFuFLG2RZyrq1hiYnARM6QuZW3enniGkEzrkw3uNZNJxa3wGzYtlRkLjm56iv4S4SS3sWkU5cfsmZD6wKIDcDjxfTLy0YzEvaABEMNOqY4qh1yT9B8Gl0V37HMxIv1zq6iBU832GIQE9qXkZoGZRUxR86RXc0337ijMsJkekIWBASTpOtixl9OHRuQ== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(275809806118684); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095060)(601004)(2401047)(5005006)(8121501046)(13018025)(13015025)(13017025)(13023025)(13024025)(10201501046)(3002001)(6055026)(6096035)(20161123559025)(20161123565025)(20161123556025)(20161123563025)(20161123561025); SRVR:DM5PR03MB2954; BCL:0; PCL:0; RULEID:(400006); SRVR:DM5PR03MB2954; X-Microsoft-Exchange-Diagnostics: 1; DM5PR03MB2954; 4:iKaU5VMdIC4unxmF3sLXF0qOFAvyt+jEuqYbs6AzOoLjohZB85XmC/ZH0eoh9n0dMhnBq66gUu3IEq9SguW0GY5v02Sr19WmtEIXjXtvkyhCD2nKoQ0UoJ09ov6setjF7PWz6Jop+FvUfycJPPl7Sxa0e7HkvVfeg8ydUKvAUMCdPOdPLlgCKd4fCDHmc/ESMEB+QX9bddNreF+WE4fud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gJEGOaNQXfjYIY8GW6LEk4iAjOea+iF4?= =?us-ascii?Q?6TKog4Gd1IwJtu1ieibGTBaALVgU8hgifhR9oKU?= X-Microsoft-Exchange-Diagnostics: 1; DM5PR03MB2954; 6:tUg6+kK3Qk652b8FCFkRCEcP5yOdnZekhCXngGPyYqpsNSFsPNkzYeRDJIXX2oJG7CnAWuEz1WOQ+8ctVBawAo8XGva6U7uY662Ce24L4RMz/x6JkH85g8JLupFn+VafMlxiqhLbPzZrSP84UbrS2GwrPgWEQta8OoSQTzkOKWm43lLeBkU26xDDK1Ij7j6PPd1GWmBV2Aa5CLXUYKVHpsUdA0muJafOuWiHXQGTxs5yaYk4750KddMiGy+1ZWVN8+oCIQExswteZGuOfn96McdfhqBwqRaEH0P9FhKaav3Zm9X5k0NOuO8Un518L+3sh7Gguwjvi05gqS4+8MrCcNRaJ7T1EjUBPTRdHh1lUOOQQj4eLodQJXB8bHiemxjftvcHvLQYCgiHBGg3tf8F2mO69tx2bfwoEJSGFGZC4rA=; 5:kFmZnlAPxIV92Au5hj6YB+A6ZgB2wov5lffEjVU1dZVHJ9Wfdrf0/nD4VPhgXXk95JrS7EJ49VC6BWslNqWI9MG7D1V7WeTaN7THgF7eeLvbzwcz3XqQHcxBqZiSnXZH+zbKhLYhgkcPosDDc10e8CGDODycPLyKA05Ng7j2QdWKYwd2oes9HXTemBkqLhCS; 24:MoJXmeZsSSUAinHfKF1Qvc03TRnFAhEQFLT4EROGdtINbj45CwKMV8AGd8Gus5G2ZFtHWlG/dLPrHfGlMfV+8NEPi2CDJpN08Pvn+96YJPw= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM5PR03MB2954; 7:tQ7CzJQ7Unmd47oFudxaBWTnPFrNL1Tbcs1AMaoDQmRO8eK314u0iG2uEjgLAxQE4BzsaTP483oC4KOZsb/WQXwBqhttuS1mkPfLSIfRiZpUqS6P5T+/qvEcwMFV8GI1o3mywlGvG5ZrmEwSPManmOB34UrafccoDIgj6emoOxFa/+6B0Gb1SApMDqpZz0dGi9jYYmkxQWe06uzEKYo/O0jd80ORwFUNLVnjsD+yoKtKPQAW0DQHDW6Ol/8cQHju9ki2d6/0bmVZHz7WfGtTOt/WHTg1LoQR/Ez8WZIGGH/fDJVatD4oFMRPlsyh+Rk3UsGtROSIdpF/ozObMP1gQw== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Mar 2017 07:14:24.2151 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR03MB2954 Subject: [dpdk-dev] [PATCHv8 25/46] bus/fslmc: define hardware annotation area size 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, 03 Mar 2017 07:14:26 -0000 Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/portal/dpaa2_hw_pvt.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/bus/fslmc/portal/dpaa2_hw_pvt.h b/drivers/bus/fslmc/portal/dpaa2_hw_pvt.h index 42c5517..8efac2d 100644 --- a/drivers/bus/fslmc/portal/dpaa2_hw_pvt.h +++ b/drivers/bus/fslmc/portal/dpaa2_hw_pvt.h @@ -50,6 +50,16 @@ #define DPAA2_MBUF_MAX_ACQ_REL 7 #define MAX_BPID 256 +#define DPAA2_MBUF_HW_ANNOTATION 64 +#define DPAA2_FD_PTA_SIZE 64 + +#if (DPAA2_MBUF_HW_ANNOTATION + DPAA2_FD_PTA_SIZE) > RTE_PKTMBUF_HEADROOM +#error "Annotation requirement is more than RTE_PKTMBUF_HEADROOM" +#endif + +/* we will re-use the HEADROOM for annotation in RX */ +#define DPAA2_HW_BUF_RESERVE 0 +#define DPAA2_PACKET_LAYOUT_ALIGN 64 /*changing from 256 */ struct dpaa2_dpio_dev { TAILQ_ENTRY(dpaa2_dpio_dev) next; -- 1.9.1