提交 6eae9c6a 编写于 作者: S Shannon Nelson 提交者: Jeff Kirsher

i40e: allow FD SB if MFP mode only has 1 partition

Even though the device might be in MFP mode, if there's only one partition
enabled, then we still have plenty of interrupts for managing the Flow
Directory Sideband activity.  This patch enables FD SB in this case.
This patch also reverses the sense of the conditional in order to remove
the negative logic.

Change-ID: I9edf211a6219fc8d159b4be9964f9fd7f4e00bc0
Signed-off-by: NShannon Nelson <shannon.nelson@intel.com>
Tested-by: NAndrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: NJeff Kirsher <jeffrey.t.kirsher@intel.com>
上级 9b28ef01
...@@ -7949,12 +7949,12 @@ static int i40e_sw_init(struct i40e_pf *pf) ...@@ -7949,12 +7949,12 @@ static int i40e_sw_init(struct i40e_pf *pf)
(pf->hw.func_caps.fd_filters_best_effort > 0)) { (pf->hw.func_caps.fd_filters_best_effort > 0)) {
pf->flags |= I40E_FLAG_FD_ATR_ENABLED; pf->flags |= I40E_FLAG_FD_ATR_ENABLED;
pf->atr_sample_rate = I40E_DEFAULT_ATR_SAMPLE_RATE; pf->atr_sample_rate = I40E_DEFAULT_ATR_SAMPLE_RATE;
if (!(pf->flags & I40E_FLAG_MFP_ENABLED)) { if (pf->flags & I40E_FLAG_MFP_ENABLED &&
pf->flags |= I40E_FLAG_FD_SB_ENABLED; pf->hw.num_partitions > 1)
} else {
dev_info(&pf->pdev->dev, dev_info(&pf->pdev->dev,
"Flow Director Sideband mode Disabled in MFP mode\n"); "Flow Director Sideband mode Disabled in MFP mode\n");
} else
pf->flags |= I40E_FLAG_FD_SB_ENABLED;
pf->fdir_pf_filter_count = pf->fdir_pf_filter_count =
pf->hw.func_caps.fd_filters_guaranteed; pf->hw.func_caps.fd_filters_guaranteed;
pf->hw.fdir_shared_filter_count = pf->hw.fdir_shared_filter_count =
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册