aboutsummaryrefslogtreecommitdiff
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorJakub Kicinski <[email protected]>2017-11-03 13:56:25 -0700
committerDavid S. Miller <[email protected]>2017-11-05 22:26:19 +0900
commit9ce7a956327ad6c14e1a7eb9f4cb5300c8b61db6 (patch)
tree915beaa4acfbe6f4c596220036efce581712fd36 /net/switchdev/switchdev.c
parent5559eedb78127d6b76c36e3918a75bbc2801653a (diff)
nfp: bpf: refactor offload logic
We currently create a fake cls_bpf offload object when we want to offload XDP. Simplify and clarify the code by moving the TC/XDP specific logic out of common offload code. This is easy now that we don't support legacy TC actions. We only need the bpf program and state of the skip_sw flag. Temporarily set @code to NULL in nfp_net_bpf_offload(), compilers seem to have trouble recognizing it's always initialized. Next patches will eliminate that variable. Signed-off-by: Jakub Kicinski <[email protected]> Reviewed-by: Quentin Monnet <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions