Lines Matching refs:fg

938 	mlxcx_flow_group_t *fg;  in mlxcx_teardown_flow_table()  local
955 while ((fg = list_remove_head(&ft->mlft_groups)) != NULL) { in mlxcx_teardown_flow_table()
956 if (fg->mlfg_state & MLXCX_FLOW_GROUP_CREATED && in mlxcx_teardown_flow_table()
957 !(fg->mlfg_state & MLXCX_FLOW_GROUP_DESTROYED)) { in mlxcx_teardown_flow_table()
958 if (!mlxcx_cmd_destroy_flow_group(mlxp, fg)) { in mlxcx_teardown_flow_table()
960 "group %u", fg->mlfg_num); in mlxcx_teardown_flow_table()
963 kmem_free(fg, sizeof (mlxcx_flow_group_t)); in mlxcx_teardown_flow_table()
1846 mlxcx_flow_group_t *fg; in mlxcx_setup_ports() local
1940 fg = kmem_zalloc(sizeof (mlxcx_flow_group_t), KM_SLEEP); in mlxcx_setup_ports()
1941 list_insert_tail(&ft->mlft_groups, fg); in mlxcx_setup_ports()
1942 fg->mlfg_table = ft; in mlxcx_setup_ports()
1943 fg->mlfg_size = 1; in mlxcx_setup_ports()
1944 fg->mlfg_mask |= MLXCX_FLOW_MATCH_DMAC; in mlxcx_setup_ports()
1945 if (!mlxcx_setup_flow_group(mlxp, ft, fg)) { in mlxcx_setup_ports()
1950 p->mlp_bcast = fg; in mlxcx_setup_ports()
1951 fe = list_head(&fg->mlfg_entries); in mlxcx_setup_ports()
1956 fg = kmem_zalloc(sizeof (mlxcx_flow_group_t), KM_SLEEP); in mlxcx_setup_ports()
1957 list_insert_tail(&ft->mlft_groups, fg); in mlxcx_setup_ports()
1958 fg->mlfg_table = ft; in mlxcx_setup_ports()
1959 fg->mlfg_size = ft->mlft_nents - 2; in mlxcx_setup_ports()
1960 fg->mlfg_mask |= MLXCX_FLOW_MATCH_DMAC; in mlxcx_setup_ports()
1961 if (!mlxcx_setup_flow_group(mlxp, ft, fg)) { in mlxcx_setup_ports()
1966 p->mlp_umcast = fg; in mlxcx_setup_ports()
1968 fg = kmem_zalloc(sizeof (mlxcx_flow_group_t), KM_SLEEP); in mlxcx_setup_ports()
1969 list_insert_tail(&ft->mlft_groups, fg); in mlxcx_setup_ports()
1970 fg->mlfg_table = ft; in mlxcx_setup_ports()
1971 fg->mlfg_size = 1; in mlxcx_setup_ports()
1972 if (!mlxcx_setup_flow_group(mlxp, ft, fg)) { in mlxcx_setup_ports()
1977 p->mlp_promisc = fg; in mlxcx_setup_ports()
1978 fe = list_head(&fg->mlfg_entries); in mlxcx_setup_ports()
2001 mlxcx_flow_group_t *fg = g->mlg_rx_vlan_fg; in mlxcx_remove_all_vlan_entries() local
2018 ASSERT3P(fe->mlfe_group, ==, fg); in mlxcx_remove_all_vlan_entries()
2033 mlxcx_flow_group_t *fg = g->mlg_rx_vlan_fg; in mlxcx_remove_vlan_entry() local
2077 ASSERT3P(fe->mlfe_group, ==, fg); in mlxcx_remove_vlan_entry()
2102 mlxcx_flow_group_t *fg = g->mlg_rx_vlan_fg; in mlxcx_add_vlan_entry() local
2123 for (fe = list_head(&fg->mlfg_entries); fe != NULL; in mlxcx_add_vlan_entry()
2124 fe = list_next(&fg->mlfg_entries, fe)) { in mlxcx_add_vlan_entry()
2293 mlxcx_flow_group_t *fg; in mlxcx_add_umcast_entry() local
2310 fg = port->mlp_umcast; in mlxcx_add_umcast_entry()
2311 for (fe = list_head(&fg->mlfg_entries); fe != NULL; in mlxcx_add_umcast_entry()
2312 fe = list_next(&fg->mlfg_entries, fe)) { in mlxcx_add_umcast_entry()
2357 mlxcx_flow_group_t *fg) in mlxcx_setup_flow_group() argument
2364 ASSERT3P(fg->mlfg_table, ==, ft); in mlxcx_setup_flow_group()
2366 if (ft->mlft_next_ent + fg->mlfg_size > ft->mlft_nents) in mlxcx_setup_flow_group()
2368 fg->mlfg_start_idx = ft->mlft_next_ent; in mlxcx_setup_flow_group()
2370 if (!mlxcx_cmd_create_flow_group(mlxp, fg)) { in mlxcx_setup_flow_group()
2374 list_create(&fg->mlfg_entries, sizeof (mlxcx_flow_entry_t), in mlxcx_setup_flow_group()
2376 for (i = 0; i < fg->mlfg_size; ++i) { in mlxcx_setup_flow_group()
2377 idx = fg->mlfg_start_idx + i; in mlxcx_setup_flow_group()
2379 fe->mlfe_group = fg; in mlxcx_setup_flow_group()
2380 list_insert_tail(&fg->mlfg_entries, fe); in mlxcx_setup_flow_group()
2382 fg->mlfg_avail = fg->mlfg_size; in mlxcx_setup_flow_group()
2383 ft->mlft_next_ent += fg->mlfg_size; in mlxcx_setup_flow_group()