From: Rahul Gupta Date: Thu, 24 Oct 2019 07:44:24 +0000 (+0530) Subject: net/bnxt: fix filter type for non-ntuple flows X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=24de0b605cfa341d23308b7e660a66f1b9c1643b;p=dpdk.git net/bnxt: fix filter type for non-ntuple flows Use HWRM_CFA_L2_FILTER filter_type, as its checked during SRC MAC filter creation in bnxt_create_l2_filter(). Fixes: afef822b2e1b ("net/bnxt: support creating SMAC and inner DMAC filters") Signed-off-by: Rahul Gupta Signed-off-by: Somnath Kotur Reviewed-by: Ajit Khaparde --- diff --git a/drivers/net/bnxt/bnxt_flow.c b/drivers/net/bnxt/bnxt_flow.c index 85d23540fe..2bde6f709d 100644 --- a/drivers/net/bnxt/bnxt_flow.c +++ b/drivers/net/bnxt/bnxt_flow.c @@ -161,7 +161,7 @@ bnxt_validate_and_parse_flow_type(struct bnxt *bp, PMD_DRV_LOG(DEBUG, "Use NTUPLE %d\n", use_ntuple); filter->filter_type = use_ntuple ? - HWRM_CFA_NTUPLE_FILTER : HWRM_CFA_EM_FILTER; + HWRM_CFA_NTUPLE_FILTER : HWRM_CFA_L2_FILTER; en_ethertype = use_ntuple ? NTUPLE_FLTR_ALLOC_INPUT_EN_ETHERTYPE : EM_FLOW_ALLOC_INPUT_EN_ETHERTYPE;