Name

dev_change_xdp_fd — set or clear a bpf program for a device rx path

Synopsis

int dev_change_xdp_fd (struct net_device * dev,
 int fd,
 u32 flags);
 

Arguments

struct net_device * dev

device

int fd

new program fd or negative value to clear

u32 flags

xdp-related flags

Description

Set or clear a bpf program for a device