Merge branch 'Split bpf_sock dst_port field'
authorAlexei Starovoitov <ast@kernel.org>
Mon, 31 Jan 2022 20:39:12 +0000 (12:39 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 31 Jan 2022 20:39:19 +0000 (12:39 -0800)
commit1fc5bdb2b823b6f478b8c466d5f7328f6220f02b
tree7dd90826ccc6a7f26688e8f790140ff96e6b43ea
parentb3dddab2ff10853aa3ef70483415d07fee3034ba
parent8f50f16ff39dd4e2d43d1548ca66925652f8aff7
Merge branch 'Split bpf_sock dst_port field'

Jakub Sitnicki says:

====================

This is a follow-up to discussion around the idea of making dst_port in struct
bpf_sock a 16-bit field that happened in [1].

v2:
- use an anonymous field for zero padding (Alexei)

v1:
- keep dst_field offset unchanged to prevent existing BPF program breakage
  (Martin)
- allow 8-bit loads from dst_port[0] and [1]
- add test coverage for the verifier and the context access converter

[1] https://lore.kernel.org/bpf/87sftbobys.fsf@cloudflare.com/
====================

Acked-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>