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 0B200A0487 for ; Tue, 2 Jul 2019 17:15:19 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 9F9921BA00; Tue, 2 Jul 2019 17:15:18 +0200 (CEST) Received: from mail-wm1-f67.google.com (mail-wm1-f67.google.com [209.85.128.67]) by dpdk.org (Postfix) with ESMTP id 4D74D1B9FD for ; Tue, 2 Jul 2019 17:15:17 +0200 (CEST) Received: by mail-wm1-f67.google.com with SMTP id z23so1438896wma.4 for ; Tue, 02 Jul 2019 08:15:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=TAF7h9nTwM0DE4Nn1hg6LbnVH+M8gAaOvN6seyLcc10=; b=DMrVGQ3batAoru8Vf6Topz/kzVDVBDBap8mHy6osUW09BHAlqpJp9QtKF+eqdBpvQi 4BI4EMRo1D1001d66gjox8hevoHNfJjTRSsPiETvFTFJbOvWAcZ/jqnha6qzNSEzPjFN atGbeYYchir5EEIcNvDFp7HwZxJeeeaHo+rK0m3XlpOZHsOu0JsDMTqEFBTgiTWCOJqP aYx4iC6LgF5kHLHLCkzS99e2sicaV6ys/bHmOdgP7IvdWqxqbB66FS50Q9HqYKI44pr7 zEySIU0nY0cAQSpKIJmZY+fyNvRD5j+RGD99v/taVG2wwg8EqGgTxKT2KnfcQgksizIe LzRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=TAF7h9nTwM0DE4Nn1hg6LbnVH+M8gAaOvN6seyLcc10=; b=UKFsDzv7soGfDkW+Q7LIELpTwaOfKNduD3EmDhBOfJX4HWy/l8r0kBl85+g5HFec3+ IOn2MmKxoZDaisD6H/ZZAtzLlNwMU+JYnK/hv3jr75F/7clwz2teIBzN1Bv2t2ojFwaO gBgmwVx+9IMGPHtAiILIFB7aHugeKdXPsZk/ljgvOIj2PC7/80Xv9g1K38lxyxUHZDXy hpmYoLzs1+/7JWQrkwsjyBhiGNkdYrF890fnpOAuSJvDeCwiwEWTE83Z7Xl0W/y8Cmwi Q/mjPmKL7/Z5HkX5/784WkcGOPW8qWvny1S71YMWEipBsekxbGH803eHnORUQPTnB+L0 UWmQ== X-Gm-Message-State: APjAAAWQKOCxCfApy9MLc7S6DP8G4zhqxy8IO+DGSU157sVs3HJYcRE7 tCzdONCpODyCpepU2LOPyIiKbQ== X-Google-Smtp-Source: APXvYqz9aDMEgCkwAzDQnlzRbSsJgLdhT72MSUnf90Zmrmio1m6+9gWdJiL5TU7eijZcyALIPUH2fw== X-Received: by 2002:a1c:7d56:: with SMTP id y83mr3946926wmc.77.1562080517120; Tue, 02 Jul 2019 08:15:17 -0700 (PDT) Received: from 6wind.com (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id f7sm17458268wrv.38.2019.07.02.08.15.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 02 Jul 2019 08:15:16 -0700 (PDT) Date: Tue, 2 Jul 2019 17:15:14 +0200 From: Adrien Mazarguil To: Dekel Peled Cc: wenzhuo.lu@intel.com, jingjing.wu@intel.com, bernard.iremonger@intel.com, yskoh@mellanox.com, shahafs@mellanox.com, viacheslavo@mellanox.com, arybchenko@solarflare.com, dev@dpdk.org, orika@mellanox.com Message-ID: <20190702151514.GD4512@6wind.com> References: <1389143e204e85c90b4fc124f9e561f43f78175e.1561989889.git.dekelp@mellanox.com> <5bde45006c2891f9942e1545e8cecf226908a5e1.1562075933.git.dekelp@mellanox.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5bde45006c2891f9942e1545e8cecf226908a5e1.1562075933.git.dekelp@mellanox.com> 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 Tue, Jul 02, 2019 at 05:17:26PM +0300, 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: Adrien Mazarguil -- Adrien Mazarguil 6WIND