bnxt_en: Periodically check and remove aged-out ntuple filters
Currently the only time we check and remove expired filters is when we are inserting new filters. Improving the aRFS expiry handling by adding code to do the above work periodically. Signed-off-by: Pavan Chebbi <pavan.chebbi@broadcom.com> Signed-off-by: Michael Chan <michael.chan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
f47d0e19ae
commit
87d67f59d6
|
@ -10040,6 +10040,13 @@ static void bnxt_timer(struct timer_list *t)
|
|||
bnxt_queue_sp_work(bp);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_RFS_ACCEL
|
||||
if ((bp->flags & BNXT_FLAG_RFS) && bp->ntp_fltr_count) {
|
||||
set_bit(BNXT_RX_NTP_FLTR_SP_EVENT, &bp->sp_event);
|
||||
bnxt_queue_sp_work(bp);
|
||||
}
|
||||
#endif /*CONFIG_RFS_ACCEL*/
|
||||
|
||||
if (bp->link_info.phy_retry) {
|
||||
if (time_after(jiffies, bp->link_info.phy_retry_expires)) {
|
||||
bp->link_info.phy_retry = false;
|
||||
|
|
Loading…
Reference in New Issue