From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v2 0/5] example/ethtool: add bus info and fw version get Date: Thu, 22 Dec 2016 12:07:43 +0100 Message-ID: <1578263.GeZ0IiYehl@xps13> References: <1479375779-46629-2-git-send-email-qiming.yang@intel.com> <1481008582-69416-1-git-send-email-qiming.yang@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, Remy Horton To: Qiming Yang Return-path: Received: from mail-wm0-f51.google.com (mail-wm0-f51.google.com [74.125.82.51]) by dpdk.org (Postfix) with ESMTP id 58BD010D14 for ; Thu, 22 Dec 2016 12:07:45 +0100 (CET) Received: by mail-wm0-f51.google.com with SMTP id a197so172372816wmd.0 for ; Thu, 22 Dec 2016 03:07:45 -0800 (PST) In-Reply-To: List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2016-12-08 16:34, Remy Horton: > > On 06/12/2016 15:16, Qiming Yang wrote: > [..] > > Qiming Yang (5): > > ethdev: add firmware version get > > net/e1000: add firmware version get > > net/ixgbe: add firmware version get > > net/i40e: add firmware version get > > ethtool: dispaly bus info and firmware version > > s/dispaly/display > > doc/guides/rel_notes/release_17_02.rst ought to be updated as well. Code > itself looks ok though.. > > Acked-by: Remy Horton It must be a feature in the table (doc/guides/nics/features/). The deprecation notice must be removed also. I think it is OK to add a new dev_ops and a new API function for firmware query. Generally speaking, it is a good thing to avoid putting all informations in the same structure (e.g. rte_eth_dev_info). However, there is a balance to find. Could we plan to add more info to this new query? Instead of rte_eth_dev_fwver_get(uint8_t port_id, char *fw_version, int fw_length) could it fill a struct? rte_eth_dev_fw_info_get(uint8_t port_id, struct rte_eth_dev_fw_info *fw_info) We already have rte_eth_dev_get_reg_info(uint8_t port_id, struct rte_dev_reg_info *info) with uint32_t version; /**< Device version */ There are also these functions (a bit related): rte_eth_dev_get_eeprom_length(uint8_t port_id) rte_eth_dev_get_eeprom(uint8_t port_id, struct rte_dev_eeprom_info *info)