From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9F991A0542 for ; Thu, 13 Feb 2020 14:59:30 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 83C0B1C00E; Thu, 13 Feb 2020 14:59:30 +0100 (CET) Received: from us-smtp-delivery-1.mimecast.com (us-smtp-2.mimecast.com [207.211.31.81]) by dpdk.org (Postfix) with ESMTP id 895761BFE5 for ; Thu, 13 Feb 2020 14:59:27 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1581602367; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=HOAMNJEimhsdXB8LVjQtzS4UmqkaZSEmMV1cVK/zBzM=; b=SfiyKRG/AD+A7rCDAhF/OohIXoKHvF1WhqJmo3WHckHKkTaWiwIIRBGqIeit/9fQzjADnI z6vQ2uXXTacp1IcpYqVRJQUl3aZX1Hy0pWavv3Xsyroh5wTPxIUo0HJ/QonnCVxuW7vvfT clSNHmnV3Ufr32ZcId5tV6POqP/gnys= Received: from mail-vk1-f200.google.com (mail-vk1-f200.google.com [209.85.221.200]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-293-zmtNWoLyNs65oz-JbyrpHA-1; Thu, 13 Feb 2020 08:59:25 -0500 Received: by mail-vk1-f200.google.com with SMTP id e22so1976636vke.21 for ; Thu, 13 Feb 2020 05:59:24 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=G7eLUArMG1dQssBzLKuEDW3fk9OdhWolBXYNHTeICGQ=; b=G+bfx+Lo6UHXK1DGdP0smTR/RxOXnTn1Z1X7Pz2/71+entqQgV7q1XURdbMMOghOh2 P3fZ3GtBMrioenKL9VlZD7Y/OutTm6QEKYn7LWMimjLadOfkL/PNDTONLG3hffNGmb9f Z/dQ04k+tKvahXgk6jRdQ0BdoFHto3t1B9wJrFEYk1x40ilvTfijIHsprcCitkkX2ZIV kQLSf9RXXWVvy/COCdLoB0nRzWi7jpsiUaAj3NJLiZfV9Dmn1kXy/XwVgcsQQJ6GGsox 1bsq+pCqW4K3y7RK6wzDZx3WYfTqkPY5B4U02aqrp/KbT4V/OU4qXXxsTi7QFrKMstZN S1JQ== X-Gm-Message-State: APjAAAXvDWW9Rd6DCOv899chDb0Pqx5Q/Z/eYoLtvgMrW1ybjcWJeLfw L0QooUueYykdeQbLE8vKvt4kKlCMzMQx2se4XsTX00o9D9BySlo3DZcN9ktJBKepHDYDDYhzLAu sqkq9dwF5SOAc2gUyx05VMYM= X-Received: by 2002:a67:f1ca:: with SMTP id v10mr2151683vsm.180.1581602364489; Thu, 13 Feb 2020 05:59:24 -0800 (PST) X-Google-Smtp-Source: APXvYqzcwtjDEfIP5cz9P8b7O+cjdBV/+Vop20ovIEkueI6/pBz3t530hGE95vj1vkDl33GPwIZGKlzxg/5U3hSYzB4= X-Received: by 2002:a67:f1ca:: with SMTP id v10mr2151670vsm.180.1581602364220; Thu, 13 Feb 2020 05:59:24 -0800 (PST) MIME-Version: 1.0 References: <20191209063756.26790-1-gargi.sau@intel.com> <20191209120712.GA98@bricha3-MOBL.ger.corp.intel.com> In-Reply-To: <20191209120712.GA98@bricha3-MOBL.ger.corp.intel.com> From: David Marchand Date: Thu, 13 Feb 2020 14:59:13 +0100 Message-ID: To: Gargi Sau Cc: dev , dpdk stable , Bruce Richardson X-MC-Unique: zmtNWoLyNs65oz-JbyrpHA-1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [dpdk-stable] [dpdk-dev] [PATCH] examples/ethtool: fix unchecked return value X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" On Mon, Dec 9, 2019 at 1:07 PM Bruce Richardson wrote: > > On Mon, Dec 09, 2019 at 06:37:56AM +0000, Gargi Sau wrote: > > This checks the return value from the function > > rte_eth_dev_set_vlan_offload. > > > > Coverity issue: 350358 > > Fixes: bda68ab9d1e7 ("examples/ethtool: add user-space ethtool sample a= pplication") > > Cc: stable@dpdk.org > > > > Signed-off-by: Gargi Sau > > --- > > examples/ethtool/lib/rte_ethtool.c | 4 +++- > > 1 file changed, 3 insertions(+), 1 deletion(-) > > > > diff --git a/examples/ethtool/lib/rte_ethtool.c b/examples/ethtool/lib/= rte_ethtool.c > > index 667d7eaf2..db8150efd 100644 > > --- a/examples/ethtool/lib/rte_ethtool.c > > +++ b/examples/ethtool/lib/rte_ethtool.c > > @@ -402,7 +402,9 @@ rte_ethtool_net_set_rx_mode(uint16_t port_id) > > } > > > > /* Enable Rx vlan filter, VF unspport status is discard */ > > - rte_eth_dev_set_vlan_offload(port_id, ETH_VLAN_FILTER_MASK); > > + ret =3D rte_eth_dev_set_vlan_offload(port_id, ETH_VLAN_FILTER_MAS= K); > > + if (ret !=3D 0) > > + return ret; > > > Looks ok to me. > > Acked-by: Bruce Richardson Applied, thanks. --=20 David Marchand