xsk.h (f0a249df1b071d6f7177cc615d688a3a5d48423a) | xsk.h (7d8319a7cc668607aa054ea2da0bb730538a510b) |
---|---|
1/* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */ 2 3/* 4 * AF_XDP user-space access library. 5 * 6 * Copyright (c) 2018 - 2019 Intel Corporation. 7 * Copyright (c) 2019 Facebook 8 * --- 187 unchanged lines hidden (view full) --- 196 __u32 frame_headroom; 197 __u32 flags; 198}; 199 200int xsk_attach_xdp_program(struct bpf_program *prog, int ifindex, u32 xdp_flags); 201void xsk_detach_xdp_program(int ifindex, u32 xdp_flags); 202int xsk_update_xskmap(struct bpf_map *map, struct xsk_socket *xsk); 203void xsk_clear_xskmap(struct bpf_map *map); | 1/* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */ 2 3/* 4 * AF_XDP user-space access library. 5 * 6 * Copyright (c) 2018 - 2019 Intel Corporation. 7 * Copyright (c) 2019 Facebook 8 * --- 187 unchanged lines hidden (view full) --- 196 __u32 frame_headroom; 197 __u32 flags; 198}; 199 200int xsk_attach_xdp_program(struct bpf_program *prog, int ifindex, u32 xdp_flags); 201void xsk_detach_xdp_program(int ifindex, u32 xdp_flags); 202int xsk_update_xskmap(struct bpf_map *map, struct xsk_socket *xsk); 203void xsk_clear_xskmap(struct bpf_map *map); |
204bool xsk_is_in_mode(u32 ifindex, int mode); |
|
204 205struct xsk_socket_config { 206 __u32 rx_size; 207 __u32 tx_size; 208 __u16 bind_flags; 209}; 210 211/* Set config to NULL to get the default configuration. */ --- 29 unchanged lines hidden --- | 205 206struct xsk_socket_config { 207 __u32 rx_size; 208 __u32 tx_size; 209 __u16 bind_flags; 210}; 211 212/* Set config to NULL to get the default configuration. */ --- 29 unchanged lines hidden --- |