Re: [PATCH bpf-next] libbpf: use AF_LOCAL instead of AF_INET in xsk.c

2021-02-12 Thread sdf
On 02/12, Bj�rn T�pel wrote: On Tue, 9 Feb 2021 at 23:50, Stanislav Fomichev wrote: > > 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-o

Re: [PATCH bpf-next v3 4/8] libbpf: implement bpf_prog_find_metadata

2020-08-31 Thread sdf
On 08/28, Toke H�iland-J�rgensen wrote: Stanislav Fomichev writes: > This is a low-level function (hence in bpf.c) to find out the metadata > map id for the provided program fd. > It will be used in the next commits from bpftool. > > Cc: Toke H�iland-J�rgensen > Cc: YiFei Zhu > Signed-off-b

Re: [PATCH bpf-next] bpf: fix load XDP program error in test_xdp_vlan

2020-08-12 Thread sdf
On 08/12, Jianlin Lv wrote: test_xdp_vlan.sh reports the error as below: $ sudo ./test_xdp_vlan_mode_native.sh + '[' -z xdp_vlan_mode_native ']' + XDP_MODE=xdpgeneric …… + export XDP_PROG=xdp_vlan_remove_outer2 + XDP_PROG=xdp_vlan_remove_outer2 + ip netns exec ns1 ip link set veth1 xdpdrv off