On 02/12, Bj�rn T�pel wrote:
On Tue, 9 Feb 2021 at 23:50, Stanislav Fomichev [off-list ref] wrote:
quoted
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 <redacted>
Stanislav, apologies for the delay!
No worries, thank you for the review and testing!
Tested-by: Bj�rn T�pel <redacted>
Acked-by: Bj�rn T�pel <redacted>
Bj�rn
quoted
---
tools/lib/bpf/xsk.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/lib/bpf/xsk.c b/tools/lib/bpf/xsk.c
index 20500fb1f17e..ffbb588724d8 100644
--- a/tools/lib/bpf/xsk.c
+++ b/tools/lib/bpf/xsk.c
@@ -517,7 +517,7 @@ static int xsk_get_max_queues(struct xsk_socket
*xsk)
quoted
struct ifreq ifr = {};
int fd, err, ret;
- fd = socket(AF_INET, SOCK_DGRAM, 0);
+ fd = socket(AF_LOCAL, SOCK_DGRAM, 0);
if (fd < 0)
return -errno;
--
2.30.0.478.g8a0d178c01-goog