From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jianbo Liu Subject: Re: [PATCH 5/7] net/mrvl: add extra error logs Date: Fri, 1 Dec 2017 11:32:15 +0800 Message-ID: <20171201033214.GB21389@arm.com> References: <1512048743-23749-1-git-send-email-tdu@semihalf.com> <1512048743-23749-6-git-send-email-tdu@semihalf.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: dev@dpdk.org, mw@semihalf.com, jck@semihalf.com, dima@marvell.com, nsamsono@marvell.com To: Tomasz Duszynski Return-path: Received: from EUR03-AM5-obe.outbound.protection.outlook.com (mail-eopbgr30077.outbound.protection.outlook.com [40.107.3.77]) by dpdk.org (Postfix) with ESMTP id 899A12A62 for ; Fri, 1 Dec 2017 04:33:34 +0100 (CET) Content-Disposition: inline In-Reply-To: <1512048743-23749-6-git-send-email-tdu@semihalf.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" The 11/30/2017 14:32, Tomasz Duszynski wrote: > Add extra error logs in a few places. > > Signed-off-by: Tomasz Duszynski > --- > drivers/net/mrvl/mrvl_ethdev.c | 9 ++++++--- > 1 file changed, 6 insertions(+), 3 deletions(-) > > diff --git a/drivers/net/mrvl/mrvl_ethdev.c b/drivers/net/mrvl/mrvl_ethde= v.c > index 92cc283..ed97831 100644 > --- a/drivers/net/mrvl/mrvl_ethdev.c > +++ b/drivers/net/mrvl/mrvl_ethdev.c > @@ -431,8 +431,10 @@ mrvl_dev_start(struct rte_eth_dev *dev) > priv->bpool_min_size =3D priv->nb_rx_queues * MRVL_BURST_SIZE * 2; > > ret =3D pp2_ppio_init(&priv->ppio_params, &priv->ppio); > - if (ret) > + if (ret) { > + RTE_LOG(ERR, PMD, "Failed to init ppio\n"); > return ret; > + } > > /* > * In case there are some some stale uc/mc mac addresses flush them > @@ -467,8 +469,8 @@ mrvl_dev_start(struct rte_eth_dev *dev) > if (mrvl_qos_cfg) { > ret =3D mrvl_start_qos_mapping(priv); > if (ret) { > - pp2_ppio_deinit(priv->ppio); > - return ret; > + RTE_LOG(ERR, PMD, "Failed to setup QoS mapping\n"); > + goto out; > } > } > Do you need to print error log as well if mrvl_dev_set_link_up fails? > @@ -478,6 +480,7 @@ mrvl_dev_start(struct rte_eth_dev *dev) > > return 0; > out: > + RTE_LOG(ERR, PMD, "Failed to start device\n"); > pp2_ppio_deinit(priv->ppio); > return ret; > } > -- > 2.7.4 > -- IMPORTANT NOTICE: The contents of this email and any attachments are confid= ential and may also be privileged. If you are not the intended recipient, p= lease notify the sender immediately and do not disclose the contents to any= other person, use it for any purpose, or store or copy the information in = any medium. Thank you.