From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 5AC75A0547; Wed, 29 Sep 2021 07:18:23 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9AA33410EB; Wed, 29 Sep 2021 07:18:22 +0200 (CEST) Received: from mail-io1-f45.google.com (mail-io1-f45.google.com [209.85.166.45]) by mails.dpdk.org (Postfix) with ESMTP id 126DA40E3C for ; Wed, 29 Sep 2021 07:18:21 +0200 (CEST) Received: by mail-io1-f45.google.com with SMTP id n71so1658119iod.0 for ; Tue, 28 Sep 2021 22:18:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=qkWT2Li2ihIiZNSGc3W1ZrDNjbErsdqgyUeAhU7ymas=; b=TlSEfQLltVUgfFSGkt5l4BCNRVhe+lTDu2vj5flOS7gu9xogW9CKm+iX3REsqv4Imt U6FJ6xcIAKNZJFpXC5Yrtrbr7WVCzQnhneLPbaY5UYHXbM5rmAUDDDU1khFECEEAP8C8 fZd93bJRaLhFSbBnNnLiU2cVOY4xvvuT/Ac1s= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=qkWT2Li2ihIiZNSGc3W1ZrDNjbErsdqgyUeAhU7ymas=; b=5viW2xWi7BmjEB+NwT+3MfspGfGPjCWq1M+Il4Fe7saNs87hxIXfO13EjLVq0Z8s6G yyNCpsi0BHji7m0qkc84Iod7fBRIsmgjy5lvVOKToc66Ko1qOALo6RlMuYvCUF0GBGaW K2fODLoLXMUiAKCl9a2ppCWDTPz01gFeuyvZP884mTnUcXTSjU9xQYGD2csLmbTjH9Er l7Ucg8fu0LKYnOPqJyZE7w7IuXc7S4+m4rZsmsnbqPDphi48taGP7n3oapmDyvlSn+H7 iOARas8bu1pPAFZYL4HdLG2pW0clOdU4+srkyJUqatZ6rcJZvWSyE39woUrQgwBIFpEP 3ukA== X-Gm-Message-State: AOAM532e7m1pH+TglLTJXetzD+grdzDydUAaFBY0rb4mRwqIr8BgLTlc u2iBsOvvyUhXGjx0tBioWlBTyhVQ7yP6KZkjFCHFCpbgcu4= X-Google-Smtp-Source: ABdhPJxpgs3NxpZQmBz8+fFmmDrY0N26Udy3zBg+Fc4Qgab8ztpNwHUgTBwSvF9N5NjuSk2yQ2H06cayVk4DjUD7jRM= X-Received: by 2002:a05:6638:2415:: with SMTP id z21mr1615393jat.83.1632892700228; Tue, 28 Sep 2021 22:18:20 -0700 (PDT) MIME-Version: 1.0 References: <20210927224834.90837-1-ajit.khaparde@broadcom.com> In-Reply-To: <20210927224834.90837-1-ajit.khaparde@broadcom.com> From: Ajit Khaparde Date: Tue, 28 Sep 2021 22:18:04 -0700 Message-ID: To: dpdk-dev , Ferruh Yigit Cc: dpdk stable , Lance Richardson Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="0000000000005daf9405cd1b75f0" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: Re: [dpdk-dev] [PATCH] net/bnxt: fix tunnel port accounting X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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" --0000000000005daf9405cd1b75f0 Content-Type: text/plain; charset="UTF-8" On Mon, Sep 27, 2021 at 3:48 PM Ajit Khaparde wrote: > > Fix the tunnel port counting logic. > Currently we are incrementing the port count without checking > the if bnxt_hwrm_tunnel_dst_port_alloc would return success or failure. > Modify the logic to increment it only if the firmware returns success. > > Fixes: 10d074b2022d ("net/bnxt: support tunneling") > Cc: stable@dpdk.org > > Signed-off-by: Ajit Khaparde > Reviewed-by: Lance Richardson Patch applied to dpdk-next-net-brcm. --0000000000005daf9405cd1b75f0--