From f55974c4011fc085bf2f7650e26d548bee59f916 Mon Sep 17 00:00:00 2001 From: Jerin Jacob Date: Tue, 30 Jul 2019 19:57:19 +0530 Subject: [PATCH] net/octeontx2: drop Rx and L2 error packets 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 Acked-by: Pavan Nikhilesh --- 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 3fb7bd93f0..4bd9452572 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.20.1