From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f180.google.com (mail-pf0-f180.google.com [209.85.192.180]) by dpdk.org (Postfix) with ESMTP id 5289B7D83 for ; Wed, 16 Aug 2017 08:32:39 +0200 (CEST) Received: by mail-pf0-f180.google.com with SMTP id o86so2416413pfj.1 for ; Tue, 15 Aug 2017 23:32:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fridaylinux-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=BrB85bxpP9UbrmaIWGXA9RK/eRJsSA0n1FxWmP9Q3RQ=; b=C8F/DteCbKoSmpM3+pUWyYVm2UKF+yUHWMPSTpded+gqPpN8uUJTYuJw0lCeMRt3p5 RXLrwCD/sadFj8QlZhR0KtvHuvyFbaEPv/OzTn/YgbjQ8ZTbnUnxngQMaVMpr3l9PD+6 wEYVbvjwdqFovMbFRliD8dormHI7C1ky2418Dtwah9a2/P86B0vBFEcrZB8YrIFkR2s4 Q+2pljeBa/TiZP2HStI1azHeZJSSOhtkBY9yyf+uTMbsubjn7kn4dkxzFRg4tZr1oasL 8BlfjzcOR/DgCbNlf2xkx/S8Y09EunWi7MKIhqmfOAzAVnm/oiLS3u8JBdsFu6ye6qmU WcOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=BrB85bxpP9UbrmaIWGXA9RK/eRJsSA0n1FxWmP9Q3RQ=; b=qgcEZtUDQ+sR2w9lImm2LA9dhI23+UveKxhOVl/dOOEIuDYxoicnGgZA1xLwvi0IGI b90kfBSXMkCeWX9gorERXCZMOILN7bzxO4Pq0jKc40+B/u/dFnyJpR+u3ozsHecY6Y9s 6lU7nUyynZLBzbJotHIqAoubw76sOlybed3tEaW0nCtwc0/xTbDSOtzmT7szwhaUT7Rb nue8Iudq2e5lSaDjWIjbHlOCl2/8V2cOy9IRzLUtSewk9yszW4ytr8CSpI/mtMmW+rQn inPnRie6i1NCTaKBFlNeLl81LtDZ9E7Pr4g75mKRo9qyPa7KWEqJfCE+Q3CPYImNPtd9 y5sA== X-Gm-Message-State: AHYfb5haa0jAsbwGzdSRw1txltYhm0c0mAeU+ZW7RgP0mqloFzNkSaWG ObupqgHFdS4rz4a6 X-Received: by 10.84.138.129 with SMTP id 1mr775194plp.223.1502865158559; Tue, 15 Aug 2017 23:32:38 -0700 (PDT) Received: from yliu-home ([45.63.61.64]) by smtp.gmail.com with ESMTPSA id r8sm625613pfl.34.2017.08.15.23.32.36 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 15 Aug 2017 23:32:37 -0700 (PDT) Date: Wed, 16 Aug 2017 14:32:32 +0800 From: Yuanhan Liu To: Ajit Khaparde Cc: stable@dpdk.org Message-ID: <20170816063232.GV9612@yliu-home> References: <20170815160404.58495-1-ajit.khaparde@broadcom.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170815160404.58495-1-ajit.khaparde@broadcom.com> User-Agent: Mutt/1.5.24 (2015-08-30) Subject: Re: [dpdk-stable] [PATCH 1/2] net/bnxt: enable default VNIC allocation 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: , X-List-Received-Date: Wed, 16 Aug 2017 06:32:39 -0000 On Tue, Aug 15, 2017 at 11:04:03AM -0500, Ajit Khaparde wrote: > [ backported from upstream commit 28eef5e0a8fa592f8bdf3a3ea0a6a00fecee6acf ] > > Previously, no VNICs were allocated as the default VNIC, > even if they were configured as one. This patch fixes that error. > > Signed-off-by: Ajit Khaparde Applied to dpdk-stable/16.11. Thank you! --yliu > --- > drivers/net/bnxt/bnxt_hwrm.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/net/bnxt/bnxt_hwrm.c b/drivers/net/bnxt/bnxt_hwrm.c > index fef00f6..a4bc68b 100644 > --- a/drivers/net/bnxt/bnxt_hwrm.c > +++ b/drivers/net/bnxt/bnxt_hwrm.c > @@ -840,6 +840,8 @@ int bnxt_hwrm_vnic_alloc(struct bnxt *bp, struct bnxt_vnic_info *vnic) > > HWRM_PREP(req, VNIC_ALLOC, -1, resp); > > + if (vnic->func_default) > + req.flags = HWRM_VNIC_ALLOC_INPUT_FLAGS_DEFAULT; > rc = bnxt_hwrm_send_message(bp, &req, sizeof(req)); > > HWRM_CHECK_RESULT; > -- > 2.10.1 (Apple Git-78)