| 1111 | } |
| 1112 | |
| 1113 | static int |
| 1114 | eth_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 | |
| 1133 | static int |
| 1134 | eth_dev_start(struct rte_eth_dev *eth_dev) |
nothing calls this directly
no test coverage detected