| 1692 | } |
| 1693 | |
| 1694 | static int |
| 1695 | tap_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 | |
| 1708 | static void |
| 1709 | tap_dev_intr_handler(void *cb_arg) |
nothing calls this directly
no test coverage detected