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

Function bnxt_handle_vf_cfg_change

dpdk/drivers/net/bnxt/bnxt_cpr.c:110–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108}
109
110void 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

Callers

nothing calls this directly

Calls 2

bnxt_dev_stop_opFunction · 0.85
bnxt_dev_start_opFunction · 0.85

Tested by

no test coverage detected