libbpf: Use AF_LOCAL instead of AF_INET in xsk.c
authorStanislav Fomichev <sdf@google.com>
Tue, 9 Feb 2021 22:18:26 +0000 (14:18 -0800)
committerAndrii Nakryiko <andrii@kernel.org>
Fri, 12 Feb 2021 19:36:48 +0000 (11:36 -0800)
commit1e0aa3fb05f8be0201e05a3f4e6c8910b9071e96
tree8818f425608d63efccf71700f41dcfe0c05948b5
parentb2e37a7114ef52b862b4421ed4cd40c4ed2a0642
libbpf: Use AF_LOCAL instead of AF_INET in xsk.c

We have the environments where usage of AF_INET is prohibited
(cgroup/sock_create returns EPERM for AF_INET). Let's use
AF_LOCAL instead of AF_INET, it should perfectly work with SIOCETHTOOL.

Signed-off-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Tested-by: Björn Töpel <bjorn.topel@intel.com>
Acked-by: Björn Töpel <bjorn.topel@intel.com>
Link: https://lore.kernel.org/bpf/20210209221826.922940-1-sdf@google.com
tools/lib/bpf/xsk.c