]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sfc: Use netdev refcount tracking in struct efx_async_filter_insertion
authorYiFei Zhu <zhuyifei@google.com>
Thu, 19 Dec 2024 17:30:04 +0000 (17:30 +0000)
committerJakub Kicinski <kuba@kernel.org>
Mon, 23 Dec 2024 18:11:49 +0000 (10:11 -0800)
commit85101bda1387e85eabf77cd416bfc38e14f1bce6
treeae051982363a73d77a7f42548b98e0fbef2744ef
parenta6ac667467b642c94928c24ac2eb40d20110983c
sfc: Use netdev refcount tracking in struct efx_async_filter_insertion

I was debugging some netdev refcount issues in OpenOnload, and one
of the places I was looking at was in the sfc driver. Only
struct efx_async_filter_insertion was not using netdev refcount tracker,
so add it here. GFP_ATOMIC because this code path is called by
ndo_rx_flow_steer which holds RCU.

This patch should be a no-op if !CONFIG_NET_DEV_REFCNT_TRACKER

Signed-off-by: YiFei Zhu <zhuyifei@google.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20241219173004.2615655-1-zhuyifei@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/sfc/net_driver.h
drivers/net/ethernet/sfc/rx_common.c
drivers/net/ethernet/sfc/siena/net_driver.h
drivers/net/ethernet/sfc/siena/rx_common.c