Lines Matching defs:vid
39 u16 vid;
397 static struct efx_ef10_vlan *efx_ef10_find_vlan(struct efx_nic *efx, u16 vid)
405 if (vlan->vid == vid)
412 static int efx_ef10_add_vlan(struct efx_nic *efx, u16 vid)
420 vlan = efx_ef10_find_vlan(efx, vid);
425 if (vid == 0)
428 "VLAN %u already added\n", vid);
438 vlan->vid = vid;
445 rc = efx_mcdi_filter_add_vlan(efx, vlan->vid);
474 efx_mcdi_filter_del_vlan(efx, vlan->vid);
482 static int efx_ef10_del_vlan(struct efx_nic *efx, u16 vid)
492 if (vid == 0)
497 vlan = efx_ef10_find_vlan(efx, vid);
500 "VLAN %u to be deleted not found\n", vid);
2549 rc = efx_mcdi_filter_add_vlan(efx, vlan->vid);
3734 static int efx_ef10_vlan_rx_add_vid(struct efx_nic *efx, __be16 proto, u16 vid)
3739 return efx_ef10_add_vlan(efx, vid);
3742 static int efx_ef10_vlan_rx_kill_vid(struct efx_nic *efx, __be16 proto, u16 vid)
3747 return efx_ef10_del_vlan(efx, vid);