summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/mediatek/mtk_eth_soc.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2023-03-30 14:08:38 +0200
committerJakub Kicinski <kuba@kernel.org>2023-03-30 11:44:59 -0700
commit8c1cb87c2a5c29da416848451a687473f379611c (patch)
treedf573685f46a1ce8c29ffa3e841f645bc04dffee /drivers/net/ethernet/mediatek/mtk_eth_soc.c
parent2960a2d33b02345c6d710251206053678f92246b (diff)
net: ethernet: mtk_eth_soc: fix flow block refcounting logic
Since we call flow_block_cb_decref on FLOW_BLOCK_UNBIND, we also need to call flow_block_cb_incref for a newly allocated cb. Also fix the accidentally inverted refcount check on unbind. Fixes: 502e84e2382d ("net: ethernet: mtk_eth_soc: add flow offloading support") Reviewed-by: Simon Horman <simon.horman@corigine.com> Signed-off-by: Felix Fietkau <nbd@nbd.name> Reviewed-by: Leon Romanovsky <leonro@nvidia.com> Link: https://lore.kernel.org/r/20230330120840.52079-1-nbd@nbd.name Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/mediatek/mtk_eth_soc.c')
0 files changed, 0 insertions, 0 deletions