Skip to content
This repository was archived by the owner on Aug 26, 2024. It is now read-only.
This repository was archived by the owner on Aug 26, 2024. It is now read-only.

error: syscall.Bind SockaddrXDP failed: device or resource busy #32

@lddlww

Description

@lddlww

what's wrong with it?

i run with follow code: i want to create more xsk with same link, but it throw above error

func Newxsk(nic string, queue_id int) (*xdp.Socket, error) {
    fmt.Println(queue_id, nic)
    link, err := netlink.LinkByName(NIC)
    if err != nil {
        panic(err)
    }
    xsk, err := xdp.NewSocket(link.Attrs().Index, QueueID, nil)
    return xsk, err
}

var queueCount = 8

for i := 0; i < queueCount; i++ {
            xsk, err := Newxsk(NIC, i)
            if err != nil {
                panic(err)
            }
            xsks = append(xsks, xsk)
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions