提交 87d67f59 编写于 作者: P Pavan Chebbi 提交者: David S. Miller

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: NPavan Chebbi <pavan.chebbi@broadcom.com>
Signed-off-by: NMichael Chan <michael.chan@broadcom.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 f47d0e19
...@@ -10040,6 +10040,13 @@ static void bnxt_timer(struct timer_list *t) ...@@ -10040,6 +10040,13 @@ static void bnxt_timer(struct timer_list *t)
bnxt_queue_sp_work(bp); 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 (bp->link_info.phy_retry) {
if (time_after(jiffies, bp->link_info.phy_retry_expires)) { if (time_after(jiffies, bp->link_info.phy_retry_expires)) {
bp->link_info.phy_retry = false; bp->link_info.phy_retry = false;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册