| 6231 | } |
| 6232 | |
| 6233 | int |
| 6234 | rx_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 | |
| 6251 | void |
| 6252 | rx_vlan_all_filter_set(portid_t port_id, int on) |