From patchwork Wed Jun 2 21:57:49 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rahul Lakkireddy X-Patchwork-Id: 93839 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id E29E9A0524; Thu, 3 Jun 2021 01:58:47 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7F1C74067A; Thu, 3 Jun 2021 01:58:47 +0200 (CEST) Received: from stargate.chelsio.com (stargate.chelsio.com [12.32.117.8]) by mails.dpdk.org (Postfix) with ESMTP id 70D724013F for ; Thu, 3 Jun 2021 01:58:46 +0200 (CEST) Received: from localhost (scalar.blr.asicdesigners.com [10.193.185.94]) by stargate.chelsio.com (8.13.8/8.13.8) with ESMTP id 152Nwh26007557 for ; Wed, 2 Jun 2021 16:58:44 -0700 From: Rahul Lakkireddy To: dev@dpdk.org Date: Thu, 3 Jun 2021 03:27:49 +0530 Message-Id: X-Mailer: git-send-email 2.5.3 Subject: [dpdk-dev] [PATCH 0/2] net/cxgbe: add RAW MAC matchall filter support 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" Chelsio T6 ASIC doesn't track Rx promisc traffic dropped due to lack of Rx buffers and hence the imissed counter doesn't increment. Add support for RAW MAC filter to insert a wildcard matchall rule at the end of MPS TCAM to make MPS track the promisc traffic. Patch 1 converts all deprecated rte_atomic ops to C11 atomics. Patch 2 queries firmware for RAW MAC matchall filter support and enables it when available. Rahul Lakkireddy (2): net/cxgbe: use C11 atomics instead of rte_atomic ops net/cxgbe: add MAC matchall to track promisc traffic doc/guides/nics/cxgbe.rst | 14 ++-- drivers/net/cxgbe/base/common.h | 3 + drivers/net/cxgbe/base/t4_hw.c | 1 - drivers/net/cxgbe/base/t4fw_interface.h | 2 + drivers/net/cxgbe/clip_tbl.c | 13 ++-- drivers/net/cxgbe/clip_tbl.h | 2 +- drivers/net/cxgbe/cxgbe_ethdev.c | 15 ++++- drivers/net/cxgbe/cxgbe_main.c | 37 +++++++---- drivers/net/cxgbe/cxgbe_ofld.h | 6 +- drivers/net/cxgbe/l2t.c | 14 ++-- drivers/net/cxgbe/l2t.h | 2 +- drivers/net/cxgbe/mps_tcam.c | 87 ++++++++++++++++++++++--- drivers/net/cxgbe/mps_tcam.h | 6 +- drivers/net/cxgbe/sge.c | 1 - drivers/net/cxgbe/smt.c | 14 ++-- drivers/net/cxgbe/smt.h | 2 +- 16 files changed, 161 insertions(+), 58 deletions(-)