提交 4205d379 编写于 作者: A Anjali Singhai Jain 提交者: Jeff Kirsher

i40e: Avoid logs while adding/deleting FD-SB filters

It is not necessary to print FD filter add/delete log with
normal debug settings because ethtool -n ethx shows all the FD-SB
filters on an interface. The log can still be turned on through higher
debug levels and it will continue to print a log if there was an error
in the add/delete process.

Change-ID: I67db2baf49e2075d2f537de40f7895e5b02cd610
Signed-off-by: NAnjali Singhai Jain <anjali.singhai@intel.com>
Signed-off-by: NJeff Kirsher <jeffrey.t.kirsher@intel.com>
上级 58ce5175
...@@ -228,7 +228,7 @@ static int i40e_add_del_fdir_udpv4(struct i40e_vsi *vsi, ...@@ -228,7 +228,7 @@ static int i40e_add_del_fdir_udpv4(struct i40e_vsi *vsi,
"PCTYPE:%d, Filter command send failed for fd_id:%d (ret = %d)\n", "PCTYPE:%d, Filter command send failed for fd_id:%d (ret = %d)\n",
fd_data->pctype, fd_data->fd_id, ret); fd_data->pctype, fd_data->fd_id, ret);
err = true; err = true;
} else { } else if (I40E_DEBUG_FD & pf->hw.debug_mask) {
if (add) if (add)
dev_info(&pf->pdev->dev, dev_info(&pf->pdev->dev,
"Filter OK for PCTYPE %d loc = %d\n", "Filter OK for PCTYPE %d loc = %d\n",
...@@ -303,7 +303,7 @@ static int i40e_add_del_fdir_tcpv4(struct i40e_vsi *vsi, ...@@ -303,7 +303,7 @@ static int i40e_add_del_fdir_tcpv4(struct i40e_vsi *vsi,
"PCTYPE:%d, Filter command send failed for fd_id:%d (ret = %d)\n", "PCTYPE:%d, Filter command send failed for fd_id:%d (ret = %d)\n",
fd_data->pctype, fd_data->fd_id, ret); fd_data->pctype, fd_data->fd_id, ret);
err = true; err = true;
} else { } else if (I40E_DEBUG_FD & pf->hw.debug_mask) {
if (add) if (add)
dev_info(&pf->pdev->dev, "Filter OK for PCTYPE %d loc = %d)\n", dev_info(&pf->pdev->dev, "Filter OK for PCTYPE %d loc = %d)\n",
fd_data->pctype, fd_data->fd_id); fd_data->pctype, fd_data->fd_id);
...@@ -376,7 +376,7 @@ static int i40e_add_del_fdir_ipv4(struct i40e_vsi *vsi, ...@@ -376,7 +376,7 @@ static int i40e_add_del_fdir_ipv4(struct i40e_vsi *vsi,
"PCTYPE:%d, Filter command send failed for fd_id:%d (ret = %d)\n", "PCTYPE:%d, Filter command send failed for fd_id:%d (ret = %d)\n",
fd_data->pctype, fd_data->fd_id, ret); fd_data->pctype, fd_data->fd_id, ret);
err = true; err = true;
} else { } else if (I40E_DEBUG_FD & pf->hw.debug_mask) {
if (add) if (add)
dev_info(&pf->pdev->dev, dev_info(&pf->pdev->dev,
"Filter OK for PCTYPE %d loc = %d\n", "Filter OK for PCTYPE %d loc = %d\n",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册