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

Function tap_link_set_down

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

Source from the content-addressed store, hash-verified

826}
827
828static int
829tap_link_set_down(struct rte_eth_dev *dev)
830{
831 struct pmd_internals *pmd = dev->data->dev_private;
832 struct ifreq ifr = { .ifr_flags = IFF_UP };
833
834 dev->data->dev_link.link_status = RTE_ETH_LINK_DOWN;
835 return tap_ioctl(pmd, SIOCSIFFLAGS, &ifr, 0, LOCAL_ONLY);
836}
837
838static int
839tap_link_set_up(struct rte_eth_dev *dev)

Callers 2

tap_dev_stopFunction · 0.85
tap_dev_closeFunction · 0.85

Calls 1

tap_ioctlFunction · 0.85

Tested by

no test coverage detected