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 E671CA0613 for ; Tue, 30 Jul 2019 16:27:36 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8510C1BF61; Tue, 30 Jul 2019 16:27:34 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 293151BEC6 for ; Tue, 30 Jul 2019 16:27:32 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x6UEQWiP031923; Tue, 30 Jul 2019 07:27:29 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=pfpt0818; bh=68PBTNzqC/cIRGerZYV4XSe/IZcsojwzex0mcJvHK5I=; b=AFuCkkOamT67dLXUfb5L7d2zZBaFOv4hVtbLrw4Fbmn/WzguYoGBI+aaHLsy+hGppSll AnacvRPfX4HktYOYPZKzGz9UjzG4Bi6c2+03pf1K4RwqhK/z5cYrZo8jzr4OuARZStpj in/FJ/uFVvkjHZC2WGQJpHQILKWjVA04SmxacKWHwg37ygeiS/ATgIFjwBcqiEOdoQfl lxUB4Um2AZ7yhZqtgRxpDyAEEJ3WKUQjcEvFrGDHqBhpcjhOD21hgznTce5YmMcmtC6C 0v0ebo+EzbwwMLFgmraHY/HjaeiBor/MC7iIWn/8ZLDxRg3h9GAchA1h+UPwSWg8ceOB Yg== Received: from sc-exch04.marvell.com ([199.233.58.184]) by mx0b-0016f401.pphosted.com with ESMTP id 2u0p4m3rhn-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Tue, 30 Jul 2019 07:27:29 -0700 Received: from SC-EXCH01.marvell.com (10.93.176.81) by SC-EXCH04.marvell.com (10.93.176.84) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Tue, 30 Jul 2019 07:27:27 -0700 Received: from maili.marvell.com (10.93.176.43) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server id 15.0.1367.3 via Frontend Transport; Tue, 30 Jul 2019 07:27:27 -0700 Received: from jerin-lab.marvell.com (jerin-lab.marvell.com [10.28.34.14]) by maili.marvell.com (Postfix) with ESMTP id 9863E3F703F; Tue, 30 Jul 2019 07:27:25 -0700 (PDT) From: To: Jerin Jacob , Nithin Dabilpuram , Kiran Kumar K CC: , , Date: Tue, 30 Jul 2019 19:57:19 +0530 Message-ID: <20190730142719.30692-1-jerinj@marvell.com> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:5.22.84,1.0.8 definitions=2019-07-30_07:2019-07-29,2019-07-30 signatures=0 Subject: [dpdk-dev] [PATCH] net/octeontx2: drop Rx and L2 error packets 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" From: Jerin Jacob >From B0 HW revision onwards, HW can drop the Rx and L2 error packets. Enable this by default if the feature is available. Since this bit field is used as reserved in old HW revisions, No need to have additional HW version check. Signed-off-by: Jerin Jacob --- drivers/net/octeontx2/otx2_ethdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/octeontx2/otx2_ethdev.c b/drivers/net/octeontx2/otx2_ethdev.c index 3fb7bd93f..4bd945257 100644 --- a/drivers/net/octeontx2/otx2_ethdev.c +++ b/drivers/net/octeontx2/otx2_ethdev.c @@ -62,6 +62,7 @@ nix_lf_alloc(struct otx2_eth_dev *dev, uint32_t nb_rxq, uint32_t nb_txq) req->rx_cfg |= BIT_ULL(37 /* CSUM_OL4 */); req->rx_cfg |= BIT_ULL(36 /* CSUM_IL4 */); } + req->rx_cfg |= BIT_ULL(32 /* DROP_RE */); rc = otx2_mbox_process_msg(mbox, (void *)&rsp); if (rc) -- 2.21.0