|
@@ -145,6 +145,7 @@ static struct i40e_stats i40e_gstrings_stats[] = {
|
|
|
I40E_PF_STAT("rx_jabber", stats.rx_jabber),
|
|
|
I40E_PF_STAT("VF_admin_queue_requests", vf_aq_requests),
|
|
|
I40E_PF_STAT("rx_hwtstamp_cleared", rx_hwtstamp_cleared),
|
|
|
+ I40E_PF_STAT("fdir_flush_cnt", fd_flush_cnt),
|
|
|
I40E_PF_STAT("fdir_atr_match", stats.fd_atr_match),
|
|
|
I40E_PF_STAT("fdir_sb_match", stats.fd_sb_match),
|
|
|
|
|
@@ -1977,6 +1978,10 @@ static int i40e_del_fdir_entry(struct i40e_vsi *vsi,
|
|
|
struct i40e_pf *pf = vsi->back;
|
|
|
int ret = 0;
|
|
|
|
|
|
+ if (test_bit(__I40E_RESET_RECOVERY_PENDING, &pf->state) ||
|
|
|
+ test_bit(__I40E_RESET_INTR_RECEIVED, &pf->state))
|
|
|
+ return -EBUSY;
|
|
|
+
|
|
|
if (test_bit(__I40E_FD_FLUSH_REQUESTED, &pf->state))
|
|
|
return -EBUSY;
|
|
|
|
|
@@ -2013,6 +2018,10 @@ static int i40e_add_fdir_ethtool(struct i40e_vsi *vsi,
|
|
|
if (pf->auto_disable_flags & I40E_FLAG_FD_SB_ENABLED)
|
|
|
return -ENOSPC;
|
|
|
|
|
|
+ if (test_bit(__I40E_RESET_RECOVERY_PENDING, &pf->state) ||
|
|
|
+ test_bit(__I40E_RESET_INTR_RECEIVED, &pf->state))
|
|
|
+ return -EBUSY;
|
|
|
+
|
|
|
if (test_bit(__I40E_FD_FLUSH_REQUESTED, &pf->state))
|
|
|
return -EBUSY;
|
|
|
|