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 AB039A0487 for ; Tue, 2 Jul 2019 17:07:45 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8A3AA1B9F2; Tue, 2 Jul 2019 17:07:45 +0200 (CEST) Received: from dispatch1-us1.ppe-hosted.com (dispatch1-us1.ppe-hosted.com [148.163.129.52]) by dpdk.org (Postfix) with ESMTP id 45D651B9EB for ; Tue, 2 Jul 2019 17:07:44 +0200 (CEST) X-Virus-Scanned: Proofpoint Essentials engine Received: from webmail.solarflare.com (uk.solarflare.com [193.34.186.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mx1-us1.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTPS id 2FC741000A3; Tue, 2 Jul 2019 15:07:42 +0000 (UTC) Received: from [192.168.1.11] (85.187.13.154) by ukex01.SolarFlarecom.com (10.17.10.4) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 2 Jul 2019 16:07:33 +0100 To: Dekel Peled , , , , , , , CC: , References: <1389143e204e85c90b4fc124f9e561f43f78175e.1561989889.git.dekelp@mellanox.com> <5bde45006c2891f9942e1545e8cecf226908a5e1.1562075933.git.dekelp@mellanox.com> From: Andrew Rybchenko Message-ID: <86be1d09-93c3-039a-1c30-465371ebbedd@solarflare.com> Date: Tue, 2 Jul 2019 18:07:19 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <5bde45006c2891f9942e1545e8cecf226908a5e1.1562075933.git.dekelp@mellanox.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Originating-IP: [85.187.13.154] X-ClientProxiedBy: ocex03.SolarFlarecom.com (10.20.40.36) To ukex01.SolarFlarecom.com (10.17.10.4) X-TM-AS-Product-Ver: SMEX-12.5.0.1300-8.5.1010-24734.003 X-TM-AS-Result: No-5.313700-8.000000-10 X-TMASE-MatchedRID: pBwXUM+nCwvmLzc6AOD8DfHkpkyUphL9OyBTDrxRCthBDVeC8J7uwT2j /N8mMgrkPKRs/oLIS1F8+iFPtm67BIdiA6DUGBE4nMQdNQ64xfexq37CBjJNbJsoi2XrUn/JyeM tMD9QOgCY/fxzcM2LJMce5dMCYKFd3QfwsVk0Ubv+efAnnZBiLx5fPbc4UDXDiFQ0m1C6pIsMry BWKjlAlMvyc04vDqlPqSsYWFS8IRaeqD9WtJkSIw== X-TM-AS-User-Approved-Sender: Yes X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--5.313700-8.000000 X-TMASE-Version: SMEX-12.5.0.1300-8.5.1010-24734.003 X-MDID: 1562080063-yZ7HbTM1mXor Subject: Re: [dpdk-dev] [PATCH v2] ethdev: support action with any config object type 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" On 02.07.2019 17:17, Dekel Peled wrote: > In current implementation, an action which requires parameters > must accept them enclosed in a structure. > Some actions require a single, trivial type parameter, but it still > must be enclosed in a structure. > This obligation results in multiple, action-specific structures, each > containing a single trivial type parameter. > > This patch introduces a new approach, allowing an action configuration > object of any type, trivial or a structure. > > Signed-off-by: Dekel Peled Acked-by: Andrew Rybchenko