]> git.baikalelectronics.ru Git - kernel.git/commit
bpf, testing: Refactor test_skb_segment() for testing skb_segment() on different...
authorShmulik Ladkani <shmulik@metanetworks.com>
Fri, 25 Oct 2019 13:42:22 +0000 (16:42 +0300)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 30 Oct 2019 15:37:01 +0000 (16:37 +0100)
commitf234031c72619ed613b09a716325501fe614367e
tree0356ab69e34e3ecfcc3fd7e2e23812eb913408c2
parent97cf68cbb3a0dcd28159d747947b8a3a2e27dd0f
bpf, testing: Refactor test_skb_segment() for testing skb_segment() on different skbs

Currently, test_skb_segment() builds a single test skb and runs
skb_segment() on it.

Extend test_skb_segment() so it processes an array of numerous
skb/feature pairs to test.

Signed-off-by: Shmulik Ladkani <shmulik.ladkani@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20191025134223.2761-2-shmulik.ladkani@gmail.com
lib/test_bpf.c