mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
i40e: remove FD atr control from debugfs
Since the flow-director-atr priv flag was added to our ethtool interface, we don't need the on/off control in debugfs. Change-ID: Ib3b599916434ab30ccd40074e71d7a81609b5bb5 Signed-off-by: Shannon Nelson <shannon.nelson@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
parent
6eae9c6a35
commit
106b1941ff
1 changed files with 0 additions and 24 deletions
|
@ -953,24 +953,6 @@ static void i40e_dbg_dump_veb_all(struct i40e_pf *pf)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* i40e_dbg_cmd_fd_ctrl - Enable/disable FD sideband/ATR
|
|
||||||
* @pf: the PF that would be altered
|
|
||||||
* @flag: flag that needs enabling or disabling
|
|
||||||
* @enable: Enable/disable FD SD/ATR
|
|
||||||
**/
|
|
||||||
static void i40e_dbg_cmd_fd_ctrl(struct i40e_pf *pf, u64 flag, bool enable)
|
|
||||||
{
|
|
||||||
if (enable) {
|
|
||||||
pf->flags |= flag;
|
|
||||||
} else {
|
|
||||||
pf->flags &= ~flag;
|
|
||||||
pf->auto_disable_flags |= flag;
|
|
||||||
}
|
|
||||||
dev_info(&pf->pdev->dev, "requesting a PF reset\n");
|
|
||||||
i40e_do_reset_safe(pf, BIT(__I40E_PF_RESET_REQUESTED));
|
|
||||||
}
|
|
||||||
|
|
||||||
#define I40E_MAX_DEBUG_OUT_BUFFER (4096*4)
|
#define I40E_MAX_DEBUG_OUT_BUFFER (4096*4)
|
||||||
/**
|
/**
|
||||||
* i40e_dbg_command_write - write into command datum
|
* i40e_dbg_command_write - write into command datum
|
||||||
|
@ -1759,10 +1741,6 @@ static ssize_t i40e_dbg_command_write(struct file *filp,
|
||||||
raw_packet = NULL;
|
raw_packet = NULL;
|
||||||
kfree(asc_packet);
|
kfree(asc_packet);
|
||||||
asc_packet = NULL;
|
asc_packet = NULL;
|
||||||
} else if (strncmp(cmd_buf, "fd-atr off", 10) == 0) {
|
|
||||||
i40e_dbg_cmd_fd_ctrl(pf, I40E_FLAG_FD_ATR_ENABLED, false);
|
|
||||||
} else if (strncmp(cmd_buf, "fd-atr on", 9) == 0) {
|
|
||||||
i40e_dbg_cmd_fd_ctrl(pf, I40E_FLAG_FD_ATR_ENABLED, true);
|
|
||||||
} else if (strncmp(cmd_buf, "fd current cnt", 14) == 0) {
|
} else if (strncmp(cmd_buf, "fd current cnt", 14) == 0) {
|
||||||
dev_info(&pf->pdev->dev, "FD current total filter count for this interface: %d\n",
|
dev_info(&pf->pdev->dev, "FD current total filter count for this interface: %d\n",
|
||||||
i40e_get_current_fd_count(pf));
|
i40e_get_current_fd_count(pf));
|
||||||
|
@ -1989,8 +1967,6 @@ static ssize_t i40e_dbg_command_write(struct file *filp,
|
||||||
dev_info(&pf->pdev->dev, " send indirect aq_cmd <flags> <opcode> <datalen> <retval> <cookie_h> <cookie_l> <param0> <param1> <param2> <param3> <buffer_len>\n");
|
dev_info(&pf->pdev->dev, " send indirect aq_cmd <flags> <opcode> <datalen> <retval> <cookie_h> <cookie_l> <param0> <param1> <param2> <param3> <buffer_len>\n");
|
||||||
dev_info(&pf->pdev->dev, " add fd_filter <dest q_index> <flex_off> <pctype> <dest_vsi> <dest_ctl> <fd_status> <cnt_index> <fd_id> <packet_len> <packet>\n");
|
dev_info(&pf->pdev->dev, " add fd_filter <dest q_index> <flex_off> <pctype> <dest_vsi> <dest_ctl> <fd_status> <cnt_index> <fd_id> <packet_len> <packet>\n");
|
||||||
dev_info(&pf->pdev->dev, " rem fd_filter <dest q_index> <flex_off> <pctype> <dest_vsi> <dest_ctl> <fd_status> <cnt_index> <fd_id> <packet_len> <packet>\n");
|
dev_info(&pf->pdev->dev, " rem fd_filter <dest q_index> <flex_off> <pctype> <dest_vsi> <dest_ctl> <fd_status> <cnt_index> <fd_id> <packet_len> <packet>\n");
|
||||||
dev_info(&pf->pdev->dev, " fd-atr off\n");
|
|
||||||
dev_info(&pf->pdev->dev, " fd-atr on\n");
|
|
||||||
dev_info(&pf->pdev->dev, " fd current cnt");
|
dev_info(&pf->pdev->dev, " fd current cnt");
|
||||||
dev_info(&pf->pdev->dev, " lldp start\n");
|
dev_info(&pf->pdev->dev, " lldp start\n");
|
||||||
dev_info(&pf->pdev->dev, " lldp stop\n");
|
dev_info(&pf->pdev->dev, " lldp stop\n");
|
||||||
|
|
Loading…
Add table
Reference in a new issue