From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id E62542C6A for ; Mon, 14 Mar 2016 10:48:04 +0100 (CET) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga104.fm.intel.com with ESMTP; 14 Mar 2016 02:48:05 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,335,1455004800"; d="scan'208";a="933277397" Received: from unknown ([10.252.25.185]) by orsmga002.jf.intel.com with SMTP; 14 Mar 2016 02:48:01 -0700 Received: by (sSMTP sendmail emulation); Mon, 14 Mar 2016 09:48:01 +0025 Date: Mon, 14 Mar 2016 09:48:01 +0000 From: Bruce Richardson To: Thomas Monjalon Cc: Jianfeng Tan , dev@dpdk.org Message-ID: <20160314094800.GA24288@bricha3-MOBL3> References: <1451544799-70776-1-git-send-email-jianfeng.tan@intel.com> <1457551895-12077-1-git-send-email-jianfeng.tan@intel.com> <1457551895-12077-2-git-send-email-jianfeng.tan@intel.com> <1827683.4pKzEQkioz@xps13> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1827683.4pKzEQkioz@xps13> Organization: Intel Shannon Ltd. User-Agent: Mutt/1.5.23 (2014-03-12) Subject: Re: [dpdk-dev] [PATCH v7 01/11] ethdev: add API to query packet type filling info X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Mar 2016 09:48:05 -0000 On Mon, Mar 14, 2016 at 10:44:30AM +0100, Thomas Monjalon wrote: > 2016-03-10 03:31, Jianfeng Tan: > > Add a new API rte_eth_dev_get_ptype_info to query whether/what packet > > type can be filled by given already started device or its pmd rx burst > > function has already been decided). > [...] > > /** > > + * Retrieve the packet type information of an Ethernet device. > > + * > > + * @note > > + * Better to invoke this API after the device is already started or rx burst > > + * function is decided, to obtain concise ptype information. > > + * @param port_id > > + * The port identifier of the Ethernet device. > > + * @param ptype_mask > > + * A hint of what kind of packet type which the caller is interested in. > > + * @param ptypes > > + * An array pointer to store adequent packet types, allocated by caller. > > + * @param num > > + * Size of the array pointed by param ptypes. > > + * @return > > + * - (>0) Number of ptypes supported. If it exceeds param num, exceeding > > + * packet types will not be filled in the given array. > > + * - (0 or -ENOTSUP) if PMD does not fill the specified ptype. > > + * - (-ENODEV) if *port_id* invalid. > > + */ > > +int rte_eth_dev_get_ptype_info(uint8_t port_id, uint32_t ptype_mask, > > + uint32_t *ptypes, int num); > > I think the word info is too vague. > What do you think of these names? > - rte_eth_dev_get_ptype_capa > - rte_eth_dev_get_supported_ptypes > +1 for supported_ptypes /Bruce