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

Function tap_nl_msg_handler

dpdk/drivers/net/tap/rte_eth_tap.c:1694–1706  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1692}
1693
1694static int
1695tap_nl_msg_handler(struct nlmsghdr *nh, void *arg)
1696{
1697 struct rte_eth_dev *dev = arg;
1698 struct pmd_internals *pmd = dev->data->dev_private;
1699 struct ifinfomsg *info = NLMSG_DATA(nh);
1700
1701 if (nh->nlmsg_type != RTM_NEWLINK ||
1702 (info->ifi_index != pmd->if_index &&
1703 info->ifi_index != pmd->remote_if_index))
1704 return 0;
1705 return tap_link_update(dev, 0);
1706}
1707
1708static void
1709tap_dev_intr_handler(void *cb_arg)

Callers

nothing calls this directly

Calls 1

tap_link_updateFunction · 0.85

Tested by

no test coverage detected