aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDaniel Borkmann <daniel@iogearbox.net>2016-11-19 01:45:02 +0100
committerDavid S. Miller <davem@davemloft.net>2016-11-21 11:25:58 -0500
commita055c19be98bc065a4478663ba7f6833693b8958 (patch)
treefcf9d814ff191c1963085ac65a97e89dd9572cfe /include
parentbpf, mlx5: fix various refcount issues in mlx5e_xdp_set (diff)
downloadlinux-dev-a055c19be98bc065a4478663ba7f6833693b8958.tar.xz
linux-dev-a055c19be98bc065a4478663ba7f6833693b8958.zip
bpf, mlx5: drop priv->xdp_prog reference on netdev cleanup
mlx5e_xdp_set() is currently the only place where we drop reference on the prog sitting in priv->xdp_prog when it's exchanged by a new one. We also need to make sure that we eventually release that reference, for example, in case the netdev is dismantled, otherwise we leak the program. Fixes: 86994156c736 ("net/mlx5e: XDP fast RX drop bpf programs support") Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Saeed Mahameed <saeedm@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions