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

Function rx_vft_set

dpdk/app/test-pmd/config.c:6233–6249  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6231}
6232
6233int
6234rx_vft_set(portid_t port_id, uint16_t vlan_id, int on)
6235{
6236 int diag;
6237
6238 if (port_id_is_invalid(port_id, ENABLED_WARN))
6239 return 1;
6240 if (vlan_id_is_invalid(vlan_id))
6241 return 1;
6242 diag = rte_eth_dev_vlan_filter(port_id, vlan_id, on);
6243 if (diag == 0)
6244 return 0;
6245 fprintf(stderr,
6246 "rte_eth_dev_vlan_filter(port_pi=%d, vlan_id=%d, on=%d) failed diag=%d\n",
6247 port_id, vlan_id, on, diag);
6248 return -1;
6249}
6250
6251void
6252rx_vlan_all_filter_set(portid_t port_id, int on)

Callers 3

rx_vlan_all_filter_setFunction · 0.85
init_port_dcb_configFunction · 0.85

Calls 3

port_id_is_invalidFunction · 0.85
vlan_id_is_invalidFunction · 0.85
rte_eth_dev_vlan_filterFunction · 0.85

Tested by 1

init_port_dcb_configFunction · 0.68