Lines Matching refs:mall_tc_entry
856 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()
910 kfree(mall_tc_entry); in dsa_slave_add_cls_matchall()
914 list_add_tail(&mall_tc_entry->list, &p->mall_tc_list); in dsa_slave_add_cls_matchall()
924 struct dsa_mall_tc_entry *mall_tc_entry; in dsa_slave_del_cls_matchall() local
930 mall_tc_entry = dsa_slave_mall_tc_entry_find(dev, cls->cookie); in dsa_slave_del_cls_matchall()
931 if (!mall_tc_entry) in dsa_slave_del_cls_matchall()
934 list_del(&mall_tc_entry->list); in dsa_slave_del_cls_matchall()
936 switch (mall_tc_entry->type) { in dsa_slave_del_cls_matchall()
938 ds->ops->port_mirror_del(ds, dp->index, &mall_tc_entry->mirror); in dsa_slave_del_cls_matchall()
944 kfree(mall_tc_entry); in dsa_slave_del_cls_matchall()