From: Yuanhan Liu <yliu@fridaylinux.org>
To: Ajit Khaparde <ajit.khaparde@broadcom.com>
Cc: stable@dpdk.org
Subject: Re: [dpdk-stable] [PATCH 1/2] net/bnxt: enable default VNIC allocation
Date: Wed, 16 Aug 2017 14:32:32 +0800 [thread overview]
Message-ID: <20170816063232.GV9612@yliu-home> (raw)
In-Reply-To: <20170815160404.58495-1-ajit.khaparde@broadcom.com>
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 <ajit.khaparde@broadcom.com>
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)
prev parent reply other threads:[~2017-08-16 6:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-15 16:04 Ajit Khaparde
2017-08-15 16:04 ` [dpdk-stable] [PATCH 2/2] net/bnxt: fix vnic cleanup Ajit Khaparde
2017-08-16 6:32 ` Yuanhan Liu [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170816063232.GV9612@yliu-home \
--to=yliu@fridaylinux.org \
--cc=ajit.khaparde@broadcom.com \
--cc=stable@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).