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 79A08A04BB; Sat, 26 Sep 2020 02:58:41 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0B13A1E9EE; Sat, 26 Sep 2020 02:58:40 +0200 (CEST) Received: from mail-oi1-f193.google.com (mail-oi1-f193.google.com [209.85.167.193]) by dpdk.org (Postfix) with ESMTP id CD8B21E9EA for ; Sat, 26 Sep 2020 02:58:37 +0200 (CEST) Received: by mail-oi1-f193.google.com with SMTP id c13so4683404oiy.6 for ; Fri, 25 Sep 2020 17:58:37 -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=pu/7klLWCbujW29BkiXPYJZW8t0ByoZox7o0ECkMipo=; b=cvZCSt9enGuMCwgrp5IaC2/DLzeAkOlw5MXYmsOuKfhqM6Wbh21FtteUOrdtASc0fB 15syYvXgw6p2LcDigGJPaQ4q9oSAUpQFKxLrNMoUpxwDS60cTBAE3wqwy5zSb4hlDqzn 2xVFSYygAJhsMwuME6dxokfp7UQMhHO0zBgZs= 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=pu/7klLWCbujW29BkiXPYJZW8t0ByoZox7o0ECkMipo=; b=JNrss3SpeVX2W+m+7CyuSh/3UIrkvT9xO+SSdQTZOdxO6swq0S4Xv8zfaoha0HTUm9 wm+ucC+hm2CzoNX/zyjj3K7VVn8qKr+O2jA6PoaL8/r3bAfwm2iDVKAf+XF9VetDsQp1 85zrI1+5wYa51Vi9Hj9fP6r4F70HSL/NKrm/v2zq3PnhsTRmXCq9m1pEuueiP3AcGoCR 0TZXAatKiGk49nfD1iuUCwJMUoGnmFWjWBns+/2YfRnJLZxE/H8OrFA3sXeMWtg0c3b3 +/wJVo8hgZTh2TvUzndBHZp6dSyaQsLa3keDqIHlJpPLRoxqY0OWIy4P/PgxOla1tipK L0hg== X-Gm-Message-State: AOAM5335hstUvFohGRMXcF1/PubJcdZxG5CZNTOe60m0NYorCpHVpAGq RxvF83AzU9ijXzp2C2U6n/lRAhS3byo9GG9YGWTaww== X-Google-Smtp-Source: ABdhPJzKWZfoNDKjLV9PLMzlbWKUkmdvIJMgRWA1TcmTSoEohqmPBQ3c0NEQNm2M9thkHunPRjqS50oruIUFWDHdamc= X-Received: by 2002:aca:4904:: with SMTP id w4mr119384oia.179.1601081916981; Fri, 25 Sep 2020 17:58:36 -0700 (PDT) MIME-Version: 1.0 References: <20200925214019.42504-1-lance.richardson@broadcom.com> In-Reply-To: <20200925214019.42504-1-lance.richardson@broadcom.com> From: Ajit Khaparde Date: Fri, 25 Sep 2020 17:58:20 -0700 Message-ID: To: Lance Richardson Cc: Somnath Kotur , dpdk-dev Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] [PATCH] net/bnxt: fix vector mode for 32-bit x86 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 Fri, Sep 25, 2020 at 2:40 PM Lance Richardson wrote: > > Descriptor valid mask should be 64-bit all ones, use > appropriate initializer type (unsigned long long) to > obtain correct value in 32-bit mode. > > Fixes: deae85145c64 ("net/bnxt: handle multiple packets per loop in vector Rx") > Signed-off-by: Lance Richardson > Reviewed-by: Ajit Kumar Khaparde Patch applied to dpdk-next-net-brcm. Thanks > --- > drivers/net/bnxt/bnxt_rxtx_vec_sse.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/net/bnxt/bnxt_rxtx_vec_sse.c b/drivers/net/bnxt/bnxt_rxtx_vec_sse.c > index 3a5a50afd8..271e7908e3 100644 > --- a/drivers/net/bnxt/bnxt_rxtx_vec_sse.c > +++ b/drivers/net/bnxt/bnxt_rxtx_vec_sse.c > @@ -164,7 +164,7 @@ bnxt_recv_pkts_vec(void *rx_queue, struct rte_mbuf **rx_pkts, > uint16_t cp_ring_size = cpr->cp_ring_struct->ring_size; > uint16_t rx_ring_size = rxr->rx_ring_struct->ring_size; > struct cmpl_base *cp_desc_ring = cpr->cp_desc_ring; > - uint64_t valid, desc_valid_mask = ~0UL; > + uint64_t valid, desc_valid_mask = ~0ULL; > const __m128i info3_v_mask = _mm_set_epi32(CMPL_BASE_V, CMPL_BASE_V, > CMPL_BASE_V, CMPL_BASE_V); > uint32_t raw_cons = cpr->cp_raw_cons; > -- > 2.25.1 >