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 42EEBA04F0; Mon, 13 Jan 2020 08:26:33 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4B5B91D5E9; Mon, 13 Jan 2020 08:26:32 +0100 (CET) Received: from mail-io1-f65.google.com (mail-io1-f65.google.com [209.85.166.65]) by dpdk.org (Postfix) with ESMTP id 49F471D5E8; Mon, 13 Jan 2020 08:26:31 +0100 (CET) Received: by mail-io1-f65.google.com with SMTP id x1so8708557iop.7; Sun, 12 Jan 2020 23:26:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=oJf5uK2YUH+6/yp6cJGXcR9iawt0PA4h8KuFbwDB8C8=; b=b/EbzEMNVFn3CKZ5qQJQ+AcD35ITuxnkgWCzO4Ik0VlHM0rZCT8kyPaufchKSPZcTX SxMP9bRmgjMT5kdboqXztGuIw2FN1xllchulq+ETxYYgYA6U8Xxlm4A+PIQYmtLNSR1S nddBjvI8lboRBLz2ZmWjWf5GuOtaz0XWAyfeYQvm2GmsFS7qfHP7orx3HPqqYmobs5nL ULeHmWO6qcmyZcjbmPOKX9lscPtZ7RQ0q6LT+4c1VpwL1XwR7H1PAGmNOwa2a3qusEBZ grB4XNi+i2Ydjqsqic1B8b/66iy459afUzJewsaHKmT/PrK6qfufhOyG8tYBhEEWEz6P kwlA== 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=oJf5uK2YUH+6/yp6cJGXcR9iawt0PA4h8KuFbwDB8C8=; b=IClqWQTXwdOXMnsQRLbSUJDgeVQWgAMBVjCf5i6jTU2iLNoIqKUzYRP71qNjAxmKLW Okl1iiFoHVtOEoG+CufV6Z3PoQnxJ2ALdqqdvT5pyWDNXdgdJBwzv/unoZlHw7sRcvBz kno407Dmx29j5ABW9SnnVzkP0Y/dfbC+4XxvEzv/it4A1G3XM/2LnfLoIiu6ygi+b+cg RtjkluYcjdyqCL1JKDe+uQfuPKAvMr3GSGt1A4nzJvvQss0lQvNzwdmavcwhHkIqV2q7 KKE65OhUosXGDynZIxiiGHOKHpC86PHGrYi6Q4/4X1iCGHpJW6ImmBAKeX/kPw17fPA/ ozcw== X-Gm-Message-State: APjAAAWMaGMhvdHoLIYdrO/lh1kBxzJCmasFsLurIX6ar9Fue1dK20I/ LLYSsKl8OAHv05Eihc3BjNa6aItUj4zw6G6TMdg= X-Google-Smtp-Source: APXvYqxkfdBTO87QothBkED0S7BHj/L7mDX9lHxOQKnrR1Q9TTzqeKBYoo7kUDKFhCwFqUw/cLYbcRZfo9TqAz7nXYQ= X-Received: by 2002:a6b:c742:: with SMTP id x63mr11703404iof.162.1578900390392; Sun, 12 Jan 2020 23:26:30 -0800 (PST) MIME-Version: 1.0 References: <1575297605-26773-1-git-send-email-hkalra@marvell.com> In-Reply-To: <1575297605-26773-1-git-send-email-hkalra@marvell.com> From: Jerin Jacob Date: Mon, 13 Jan 2020 12:56:14 +0530 Message-ID: To: Harman Kalra , Ferruh Yigit Cc: Jerin Jacob Kollanukkaran , Nithin Kumar Dabilpuram , Kiran Kumar Kokkilagadda , "dev@dpdk.org" , "stable@dpdk.org" Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH] net/octeontx2: fix VF configuration fail X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list 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 Mon, Dec 2, 2019 at 8:11 PM Harman Kalra wrote: > > Returning -ENOTSUP only in case loopback mode is enabled and > device is VF or SDP. > > Fixes: c2c0aa75cd01 ("net/octeontx2: fix loopback config return for VF") > Cc: stable@dpdk.org > > Signed-off-by: Harman Kalra > --- Acked-by: Jerin Jacob Applied to dpdk-next-net-mrvl/master. Thanks > drivers/net/octeontx2/otx2_ethdev.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/net/octeontx2/otx2_ethdev.c b/drivers/net/octeontx2/otx2_ethdev.c > index ed329273d..43c6107a8 100644 > --- a/drivers/net/octeontx2/otx2_ethdev.c > +++ b/drivers/net/octeontx2/otx2_ethdev.c > @@ -204,7 +204,7 @@ cgx_intlbk_enable(struct otx2_eth_dev *dev, bool en) > { > struct otx2_mbox *mbox = dev->mbox; > > - if (otx2_dev_is_vf_or_sdp(dev)) > + if (en && otx2_dev_is_vf_or_sdp(dev)) > return -ENOTSUP; > > if (en) > -- > 2.18.0 >