From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: [PATCH v8 1/5] ethdev: add apis to support access device info Date: Fri, 26 Jun 2015 09:51:58 -0700 Message-ID: <20150626095158.4725a924@urahara> References: <1432946276-9424-1-git-send-email-liang-min.wang@intel.com> <1435328807-15788-1-git-send-email-liang-min.wang@intel.com> <1435328807-15788-2-git-send-email-liang-min.wang@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org To: Liang-Min Larry Wang Return-path: Received: from mail-pa0-f54.google.com (mail-pa0-f54.google.com [209.85.220.54]) by dpdk.org (Postfix) with ESMTP id D4EAAC966 for ; Fri, 26 Jun 2015 18:51:52 +0200 (CEST) Received: by pactm7 with SMTP id tm7so71249138pac.2 for ; Fri, 26 Jun 2015 09:51:52 -0700 (PDT) In-Reply-To: <1435328807-15788-2-git-send-email-liang-min.wang@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 Fri, 26 Jun 2015 10:26:43 -0400 Liang-Min Larry Wang wrote: > add new apis: > - rte_eth_dev_default_mac_addr_set > - rte_eth_dev_reg_length > - rte_eth_dev_reg_info > - rte_eth_dev_eeprom_length > - rte_eth_dev_get_eeprom > - rte_eth_dev_set_eeprom > > to enable reading device parameters (mac-addr, register, > eeprom) based upon ethtool alike > data parameter specification. > > Signed-off-by: Liang-Min Larry Wang I agree in principal, but has lots of style issues (see report from checkpatch). ERROR: spaces required around that '=' (ctx:VxW) #193: FILE: lib/librte_ether/rte_ethdev.c:3677: + if ((dev= &rte_eth_devices[port_id]) == NULL) { ^ ERROR: do not use assignment in if condition #193: FILE: lib/librte_ether/rte_ethdev.c:3677: + if ((dev= &rte_eth_devices[port_id]) == NULL) { ERROR: spaces required around that '=' (ctx:VxW) #213: FILE: lib/librte_ether/rte_ethdev.c:3697: + if ((dev= &rte_eth_devices[port_id]) == NULL) { ^ ERROR: do not use assignment in if condition #213: FILE: lib/librte_ether/rte_ethdev.c:3697: + if ((dev= &rte_eth_devices[port_id]) == NULL) { ERROR: spaces required around that '=' (ctx:VxW) #232: FILE: lib/librte_ether/rte_ethdev.c:3716: + if ((dev= &rte_eth_devices[port_id]) == NULL) { ^ ERROR: do not use assignment in if condition #232: FILE: lib/librte_ether/rte_ethdev.c:3716: + if ((dev= &rte_eth_devices[port_id]) == NULL) { ERROR: spaces required around that '=' (ctx:VxW) #251: FILE: lib/librte_ether/rte_ethdev.c:3735: + if ((dev= &rte_eth_devices[port_id]) == NULL) { ^ ERROR: do not use assignment in if condition #251: FILE: lib/librte_ether/rte_ethdev.c:3735: + if ((dev= &rte_eth_devices[port_id]) == NULL) { ERROR: spaces required around that '=' (ctx:VxW) #270: FILE: lib/librte_ether/rte_ethdev.c:3754: + if ((dev= &rte_eth_devices[port_id]) == NULL) { ^ ERROR: do not use assignment in if condition #270: FILE: lib/librte_ether/rte_ethdev.c:3754: + if ((dev= &rte_eth_devices[port_id]) == NULL) {