[dpdk-stable] [PATCH 1/2] net/bnxt: enable default VNIC allocation

Yuanhan Liu yliu at fridaylinux.org
Wed Aug 16 08:32:32 CEST 2017


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 at 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)


More information about the stable mailing list