]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'bpf-max-pkt-offset'
authorDaniel Borkmann <daniel@iogearbox.net>
Fri, 9 Nov 2018 08:16:32 +0000 (09:16 +0100)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 9 Nov 2018 08:16:33 +0000 (09:16 +0100)
commitd05921db34da5c8ad78e6872a1fb7fd08b5c4ebb
treed89f4a220e92ba787649adc101d2e7861791539d
parent4ea0827fa39da73d9ad1ccc447321c14ad6320e7
parentac035e1b2a50107d9e2261d31a954927e4e92a2a
Merge branch 'bpf-max-pkt-offset'

Jiong Wang says:

====================
The maximum packet offset accessed by one BPF program is useful
information.

Because sometimes there could be packet split and it is possible for some
reasons (for example performance) we want to reject the BPF program if the
maximum packet size would trigger such split. Normally, MTU value is
treated as the maximum packet size, but one BPF program does not always
access the whole packet, it could only access the head portion of the data.

We could let verifier calculate the maximum packet offset ever used and
record it inside prog auxiliar information structure as a new field
"max_pkt_offset".
====================

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>