| 108 | } |
| 109 | |
| 110 | void bnxt_handle_vf_cfg_change(void *arg) |
| 111 | { |
| 112 | struct bnxt *bp = arg; |
| 113 | struct rte_eth_dev *eth_dev = bp->eth_dev; |
| 114 | int rc; |
| 115 | |
| 116 | /* Free and recreate filters with default VLAN */ |
| 117 | if (eth_dev->data->dev_started) { |
| 118 | rc = bnxt_dev_stop_op(eth_dev); |
| 119 | if (rc != 0) { |
| 120 | PMD_DRV_LOG(ERR, "Failed to stop Port:%u\n", eth_dev->data->port_id); |
| 121 | return; |
| 122 | } |
| 123 | |
| 124 | rc = bnxt_dev_start_op(eth_dev); |
| 125 | if (rc != 0) |
| 126 | PMD_DRV_LOG(ERR, "Failed to start Port:%u\n", eth_dev->data->port_id); |
| 127 | } |
| 128 | } |
| 129 | |
| 130 | /* |
| 131 | * Async event handling |
nothing calls this directly
no test coverage detected