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

Function txgbe_dev_reset

dpdk/drivers/net/txgbe/txgbe_ethdev.c:2136–2157  ·  view source on GitHub ↗

* Reset PF device. */

Source from the content-addressed store, hash-verified

2134 * Reset PF device.
2135 */
2136static int
2137txgbe_dev_reset(struct rte_eth_dev *dev)
2138{
2139 int ret;
2140
2141 /* When a DPDK PMD PF begin to reset PF port, it should notify all
2142 * its VF to make them align with it. The detailed notification
2143 * mechanism is PMD specific. As to txgbe PF, it is rather complex.
2144 * To avoid unexpected behavior in VF, currently reset of PF with
2145 * SR-IOV activation is not supported. It might be supported later.
2146 */
2147 if (dev->data->sriov.active)
2148 return -ENOTSUP;
2149
2150 ret = eth_txgbe_dev_uninit(dev);
2151 if (ret)
2152 return ret;
2153
2154 ret = eth_txgbe_dev_init(dev, NULL);
2155
2156 return ret;
2157}
2158
2159#define UPDATE_QP_COUNTER_32bit(reg, last_counter, counter) \
2160 { \

Callers

nothing calls this directly

Calls 2

eth_txgbe_dev_uninitFunction · 0.85
eth_txgbe_dev_initFunction · 0.85

Tested by

no test coverage detected