aboutsummaryrefslogtreecommitdiff
path: root/net/core/dev.c
diff options
context:
space:
mode:
authorJakub Kicinski <[email protected]>2017-11-20 15:21:51 -0800
committerDaniel Borkmann <[email protected]>2017-11-21 00:37:35 +0100
commit13a9c48a85ccf1417b527975c0a12b47fbfaf625 (patch)
treea86d9abcc840de3c4ce3b5a0ea7f9a25a8280e39 /net/core/dev.c
parent32a72bbd5da2411eab591bf9bc2e39349106193a (diff)
bpf: offload: add comment warning developers about double destroy
Offload state may get destroyed either because the device for which it was constructed is going away, or because the refcount of bpf program itself has reached 0. In both of those cases we will call __bpf_prog_offload_destroy() to unlink the offload from the device. We may in fact call it twice, which works just fine, but we should make clear this is intended and caution others trying to extend the function. Signed-off-by: Jakub Kicinski <[email protected]> Reviewed-by: Quentin Monnet <[email protected]> Acked-by: Alexei Starovoitov <[email protected]> Acked-by: Daniel Borkmann <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]>
Diffstat (limited to 'net/core/dev.c')
0 files changed, 0 insertions, 0 deletions