Lines Matching refs:mall_tc_entry
1336 struct mlxsw_sp_port_mall_tc_entry *mall_tc_entry; in mlxsw_sp_port_mall_tc_entry_find() local
1338 list_for_each_entry(mall_tc_entry, &port->mall_tc_list, list) in mlxsw_sp_port_mall_tc_entry_find()
1339 if (mall_tc_entry->cookie == cookie) in mlxsw_sp_port_mall_tc_entry_find()
1340 return mall_tc_entry; in mlxsw_sp_port_mall_tc_entry_find()
1425 struct mlxsw_sp_port_mall_tc_entry *mall_tc_entry; in mlxsw_sp_port_add_cls_matchall() local
1435 mall_tc_entry = kzalloc(sizeof(*mall_tc_entry), GFP_KERNEL); in mlxsw_sp_port_add_cls_matchall()
1436 if (!mall_tc_entry) in mlxsw_sp_port_add_cls_matchall()
1438 mall_tc_entry->cookie = f->cookie; in mlxsw_sp_port_add_cls_matchall()
1445 mall_tc_entry->type = MLXSW_SP_PORT_MALL_MIRROR; in mlxsw_sp_port_add_cls_matchall()
1446 mirror = &mall_tc_entry->mirror; in mlxsw_sp_port_add_cls_matchall()
1452 mall_tc_entry->type = MLXSW_SP_PORT_MALL_SAMPLE; in mlxsw_sp_port_add_cls_matchall()
1462 list_add_tail(&mall_tc_entry->list, &mlxsw_sp_port->mall_tc_list); in mlxsw_sp_port_add_cls_matchall()
1466 kfree(mall_tc_entry); in mlxsw_sp_port_add_cls_matchall()
1473 struct mlxsw_sp_port_mall_tc_entry *mall_tc_entry; in mlxsw_sp_port_del_cls_matchall() local
1475 mall_tc_entry = mlxsw_sp_port_mall_tc_entry_find(mlxsw_sp_port, in mlxsw_sp_port_del_cls_matchall()
1477 if (!mall_tc_entry) { in mlxsw_sp_port_del_cls_matchall()
1481 list_del(&mall_tc_entry->list); in mlxsw_sp_port_del_cls_matchall()
1483 switch (mall_tc_entry->type) { in mlxsw_sp_port_del_cls_matchall()
1486 &mall_tc_entry->mirror); in mlxsw_sp_port_del_cls_matchall()
1495 kfree(mall_tc_entry); in mlxsw_sp_port_del_cls_matchall()