From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: [PATCH v9 3/5] igb: add ops to support ethtool ops Date: Fri, 26 Jun 2015 18:35:54 -0700 Message-ID: <20150626183554.468aa9ee@urahara> References: <1432946276-9424-1-git-send-email-liang-min.wang@intel.com> <1435367948-20240-1-git-send-email-liang-min.wang@intel.com> <1435367948-20240-4-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-f53.google.com (mail-pa0-f53.google.com [209.85.220.53]) by dpdk.org (Postfix) with ESMTP id 36192CA6E for ; Sat, 27 Jun 2015 03:35:49 +0200 (CEST) Received: by padev16 with SMTP id ev16so76619557pad.0 for ; Fri, 26 Jun 2015 18:35:48 -0700 (PDT) In-Reply-To: <1435367948-20240-4-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 21:19:06 -0400 Liang-Min Larry Wang wrote: > +static struct reg_info igb_regs_general[] = { > + {E1000_CTRL, 1, 1, "E1000_CTRL"}, > + {E1000_STATUS, 1, 1, "E1000_STATUS"}, > + {E1000_CTRL_EXT, 1, 1, "E1000_CTRL_EXT"}, > + {E1000_MDIC, 1, 1, "E1000_MDIC"}, > + {E1000_SCTL, 1, 1, "E1000_SCTL"}, > + {E1000_CONNSW, 1, 1, "E1000_CONNSW"}, > + {E1000_VET, 1, 1, "E1000_VET"}, > + {E1000_LEDCTL, 1, 1, "E1000_LEDCTL"}, > + {E1000_PBA, 1, 1, "E1000_PBA"}, > + {E1000_PBS, 1, 1, "E1000_PBS"}, > + {E1000_FRTIMER, 1, 1, "E1000_FRTIMER"}, > + {E1000_TCPTIMER, 1, 1, "E1000_TCPTIMER"}, > + {0, 0, 0, ""} > +}; > + All pre-set reg_info should be const. And this as well: > +static struct reg_info *igb_regs[] = { > + igb_regs_general, > + igb_regs_nvm, > + igb_regs_interrupt, > + igb_regs_fctl, > + igb_regs_rxdma, > + igb_regs_rx, > + igb_regs_tx, > + igb_regs_wakeup, > + igb_regs_mac, > + NULL}; > +