* Set device link up, enable tx. */
| 224 | * Set device link up, enable tx. |
| 225 | */ |
| 226 | static int |
| 227 | ionic_dev_set_link_up(struct rte_eth_dev *eth_dev) |
| 228 | { |
| 229 | struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); |
| 230 | int err; |
| 231 | |
| 232 | IONIC_PRINT_CALL(); |
| 233 | |
| 234 | err = ionic_lif_start(lif); |
| 235 | if (err) |
| 236 | IONIC_PRINT(ERR, "Could not start lif to set link up"); |
| 237 | |
| 238 | ionic_dev_link_update(lif->eth_dev, 0); |
| 239 | |
| 240 | return err; |
| 241 | } |
| 242 | |
| 243 | /* |
| 244 | * Set device link down, disable tx. |
nothing calls this directly
no test coverage detected