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

Function eth_dev_configure

dpdk/drivers/net/vhost/rte_eth_vhost.c:1113–1131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1111}
1112
1113static int
1114eth_dev_configure(struct rte_eth_dev *dev)
1115{
1116 struct pmd_internal *internal = dev->data->dev_private;
1117 const struct rte_eth_rxmode *rxmode = &dev->data->dev_conf.rxmode;
1118
1119 /* NOTE: the same process has to operate a vhost interface
1120 * from beginning to end (from eth_dev configure to eth_dev close).
1121 * It is user's responsibility at the moment.
1122 */
1123 if (vhost_driver_setup(dev) < 0)
1124 return -1;
1125
1126 internal->vlan_strip = !!(rxmode->offloads & RTE_ETH_RX_OFFLOAD_VLAN_STRIP);
1127
1128 vhost_dev_csum_configure(dev);
1129
1130 return 0;
1131}
1132
1133static int
1134eth_dev_start(struct rte_eth_dev *eth_dev)

Callers

nothing calls this directly

Calls 2

vhost_driver_setupFunction · 0.85
vhost_dev_csum_configureFunction · 0.85

Tested by

no test coverage detected