ebpf: add skb->priority to offset map for usage in {cls, act}_bpf
authorDaniel Borkmann <daniel@iogearbox.net>
Fri, 3 Apr 2015 18:52:24 +0000 (20:52 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 3 Apr 2015 18:59:15 +0000 (14:59 -0400)
commitbcad57182425426dd4aa14deb27f97acb329f3cd
treed534fef01490769c56a9246f9cf07dd681f0ecbe
parent2e7056c433216f406b90a003aa0ba42e19d3bdcf
ebpf: add skb->priority to offset map for usage in {cls, act}_bpf

This adds the ability to read out the skb->priority from an eBPF
program, so that it can be taken into account from a tc filter
or action for the use-case where the priority is not being used
to directly override the filter classification in a qdisc, but
to tag traffic otherwise for the classifier; the priority can be
assigned from various places incl. user space, in future we may
also mangle it from an eBPF program.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Cc: Alexei Starovoitov <ast@plumgrid.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/bpf.h
net/core/filter.c