net: bcmasp: Keep buffers through power management
authorJustin Chen <justin.chen@broadcom.com>
Wed, 28 Feb 2024 22:53:59 +0000 (14:53 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Mar 2024 09:22:50 +0000 (09:22 +0000)
commit4688f4f41cfa76638a37db3837cc485e5c83d307
treef4b34f2b7058869ef752c04810300eeadee35976
parent9112fc0109fc0037ac3b8b633a169e78b4e23ca1
net: bcmasp: Keep buffers through power management

There is no advantage of freeing and re-allocating buffers through
suspend and resume. This waste cycles and makes suspend/resume time
longer. We also open ourselves to failed allocations in systems with
heavy memory fragmentation.

Signed-off-by: Justin Chen <justin.chen@broadcom.com>
Acked-by: Florian Fainelli <florian.fainelli@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/asp2/bcmasp.h
drivers/net/ethernet/broadcom/asp2/bcmasp_intf.c