From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tiwei Bie Subject: Re: [PATCH] app/testpmd: always build VF and MACsec functions Date: Tue, 20 Jun 2017 14:53:22 +0800 Message-ID: <20170620065322.GA12786@debian-ZGViaWFuCg> References: <20170615110221.1395-1-thomas@monjalon.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Cc: jingjing.wu@intel.com, wenzhuo.lu@intel.com, dev@dpdk.org To: Thomas Monjalon Return-path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 9C0A4374 for ; Tue, 20 Jun 2017 08:52:06 +0200 (CEST) Content-Disposition: inline In-Reply-To: <20170615110221.1395-1-thomas@monjalon.net> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Thu, Jun 15, 2017 at 01:02:21PM +0200, Thomas Monjalon wrote: > These functions are supported only on ixgbe. [...] > @@ -3013,15 +3013,21 @@ set_vf_traffic(portid_t port_id, uint8_t is_rx, uint16_t vf, uint8_t on) > > if (diag == 0) > return; > - if(is_rx) > + if(is_rx) { It's better to also fix this coding style issue. Best regards, Tiwei Bie > printf("rte_pmd_ixgbe_set_vf_rx for port_id=%d failed " > - "diag=%d\n", port_id, diag); > - else > + "diag=%d\n", port_id, diag); > + return; > + } else { > printf("rte_pmd_ixgbe_set_vf_tx for port_id=%d failed " > - "diag=%d\n", port_id, diag); > - > -} > + "diag=%d\n", port_id, diag); > + return; > + } > #endif > + printf("VF %s setting not supported for port %d\n", > + is_rx ? "Rx" : "Tx", port_id); > + RTE_SET_USED(vf); > + RTE_SET_USED(on); > +} > > int > set_queue_rate_limit(portid_t port_id, uint16_t queue_idx, uint16_t rate) > -- > 2.13.1 >