Lines 1463-1469
eth_i40e_dev_init(struct rte_eth_dev *dev, void *init_params __rte_unused)
Link Here
|
1463 |
hw->subsystem_device_id = pci_dev->id.subsystem_device_id; |
1463 |
hw->subsystem_device_id = pci_dev->id.subsystem_device_id; |
1464 |
hw->bus.device = pci_dev->addr.devid; |
1464 |
hw->bus.device = pci_dev->addr.devid; |
1465 |
hw->bus.func = pci_dev->addr.function; |
1465 |
hw->bus.func = pci_dev->addr.function; |
1466 |
hw->adapter_stopped = 0; |
1466 |
hw->adapter_stopped = 1; |
1467 |
hw->adapter_closed = 0; |
1467 |
hw->adapter_closed = 0; |
1468 |
|
1468 |
|
1469 |
/* Init switch device pointer */ |
1469 |
/* Init switch device pointer */ |
Lines 2330-2337
i40e_dev_start(struct rte_eth_dev *dev)
Link Here
|
2330 |
uint16_t nb_rxq, nb_txq; |
2330 |
uint16_t nb_rxq, nb_txq; |
2331 |
uint16_t max_frame_size; |
2331 |
uint16_t max_frame_size; |
2332 |
|
2332 |
|
2333 |
hw->adapter_stopped = 0; |
|
|
2334 |
|
2335 |
rte_intr_disable(intr_handle); |
2333 |
rte_intr_disable(intr_handle); |
2336 |
|
2334 |
|
2337 |
if ((rte_intr_cap_multiple(intr_handle) || |
2335 |
if ((rte_intr_cap_multiple(intr_handle) || |
Lines 2470-2475
i40e_dev_start(struct rte_eth_dev *dev)
Link Here
|
2470 |
max_frame_size = dev->data->mtu + I40E_ETH_OVERHEAD; |
2468 |
max_frame_size = dev->data->mtu + I40E_ETH_OVERHEAD; |
2471 |
i40e_set_mac_max_frame(dev, max_frame_size); |
2469 |
i40e_set_mac_max_frame(dev, max_frame_size); |
2472 |
|
2470 |
|
|
|
2471 |
hw->adapter_stopped = 0; |
2472 |
|
2473 |
return I40E_SUCCESS; |
2473 |
return I40E_SUCCESS; |
2474 |
|
2474 |
|
2475 |
tx_err: |
2475 |
tx_err: |