FD.io VPP
v16.06
Vector Packet Processing
|
Go to the source code of this file.
Macros | |
#define | AF_PACKET_DEBUG_SOCKET 0 |
#define | AF_PACKET_TX_FRAMES_PER_BLOCK 1024 |
#define | AF_PACKET_TX_FRAME_SIZE (2048 * 5) |
#define | AF_PACKET_TX_BLOCK_NR 1 |
#define | AF_PACKET_TX_FRAME_NR |
#define | AF_PACKET_TX_BLOCK_SIZE |
#define | AF_PACKET_RX_FRAMES_PER_BLOCK 1024 |
#define | AF_PACKET_RX_FRAME_SIZE (2048 * 5) |
#define | AF_PACKET_RX_BLOCK_NR 1 |
#define | AF_PACKET_RX_FRAME_NR |
#define | AF_PACKET_RX_BLOCK_SIZE |
#define | DBG_SOCK(args...) |
Typedefs | |
typedef struct tpacket_req | tpacket_req_t |
Functions | |
unsigned int | if_nametoindex (const char *ifname) |
static u32 | af_packet_eth_flag_change (vnet_main_t *vnm, vnet_hw_interface_t *hi, u32 flags) |
static clib_error_t * | af_packet_fd_read_ready (unix_file_t *uf) |
static int | create_packet_v2_sock (u8 *name, tpacket_req_t *rx_req, tpacket_req_t *tx_req, int *fd, u8 **ring) |
int | af_packet_create_if (vlib_main_t *vm, u8 *host_if_name, u8 *hw_addr_set) |
int | af_packet_delete_if (vlib_main_t *vm, u8 *host_if_name) |
static clib_error_t * | af_packet_init (vlib_main_t *vm) |
#define AF_PACKET_DEBUG_SOCKET 0 |
Definition at line 30 of file af_packet.c.
#define AF_PACKET_RX_BLOCK_NR 1 |
Definition at line 42 of file af_packet.c.
#define AF_PACKET_RX_BLOCK_SIZE |
Definition at line 45 of file af_packet.c.
#define AF_PACKET_RX_FRAME_NR |
Definition at line 43 of file af_packet.c.
#define AF_PACKET_RX_FRAME_SIZE (2048 * 5) |
Definition at line 41 of file af_packet.c.
#define AF_PACKET_RX_FRAMES_PER_BLOCK 1024 |
Definition at line 40 of file af_packet.c.
#define AF_PACKET_TX_BLOCK_NR 1 |
Definition at line 34 of file af_packet.c.
#define AF_PACKET_TX_BLOCK_SIZE |
Definition at line 37 of file af_packet.c.
#define AF_PACKET_TX_FRAME_NR |
Definition at line 35 of file af_packet.c.
#define AF_PACKET_TX_FRAME_SIZE (2048 * 5) |
Definition at line 33 of file af_packet.c.
#define AF_PACKET_TX_FRAMES_PER_BLOCK 1024 |
Definition at line 32 of file af_packet.c.
#define DBG_SOCK | ( | args... | ) |
Definition at line 51 of file af_packet.c.
typedef struct tpacket_req tpacket_req_t |
Definition at line 57 of file af_packet.c.
int af_packet_create_if | ( | vlib_main_t * | vm, |
u8 * | host_if_name, | ||
u8 * | hw_addr_set | ||
) |
Definition at line 165 of file af_packet.c.
int af_packet_delete_if | ( | vlib_main_t * | vm, |
u8 * | host_if_name | ||
) |
Definition at line 272 of file af_packet.c.
|
static |
|
static |
Definition at line 66 of file af_packet.c.
|
static |
|
static |
Definition at line 81 of file af_packet.c.
unsigned int if_nametoindex | ( | const char * | ifname | ) |