aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_queue_mgr.c
diff options
context:
space:
mode:
authorJakub Kicinski <[email protected]>2017-12-01 15:08:57 -0800
committerDaniel Borkmann <[email protected]>2017-12-03 00:27:57 +0100
commitbd0b2e7fe611953470ec7c533b455fb2abd382cd (patch)
treeb9e54041e4a7bc4e924f814e4c340ac65b0ff739 /drivers/gpu/drm/amd/amdgpu/amdgpu_queue_mgr.c
parent92f0292b35a09bb5f12a4184ac86668599bc233b (diff)
net: xdp: make the stack take care of the tear down
Since day one of XDP drivers had to remember to free the program on the remove path. This leads to code duplication and is error prone. Make the stack query the installed programs on unregister and if something is installed, remove the program. Freeing of program attached to XDP generic is moved from free_netdev() as well. Because the remove will now be called before notifiers are invoked, BPF offload state of the program will not get destroyed before uninstall. Signed-off-by: Jakub Kicinski <[email protected]> Reviewed-by: Simon Horman <[email protected]> Reviewed-by: Quentin Monnet <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_queue_mgr.c')
0 files changed, 0 insertions, 0 deletions