From 514d1c989dc026101a048d8c895981fca07b635b Mon Sep 17 00:00:00 2001 From: Leyi Rong Date: Wed, 20 May 2020 14:39:50 +0800 Subject: [PATCH] net/iavf: fix flow director after queue reconfigured FDIR ID parsing will not be handled correctly after queue reconfigured, enable FDIR ID parsing per Q regardless of fdir_ref_cnt to fix it. Fixes: f71dbf852d46 ("net/iavf: add flow director enabled switch value") Signed-off-by: Leyi Rong Acked-by: Xiaolong Ye --- drivers/net/iavf/iavf_rxtx.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/iavf/iavf_rxtx.h b/drivers/net/iavf/iavf_rxtx.h index 73968847fe..59625a979a 100644 --- a/drivers/net/iavf/iavf_rxtx.h +++ b/drivers/net/iavf/iavf_rxtx.h @@ -509,8 +509,8 @@ void iavf_fdir_rx_proc_enable(struct iavf_adapter *ad, bool on) { if (on) { /* enable flow director processing */ - if (ad->fdir_ref_cnt++ == 0) - FDIR_PROC_ENABLE_PER_QUEUE(ad, on); + FDIR_PROC_ENABLE_PER_QUEUE(ad, on); + ad->fdir_ref_cnt++; } else { if (ad->fdir_ref_cnt >= 1) { ad->fdir_ref_cnt--; -- 2.20.1