From mboxrd@z Thu Jan 1 00:00:00 1970 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 8B3346CB9 for ; Mon, 9 May 2016 19:37:52 +0200 (CEST) Received: by mail-pa0-f54.google.com with SMTP id r5so76694489pag.1 for ; Mon, 09 May 2016 10:37:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=kxm7uKNNaCOUjSNriIMjeRpoKP7vxZ6B2NZShQAxqJE=; b=GrldMcleXKnosUmPn0CAuLkSZs45T1AZKXzAZfkrXKY5TC6hTqcsRi5uKQ7h8cMs1O ocoVJptjajeGBVjgjBh0kQkTtF0JSRjWI+kATCmGRqcGNRcrM+CyaDcXFnnrfCkCj6pE csF7FQIlCqjy3EBi+/ze+cvNyVzrx9Q1Rvz9cx4j7crVzslx4hEnDdBZg4uIGjgv9TqK ND28ovpIZ3nwZwKRIPkwdU2C9p/Ypq6GLzU7Z16nL2d5XJhRaF+T+4f6DQ5ns8zcZYfO ArGUw1xSywb8knoCBRy7n21eqGxEJ/ROw1pdo5Bp+F5EFZ42P/EcFHu0nn45W19ZZNjF AsXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=kxm7uKNNaCOUjSNriIMjeRpoKP7vxZ6B2NZShQAxqJE=; b=FjuhaF769ghdAR1wZivKFpPktjZqcCfYFLHLQ77ZIESiSAeO9e66JAaAyPv1HJZgoP foSVlgudSo/AdZe6rdYB6rD13zF/QloTrbZUGePuYOI2ip9yohB5elbLnXIyF/DVU4kH 73Yz29lVtXGNhicy2TM9wUTpKPsoI1FpZXG77LF/zARFU2aZtqM4bDXh+/dGFoUauShC BeMV5sZHe6qqj1p6FbunuO5FrtHyoTMj1wzNqM0LG/3Y6FwObLSeV7aPgEXd2eeeRcUG WTXACZq7OLx8BCwRsrNx9IV2YjV+9MTT328sy37x3V0hifMGbm/CIYBUfU8ENtZBi/fk XGPw== X-Gm-Message-State: AOPr4FXMfWGsfIGV+bj1TbYp+Sgwm5Ia+rhuqlvJEYwUzzKPSgTkJGG9YAiGKlCCitajsQ== X-Received: by 10.66.190.131 with SMTP id gq3mr51498694pac.42.1462815471879; Mon, 09 May 2016 10:37:51 -0700 (PDT) Received: from xeon-e3 (static-50-53-72-186.bvtn.or.frontiernet.net. [50.53.72.186]) by smtp.gmail.com with ESMTPSA id o80sm41983222pfa.37.2016.05.09.10.37.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 May 2016 10:37:51 -0700 (PDT) Date: Mon, 9 May 2016 10:38:05 -0700 From: Stephen Hemminger To: Jerin Jacob Cc: , , , Maciej Czekaj , Kamil Rytarowski , Zyta Szpak , Slawomir Rosek , Radoslaw Biernacki Message-ID: <20160509103805.54bd7457@xeon-e3> In-Reply-To: <1462634198-2289-2-git-send-email-jerin.jacob@caviumnetworks.com> References: <1462634198-2289-1-git-send-email-jerin.jacob@caviumnetworks.com> <1462634198-2289-2-git-send-email-jerin.jacob@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH 01/20] thunderx/nicvf/base: add hardware API for ThunderX nicvf inbuilt NIC 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, 09 May 2016 17:37:53 -0000 On Sat, 7 May 2016 20:46:19 +0530 Jerin Jacob wrote: > +static struct nicvf_reg_info nicvf_reg_tbl[] = { > + NICVF_REG_INFO(NIC_VF_CFG), > + NICVF_REG_INFO(NIC_VF_PF_MAILBOX_0_1), > + NICVF_REG_INFO(NIC_VF_INT), > + NICVF_REG_INFO(NIC_VF_INT_W1S), > + NICVF_REG_INFO(NIC_VF_ENA_W1C), > + NICVF_REG_INFO(NIC_VF_ENA_W1S), > + NICVF_REG_INFO(NIC_VNIC_RSS_CFG), > + NICVF_REG_INFO(NIC_VNIC_RQ_GEN_CFG), > +}; > + > +static struct nicvf_reg_info nicvf_multi_reg_tbl[] = { > + {NIC_VNIC_RSS_KEY_0_4 + 0, "NIC_VNIC_RSS_KEY_0"}, > + {NIC_VNIC_RSS_KEY_0_4 + 8, "NIC_VNIC_RSS_KEY_1"}, > + {NIC_VNIC_RSS_KEY_0_4 + 16, "NIC_VNIC_RSS_KEY_2"}, > + {NIC_VNIC_RSS_KEY_0_4 + 24, "NIC_VNIC_RSS_KEY_3"}, > + {NIC_VNIC_RSS_KEY_0_4 + 32, "NIC_VNIC_RSS_KEY_4"}, > + {NIC_VNIC_TX_STAT_0_4 + 0, "NIC_VNIC_STAT_TX_OCTS"}, > + {NIC_VNIC_TX_STAT_0_4 + 8, "NIC_VNIC_STAT_TX_UCAST"}, > + {NIC_VNIC_TX_STAT_0_4 + 16, "NIC_VNIC_STAT_TX_BCAST"}, > + {NIC_VNIC_TX_STAT_0_4 + 24, "NIC_VNIC_STAT_TX_MCAST"}, > + {NIC_VNIC_TX_STAT_0_4 + 32, "NIC_VNIC_STAT_TX_DROP"}, > + {NIC_VNIC_RX_STAT_0_13 + 0, "NIC_VNIC_STAT_RX_OCTS"}, > + {NIC_VNIC_RX_STAT_0_13 + 8, "NIC_VNIC_STAT_RX_UCAST"}, > + {NIC_VNIC_RX_STAT_0_13 + 16, "NIC_VNIC_STAT_RX_BCAST"}, > + {NIC_VNIC_RX_STAT_0_13 + 24, "NIC_VNIC_STAT_RX_MCAST"}, > + {NIC_VNIC_RX_STAT_0_13 + 32, "NIC_VNIC_STAT_RX_RED"}, > + {NIC_VNIC_RX_STAT_0_13 + 40, "NIC_VNIC_STAT_RX_RED_OCTS"}, > + {NIC_VNIC_RX_STAT_0_13 + 48, "NIC_VNIC_STAT_RX_ORUN"}, > + {NIC_VNIC_RX_STAT_0_13 + 56, "NIC_VNIC_STAT_RX_ORUN_OCTS"}, > + {NIC_VNIC_RX_STAT_0_13 + 64, "NIC_VNIC_STAT_RX_FCS"}, > + {NIC_VNIC_RX_STAT_0_13 + 72, "NIC_VNIC_STAT_RX_L2ERR"}, > + {NIC_VNIC_RX_STAT_0_13 + 80, "NIC_VNIC_STAT_RX_DRP_BCAST"}, > + {NIC_VNIC_RX_STAT_0_13 + 88, "NIC_VNIC_STAT_RX_DRP_MCAST"}, > + {NIC_VNIC_RX_STAT_0_13 + 96, "NIC_VNIC_STAT_RX_DRP_L3BCAST"}, > + {NIC_VNIC_RX_STAT_0_13 + 104, "NIC_VNIC_STAT_RX_DRP_L3MCAST"}, > +}; > + > +static struct nicvf_reg_info nicvf_qset_cq_reg_tbl[] = { > + NICVF_REG_INFO(NIC_QSET_CQ_0_7_CFG), > + NICVF_REG_INFO(NIC_QSET_CQ_0_7_CFG2), > + NICVF_REG_INFO(NIC_QSET_CQ_0_7_THRESH), > + NICVF_REG_INFO(NIC_QSET_CQ_0_7_BASE), > + NICVF_REG_INFO(NIC_QSET_CQ_0_7_HEAD), > + NICVF_REG_INFO(NIC_QSET_CQ_0_7_TAIL), > + NICVF_REG_INFO(NIC_QSET_CQ_0_7_DOOR), > + NICVF_REG_INFO(NIC_QSET_CQ_0_7_STATUS), > + NICVF_REG_INFO(NIC_QSET_CQ_0_7_STATUS2), > + NICVF_REG_INFO(NIC_QSET_CQ_0_7_DEBUG), > +}; > + > +static struct nicvf_reg_info nicvf_qset_rq_reg_tbl[] = { > + NICVF_REG_INFO(NIC_QSET_RQ_0_7_CFG), > + NICVF_REG_INFO(NIC_QSET_RQ_0_7_STATUS0), > + NICVF_REG_INFO(NIC_QSET_RQ_0_7_STATUS1), > +}; > + > +static struct nicvf_reg_info nicvf_qset_sq_reg_tbl[] = { > + NICVF_REG_INFO(NIC_QSET_SQ_0_7_CFG), > + NICVF_REG_INFO(NIC_QSET_SQ_0_7_THRESH), > + NICVF_REG_INFO(NIC_QSET_SQ_0_7_BASE), > + NICVF_REG_INFO(NIC_QSET_SQ_0_7_HEAD), > + NICVF_REG_INFO(NIC_QSET_SQ_0_7_TAIL), > + NICVF_REG_INFO(NIC_QSET_SQ_0_7_DOOR), > + NICVF_REG_INFO(NIC_QSET_SQ_0_7_STATUS), > + NICVF_REG_INFO(NIC_QSET_SQ_0_7_DEBUG), > + NICVF_REG_INFO(NIC_QSET_SQ_0_7_STATUS0), > + NICVF_REG_INFO(NIC_QSET_SQ_0_7_STATUS1), > +}; > + > +static struct nicvf_reg_info nicvf_qset_rbdr_reg_tbl[] = { > + NICVF_REG_INFO(NIC_QSET_RBDR_0_1_CFG), > + NICVF_REG_INFO(NIC_QSET_RBDR_0_1_THRESH), > + NICVF_REG_INFO(NIC_QSET_RBDR_0_1_BASE), > + NICVF_REG_INFO(NIC_QSET_RBDR_0_1_HEAD), > + NICVF_REG_INFO(NIC_QSET_RBDR_0_1_TAIL), > + NICVF_REG_INFO(NIC_QSET_RBDR_0_1_DOOR), > + NICVF_REG_INFO(NIC_QSET_RBDR_0_1_STATUS0), > + NICVF_REG_INFO(NIC_QSET_RBDR_0_1_STATUS1), > + NICVF_REG_INFO(NIC_QSET_RBDR_0_1_PRFCH_STATUS), > +}; Tables like this should be marked const