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 249CEA04B3; Mon, 16 Dec 2019 15:14:03 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E97771BFAD; Mon, 16 Dec 2019 15:14:01 +0100 (CET) Received: from mail-pl1-f195.google.com (mail-pl1-f195.google.com [209.85.214.195]) by dpdk.org (Postfix) with ESMTP id D38771BFAB for ; Mon, 16 Dec 2019 15:13:59 +0100 (CET) Received: by mail-pl1-f195.google.com with SMTP id c23so4528072plz.4 for ; Mon, 16 Dec 2019 06:13:59 -0800 (PST) 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=HVrjU1mDjwJmjeD7DcTVPd/gLQ4OUcpnaCI3f/IzRyY=; b=W9iyvUQl2PrUe9k0AlnBqn0Y/AIAyIN7gfYc7cZ4ThjVwL5Fe164POoFvDmNwb+4mn tAcWgIobwddDT9BN+AJa8Kqd6TMDtlFwSRSP8S8l4oIqry1dgapIwfIG522KulCbTslE HmS/7Qa1gGqWAv19DryiQ+Wx0X5fO/YKJBffk= 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=HVrjU1mDjwJmjeD7DcTVPd/gLQ4OUcpnaCI3f/IzRyY=; b=cYWmBwDDHmaufokO215Fv559Eax7iCVi26OtT6GE3yaP6/9srAaz1OfqusB5Iz0yQw 46cA3EACD8yqpxFPBQC5tdjMplWAhFl4u0rkkNjAhT8QTUHrxhkD/zMko3IScFzDs2Ax dIlXk9CeUPDP3hQjICdJEv/GGUTlEPOwXD+nRybat6JuqycivK8cjP5b+9oOPvmTgbpC R1FlECOHId6OIHxmWT6vzFm99iNW9TRpGLWwjhSeSiP3oW/Ja6JkprzyEWLsUv9yCQBI K+PBZnAYhNqJFth5OD1ek+ZkDBy6z4UFbAnW1zPbah0B9XB9bPND+M9oU1PyzLM1aUzI SAFQ== X-Gm-Message-State: APjAAAWvhYDJ6C9v6XSlg1/IW3ZKsPh7FoGRKDrms1ko0qC6p3tIQjma kasOy6XDvAou7u92/M7axt7Pz4UMa5WXnZsluDoDWw== X-Google-Smtp-Source: APXvYqxns2mbRa6I7W+W8R2K6yEiTUEVzVyz9O+4zCE8Btu5SK3DajdLEx0Dd+abbz2vrBJR/Y8dyDod8+hfJndwSoo= X-Received: by 2002:a17:90a:33e8:: with SMTP id n95mr18075494pjb.17.1576505638899; Mon, 16 Dec 2019 06:13:58 -0800 (PST) MIME-Version: 1.0 References: <20191213224242.42621-1-ajit.khaparde@broadcom.com> In-Reply-To: <20191213224242.42621-1-ajit.khaparde@broadcom.com> From: Lance Richardson Date: Mon, 16 Dec 2019 09:13:47 -0500 Message-ID: To: Ajit Khaparde Cc: dev@dpdk.org, Ferruh Yigit Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH] net/bnxt: add support for flow mark action 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, Dec 13, 2019 at 5:42 PM Ajit Khaparde wrote: > > Add support for RTE_FLOW_ACTION_TYPE_MARK > Signed-off-by: Ajit Khaparde > --- > diff --git a/drivers/net/bnxt/bnxt_rxtx_vec_sse.c b/drivers/net/bnxt/bnxt_rxtx_vec_sse.c > index 22d9f9e84..ce00da633 100644 > --- a/drivers/net/bnxt/bnxt_rxtx_vec_sse.c > +++ b/drivers/net/bnxt/bnxt_rxtx_vec_sse.c > @@ -280,8 +280,14 @@ bnxt_recv_pkts_vec(void *rx_queue, struct rte_mbuf **rx_pkts, > > rte_compiler_barrier(); > > - if (rxcmp->flags_type & RX_PKT_CMPL_FLAGS_RSS_VALID) > + if (rxcmp->flags_type & RX_PKT_CMPL_FLAGS_RSS_VALID) { > mbuf->ol_flags |= PKT_RX_RSS_HASH; > + } else { > + mbuf->hash.fdir.id = > + bnxt_get_cfa_code_or_mark_id(rxq->bp, > + rxcmp1); > + mbuf->ol_flags |= PKT_RX_FDIR | PKT_RX_FDIR_ID; > + } > > if (rxcmp1->flags2 & > RX_PKT_CMPL_FLAGS2_META_FORMAT_VLAN) { > -- > 2.21.0 (Apple Git-122.2) > Hi Ajit, IMO this functionality should not be supported in vector mode. Regards, Lance