i40e: refactor code to remove indent
I found a code indent that was avoidable because a whole function is inside an if block, reverse the if and move the code back a tab. Change-ID: I9989c8750ee61678fbf96a3b0fd7bf7cc7ef300a Signed-off-by: Jesse Brandeburg <jesse.brandeburg@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
6995b36c0f
commit
a5fdaf342a
1 changed files with 42 additions and 40 deletions
|
@ -5679,13 +5679,15 @@ static void i40e_fdir_flush_and_replay(struct i40e_pf *pf)
|
||||||
if (!(pf->flags & (I40E_FLAG_FD_SB_ENABLED | I40E_FLAG_FD_ATR_ENABLED)))
|
if (!(pf->flags & (I40E_FLAG_FD_SB_ENABLED | I40E_FLAG_FD_ATR_ENABLED)))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (time_after(jiffies, pf->fd_flush_timestamp +
|
if (!time_after(jiffies, pf->fd_flush_timestamp +
|
||||||
(I40E_MIN_FD_FLUSH_INTERVAL * HZ))) {
|
(I40E_MIN_FD_FLUSH_INTERVAL * HZ)))
|
||||||
/* If the flush is happening too quick and we have mostly
|
return;
|
||||||
* SB rules we should not re-enable ATR for some time.
|
|
||||||
|
/* If the flush is happening too quick and we have mostly SB rules we
|
||||||
|
* should not re-enable ATR for some time.
|
||||||
*/
|
*/
|
||||||
min_flush_time = pf->fd_flush_timestamp
|
min_flush_time = pf->fd_flush_timestamp +
|
||||||
+ (I40E_MIN_FD_FLUSH_SB_ATR_UNSTABLE * HZ);
|
(I40E_MIN_FD_FLUSH_SB_ATR_UNSTABLE * HZ);
|
||||||
fd_room = pf->fdir_pf_filter_count - pf->fdir_pf_active_filters;
|
fd_room = pf->fdir_pf_filter_count - pf->fdir_pf_active_filters;
|
||||||
|
|
||||||
if (!(time_after(jiffies, min_flush_time)) &&
|
if (!(time_after(jiffies, min_flush_time)) &&
|
||||||
|
@ -5721,7 +5723,7 @@ static void i40e_fdir_flush_and_replay(struct i40e_pf *pf)
|
||||||
if (I40E_DEBUG_FD & pf->hw.debug_mask)
|
if (I40E_DEBUG_FD & pf->hw.debug_mask)
|
||||||
dev_info(&pf->pdev->dev, "FD Filter table flushed and FD-SB replayed.\n");
|
dev_info(&pf->pdev->dev, "FD Filter table flushed and FD-SB replayed.\n");
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue