RE: [PATCH net] ice: fix memory leak of aRFS after resuming from suspend

2021-03-18 Thread Liu, Yongxin
> -Original Message- > From: Creeley, Brett > Sent: Friday, March 19, 2021 06:20 > To: Liu, Yongxin ; jeffrey.t.kirs...@intel.com; > Chittim, Madhu ; Nguyen, Anthony L > ; andrewx.bow...@intel.com > Cc: netdev@vger.kernel.org > Subject: Re: [PATCH net] ice: fix m

Re: [PATCH net] ice: fix memory leak of aRFS after resuming from suspend

2021-03-18 Thread Creeley, Brett
On Thu, 2021-03-18 at 16:15 +0800, Yongxin Liu wrote: > In ice_suspend(), ice_clear_interrupt_scheme() is called, and then > irq_free_descs() will be eventually called to free irq and its > descriptor. > > In ice_resume(), ice_init_interrupt_scheme() is called to allocate > new irqs. > However, in

[PATCH net] ice: fix memory leak of aRFS after resuming from suspend

2021-03-18 Thread Yongxin Liu
In ice_suspend(), ice_clear_interrupt_scheme() is called, and then irq_free_descs() will be eventually called to free irq and its descriptor. In ice_resume(), ice_init_interrupt_scheme() is called to allocate new irqs. However, in ice_rebuild_arfs(), struct irq_glue and struct cpu_rmap maybe canno