]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitea79f2df96c30aecafbaacb34bc372ed3666ccfe
treed534fef01490769c56a9246f9cf07dd681f0ecbe
parente7b65fdc376608753fb724a77d8884997c9f101e
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