Lines Matching refs:newmask
1824 struct fl_flow_mask *newmask; in fl_create_new_mask() local
1827 newmask = kzalloc(sizeof(*newmask), GFP_KERNEL); in fl_create_new_mask()
1828 if (!newmask) in fl_create_new_mask()
1831 fl_mask_copy(newmask, mask); in fl_create_new_mask()
1833 if ((newmask->key.tp_range.tp_min.dst && in fl_create_new_mask()
1834 newmask->key.tp_range.tp_max.dst) || in fl_create_new_mask()
1835 (newmask->key.tp_range.tp_min.src && in fl_create_new_mask()
1836 newmask->key.tp_range.tp_max.src)) in fl_create_new_mask()
1837 newmask->flags |= TCA_FLOWER_MASK_FLAGS_RANGE; in fl_create_new_mask()
1839 err = fl_init_mask_hashtable(newmask); in fl_create_new_mask()
1843 fl_init_dissector(&newmask->dissector, &newmask->key); in fl_create_new_mask()
1845 INIT_LIST_HEAD_RCU(&newmask->filters); in fl_create_new_mask()
1847 refcount_set(&newmask->refcnt, 1); in fl_create_new_mask()
1849 &newmask->ht_node, mask_ht_params); in fl_create_new_mask()
1854 list_add_tail_rcu(&newmask->list, &head->masks); in fl_create_new_mask()
1857 return newmask; in fl_create_new_mask()
1860 rhashtable_destroy(&newmask->ht); in fl_create_new_mask()
1862 kfree(newmask); in fl_create_new_mask()
1872 struct fl_flow_mask *newmask; in fl_check_assign_mask() local
1892 newmask = fl_create_new_mask(head, mask); in fl_check_assign_mask()
1893 if (IS_ERR(newmask)) { in fl_check_assign_mask()
1894 ret = PTR_ERR(newmask); in fl_check_assign_mask()
1898 fnew->mask = newmask; in fl_check_assign_mask()