From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f44.google.com (mail-wm0-f44.google.com [74.125.82.44]) by dpdk.org (Postfix) with ESMTP id 5A62F2C6A for ; Mon, 14 Mar 2016 10:45:54 +0100 (CET) Received: by mail-wm0-f44.google.com with SMTP id p65so93699033wmp.1 for ; Mon, 14 Mar 2016 02:45:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:organization:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=TzuX389WGYiqNCtNKc0jP8dHaMxutuPliCJzZsrT7tA=; b=UyxWj8/MvjOVgef1+EnI3H1kjaYQgbShAuYhd7/tuo9z7v4wlmtYY1rkA+MMx+QLnx u8XcK6Ah4E7pFeSgDHSDL4khx1bMmbt+axSgaYpbRPduuiX7/mk9qKHJiNOppLd/d+zK A4TmrLYoO8VNS/FE7njGbUNjszvAJ/AmDdkdipW9b6UIIXtmX43ixrmdMEioss7seYQX aZX8/YiS1mkRxF6glKvQqv2qNdoTlzW6d318A/PLeXHlSWuBZ31Wm1Y9g7D0dlCPjpYF /9QxRiP24CZcwvak7iK1JlfeHTuQfeigF/3YsSgeKhCSZwzzmAQSUP5X8439/9G9laBh KTLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding; bh=TzuX389WGYiqNCtNKc0jP8dHaMxutuPliCJzZsrT7tA=; b=glknl3fDyw5Uawa+emWFCUYy3+L2iEyn9bldhjOOlRjPeVOOLzhOyBvLHmlTU1Iote Ki+lfDoBJ+jziwFe7Bd3GxWXhOR4F8PNuzh7qxKracUno6wwc9u4u+iaNFMOt8adWStK c/NDvqAJtNSTH30wVOwFDt9ZcnLZuWob4b3fIRErT1L2X/hxH5FIY6B3wsHK++NIuVUh cnsUm8OjKaQyy82yzuFMXK6bw9oepXetD5PZaOjTDV2gGOs9D/66p8zBbScFWYwmfg+/ b5YuIIx4sz6eO83/Qe7EPTNkwgVUwL4VyLN+0+nwndP8U3YHfgDiGmqqaE6J5D6j9WNT IyWw== X-Gm-Message-State: AD7BkJJHYHzKRwK5y+d5luxG9yCPfYMK7hL/DwssTRU9AU89fqKlaR5z94Y5QdzygDRvg7tg X-Received: by 10.28.51.9 with SMTP id z9mr15692533wmz.59.1457948754190; Mon, 14 Mar 2016 02:45:54 -0700 (PDT) Received: from xps13.localnet (91.111.75.86.rev.sfr.net. [86.75.111.91]) by smtp.gmail.com with ESMTPSA id ks5sm21494581wjb.13.2016.03.14.02.45.52 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 14 Mar 2016 02:45:53 -0700 (PDT) From: Thomas Monjalon To: Jianfeng Tan Cc: dev@dpdk.org Date: Mon, 14 Mar 2016 10:44:30 +0100 Message-ID: <1827683.4pKzEQkioz@xps13> Organization: 6WIND User-Agent: KMail/4.14.10 (Linux/4.1.6-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <1457551895-12077-2-git-send-email-jianfeng.tan@intel.com> 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> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" 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:45:54 -0000 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