Skip to contentSkip to conversation

net/octeontx2: drop Rx and L2 error packets

PATCH New [email protected] 1 participant 1 message Jul 30, 2019 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/octeontx2: drop Rx and L2 error packets

From: Jerin Jacob <[email protected]>

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.

---
 drivers/net/octeontx2/otx2_ethdev.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/octeontx2/otx2_ethdev.c +1 -0
index 3fb7bd93f..4bd945257 100644
@@ -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)
Signature · 1 line
2.21.0