Home
last modified time | relevance | path

Searched refs:mall_tc_entry (Results 1 – 2 of 2) sorted by relevance

/Linux-v5.4/net/dsa/
Dslave.c856 struct dsa_mall_tc_entry *mall_tc_entry; in dsa_slave_mall_tc_entry_find() local
858 list_for_each_entry(mall_tc_entry, &p->mall_tc_list, list) in dsa_slave_mall_tc_entry_find()
859 if (mall_tc_entry->cookie == cookie) in dsa_slave_mall_tc_entry_find()
860 return mall_tc_entry; in dsa_slave_mall_tc_entry_find()
871 struct dsa_mall_tc_entry *mall_tc_entry; in dsa_slave_add_cls_matchall() local
895 mall_tc_entry = kzalloc(sizeof(*mall_tc_entry), GFP_KERNEL); in dsa_slave_add_cls_matchall()
896 if (!mall_tc_entry) in dsa_slave_add_cls_matchall()
899 mall_tc_entry->cookie = cls->cookie; in dsa_slave_add_cls_matchall()
900 mall_tc_entry->type = DSA_PORT_MALL_MIRROR; in dsa_slave_add_cls_matchall()
901 mirror = &mall_tc_entry->mirror; in dsa_slave_add_cls_matchall()
[all …]
/Linux-v5.4/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum.c1336 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()
[all …]