From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: [PATCH v2 2/7] lib/librte_ether: support l2 tunnel config Date: Wed, 3 Feb 2016 14:36:20 +1100 Message-ID: <20160203143620.7eccc836@samsung9> References: <1454051035-25757-1-git-send-email-wenzhuo.lu@intel.com> <1454396225-11784-1-git-send-email-wenzhuo.lu@intel.com> <1454396225-11784-3-git-send-email-wenzhuo.lu@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org To: Wenzhuo Lu Return-path: Received: from mail-pf0-f178.google.com (mail-pf0-f178.google.com [209.85.192.178]) by dpdk.org (Postfix) with ESMTP id B1C7B95C8 for ; Wed, 3 Feb 2016 04:36:31 +0100 (CET) Received: by mail-pf0-f178.google.com with SMTP id 65so5764490pfd.2 for ; Tue, 02 Feb 2016 19:36:31 -0800 (PST) In-Reply-To: <1454396225-11784-3-git-send-email-wenzhuo.lu@intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Tue, 2 Feb 2016 14:57:00 +0800 Wenzhuo Lu wrote: > +/** > + * l2 tunnel configuration. > + */ > +struct rte_eth_l2_tunnel { > + enum rte_eth_l2_tunnel_type l2_tunnel_type; > + uint16_t ether_type; > +}; Building an API with an indirect (structure) parameter with only two elements seems like overkill. If you are building it to support future features, that won't work because it will break ABI. Why not just? int rte_eth_dev_etag_enable(uint8_t port_id, uint16_t ether_type)