Home
last modified time | relevance | path

Searched refs:vlan_filter (Results 1 – 16 of 16) sorted by relevance

/linux-6.6.21/drivers/net/ethernet/stmicro/stmmac/
Ddwmac4_core.c500 if (hw->vlan_filter[0] & GMAC_VLAN_TAG_VID) { in dwmac4_add_hw_vlan_rx_fltr()
505 hw->vlan_filter[0] = vid; in dwmac4_add_hw_vlan_rx_fltr()
515 if (hw->vlan_filter[i] == val) in dwmac4_add_hw_vlan_rx_fltr()
517 else if (!(hw->vlan_filter[i] & GMAC_VLAN_TAG_DATA_VEN)) in dwmac4_add_hw_vlan_rx_fltr()
530 hw->vlan_filter[index] = val; in dwmac4_add_hw_vlan_rx_fltr()
543 if ((hw->vlan_filter[0] & GMAC_VLAN_TAG_VID) == vid) { in dwmac4_del_hw_vlan_rx_fltr()
544 hw->vlan_filter[0] = 0; in dwmac4_del_hw_vlan_rx_fltr()
552 if ((hw->vlan_filter[i] & GMAC_VLAN_TAG_DATA_VID) == vid) { in dwmac4_del_hw_vlan_rx_fltr()
556 hw->vlan_filter[i] = 0; in dwmac4_del_hw_vlan_rx_fltr()
576 dwmac4_write_single_vlan(dev, hw->vlan_filter[0]); in dwmac4_restore_hw_vlan_rx_fltr()
[all …]
Dcommon.h605 u32 vlan_filter[32]; member
/linux-6.6.21/drivers/net/ethernet/huawei/hinic/
Dhinic_port.c455 struct hinic_vlan_filter vlan_filter; in hinic_set_vlan_fliter() local
456 u16 out_size = sizeof(vlan_filter); in hinic_set_vlan_fliter()
459 vlan_filter.func_idx = HINIC_HWIF_FUNC_IDX(hwif); in hinic_set_vlan_fliter()
460 vlan_filter.enable = en; in hinic_set_vlan_fliter()
463 &vlan_filter, sizeof(vlan_filter), in hinic_set_vlan_fliter()
464 &vlan_filter, &out_size); in hinic_set_vlan_fliter()
465 if (vlan_filter.status == HINIC_MGMT_CMD_UNSUPPORTED) { in hinic_set_vlan_fliter()
470 } else if (err || !out_size || vlan_filter.status) { in hinic_set_vlan_fliter()
473 err, vlan_filter.status, out_size); in hinic_set_vlan_fliter()
/linux-6.6.21/net/ncsi/
Dncsi-rsp.c377 ncf = &nc->vlan_filter; in ncsi_rsp_handler_svf()
828 nc->vlan_filter.vids = kcalloc(rsp->vlan_cnt, in ncsi_rsp_handler_gc()
829 sizeof(*nc->vlan_filter.vids), in ncsi_rsp_handler_gc()
831 if (!nc->vlan_filter.vids) in ncsi_rsp_handler_gc()
836 nc->vlan_filter.bitmap = U64_MAX; in ncsi_rsp_handler_gc()
837 nc->vlan_filter.n_vids = rsp->vlan_cnt; in ncsi_rsp_handler_gc()
902 ncvf = &nc->vlan_filter; in ncsi_rsp_handler_gp()
Dinternal.h230 struct ncsi_channel_vlan_filter vlan_filter; member
Dncsi-manage.c254 kfree(nc->vlan_filter.vids); in ncsi_remove_channel()
607 ncf = &nc->vlan_filter; in clear_one_vid()
646 ncf = &nc->vlan_filter; in set_one_vid()
Dncsi-netlink.c81 ncf = &nc->vlan_filter; in ncsi_write_channel_info()
/linux-6.6.21/drivers/net/ethernet/sfc/
Dmcdi_filters.h91 bool vlan_filter; member
Dmcdi_filters.c985 if ((vlan->vid == EFX_FILTER_VID_UNSPEC) == table->vlan_filter) in efx_mcdi_filter_vlan_sync_rx_mode()
1346 table->vlan_filter = in efx_mcdi_filter_table_probe()
1740 bool vlan_filter; in efx_mcdi_filter_sync_rx_mode() local
1764 vlan_filter = !!(net_dev->features & NETIF_F_HW_VLAN_CTAG_FILTER); in efx_mcdi_filter_sync_rx_mode()
1765 if (table->vlan_filter != vlan_filter) { in efx_mcdi_filter_sync_rx_mode()
1766 table->vlan_filter = vlan_filter; in efx_mcdi_filter_sync_rx_mode()
/linux-6.6.21/drivers/net/ethernet/ibm/ehea/
Dehea_phyp.h216 u64 vlan_filter[64]; member
Dehea_main.c2114 cb1->vlan_filter[index] |= ((u64)(0x8000000000000000 >> (vid & 0x3F))); in ehea_vlan_rx_add_vid()
2152 cb1->vlan_filter[index] &= ~((u64)(0x8000000000000000 >> (vid & 0x3F))); in ehea_vlan_rx_kill_vid()
/linux-6.6.21/drivers/net/ethernet/hisilicon/hns3/hns3vf/
Dhclgevf_main.c1191 struct hclge_mbx_vlan_filter *vlan_filter; in hclgevf_set_vlan_filter() local
1215 vlan_filter = (struct hclge_mbx_vlan_filter *)send_msg.data; in hclgevf_set_vlan_filter()
1216 vlan_filter->is_kill = is_kill; in hclgevf_set_vlan_filter()
1217 vlan_filter->vlan_id = cpu_to_le16(vlan_id); in hclgevf_set_vlan_filter()
1218 vlan_filter->proto = cpu_to_le16(be16_to_cpu(proto)); in hclgevf_set_vlan_filter()
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx4/
Dcmd.c2409 s_state->vlan_filter[port] = in mlx4_multi_func_init()
2412 if (!s_state->vlan_filter[port]) { in mlx4_multi_func_init()
2414 kfree(s_state->vlan_filter[port]); in mlx4_multi_func_init()
2476 kfree(priv->mfunc.master.slave_state[i].vlan_filter[port]); in mlx4_multi_func_init()
2581 kfree(priv->mfunc.master.slave_state[i].vlan_filter[port]); in mlx4_multi_func_cleanup()
Dmlx4.h494 struct mlx4_vlan_fltr *vlan_filter[MLX4_MAX_PORTS + 1]; member
/linux-6.6.21/net/bridge/
Dbr_netlink.c1319 u8 vlan_filter = nla_get_u8(data[IFLA_BR_VLAN_FILTERING]); in br_changelink() local
1321 err = br_vlan_filter_toggle(br, vlan_filter, extack); in br_changelink()
/linux-6.6.21/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_hsi.h4805 u32 vlan_filter[2]; member