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

Function virtio_intr_enable

dpdk/drivers/net/virtio/virtio_ethdev.c:1069–1081  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1067}
1068
1069static int
1070virtio_intr_enable(struct rte_eth_dev *dev)
1071{
1072 struct virtio_hw *hw = dev->data->dev_private;
1073
1074 if (rte_intr_enable(dev->intr_handle) < 0)
1075 return -1;
1076
1077 if (VIRTIO_OPS(hw)->intr_detect)
1078 VIRTIO_OPS(hw)->intr_detect(hw);
1079
1080 return 0;
1081}
1082
1083static int
1084virtio_intr_disable(struct rte_eth_dev *dev)

Callers 2

virtio_configure_intrFunction · 0.85
virtio_dev_startFunction · 0.85

Calls 1

rte_intr_enableFunction · 0.50

Tested by

no test coverage detected