libbpf: Use AF_LOCAL instead of AF_INET in xsk.c
[sfrench/cifs-2.6.git] / tools / lib / bpf / xsk.c
index 20500fb1f17efe1aa0b7ab130936cf650d3f5290..ffbb588724d8fc79bae9fd7ff8182b9eb649808f 100644 (file)
@@ -517,7 +517,7 @@ static int xsk_get_max_queues(struct xsk_socket *xsk)
        struct ifreq ifr = {};
        int fd, err, ret;
 
        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;
 
        if (fd < 0)
                return -errno;