]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
selftests/bpf: add a test to test_align
authorEdward Cree <ecree@solarflare.com>
Mon, 7 Aug 2017 14:28:00 +0000 (15:28 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Aug 2017 00:51:35 +0000 (17:51 -0700)
commit715dddb5e640bd24ce46dc7885c9657038ad1e23
treef4f47b507b57ae5ca30f153603703da34813d8cc
parent9fafa80513d922ed80c2067a3ea636696fc14c61
selftests/bpf: add a test to test_align

New test adds 14 to the unknown value before adding to the packet pointer,
 meaning there's no 'fixed offset' field and instead we add into the
 var_off, yielding a '4n+2' value.

Signed-off-by: Edward Cree <ecree@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/bpf/test_align.c