diff options
| author | Daniel Borkmann <[email protected]> | 2016-01-06 21:32:16 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2016-01-09 02:40:34 +0000 |
| commit | 01dd194c387af5b3c4c1f6459d30f596565e466c (patch) | |
| tree | c440172d23a281207f7307c1099165b592953efb /net/switchdev/switchdev.c | |
| parent | Merge branch 'net-sparse-warnings' (diff) | |
| download | kernel-01dd194c387af5b3c4c1f6459d30f596565e466c.tar.gz kernel-01dd194c387af5b3c4c1f6459d30f596565e466c.zip | |
bpf: cleanup bpf_prog_run_{save,clear}_cb helpers
Move the details behind the cb[] access into a small helper to decouple
and make them generic for bpf_prog_run_save_cb()/bpf_prog_run_clear_cb()
that was introduced via commit ff936a04e5f2 ("bpf: fix cb access in socket
filter programs"). Also add a comment to better clarify what is done in
bpf_skb_cb().
Signed-off-by: Daniel Borkmann <[email protected]>
Acked-by: Alexei Starovoitov <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
