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

Function tap_nlattr_nested_finish

dpdk/drivers/net/tap/tap_netlink.c:401–412  ·  view source on GitHub ↗

* End a nested netlink attribute. * It follows a call to tap_nlattr_nested_start(). * In effect, it will modify the nested attribute length to include every bytes * from the nested attribute start, up to here. * * @param[in, out] msg * The netlink message where to edit the nested_tails metadata. */

Source from the content-addressed store, hash-verified

399 * The netlink message where to edit the nested_tails metadata.
400 */
401void
402tap_nlattr_nested_finish(struct nlmsg *msg)
403{
404 struct nested_tail *tail = msg->nested_tails;
405
406 tail->tail->rta_len = (char *)NLMSG_TAIL(&msg->nh) - (char *)tail->tail;
407
408 if (tail->prev)
409 msg->nested_tails = tail->prev;
410
411 rte_free(tail);
412}

Callers 4

add_actionFunction · 0.85
add_actionsFunction · 0.85
priv_flow_processFunction · 0.85
rss_enableFunction · 0.85

Calls 1

rte_freeFunction · 0.85

Tested by

no test coverage detected