MCPcopy Create free account
hub / github.com/F-Stack/f-stack / kernel_tx_node_init

Function kernel_tx_node_init

dpdk/lib/node/kernel_tx.c:83–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83static int
84kernel_tx_node_init(const struct rte_graph *graph __rte_unused, struct rte_node *node)
85{
86 kernel_tx_node_ctx_t *ctx = (kernel_tx_node_ctx_t *)node->ctx;
87
88 ctx->sock = socket(AF_INET, SOCK_RAW, IPPROTO_RAW);
89 if (ctx->sock < 0)
90 node_err("kernel_tx", "Unable to open RAW socket");
91
92 return 0;
93}
94
95static void
96kernel_tx_node_fini(const struct rte_graph *graph __rte_unused, struct rte_node *node)

Callers

nothing calls this directly

Calls 1

socketClass · 0.50

Tested by

no test coverage detected