Lines Matching refs:newmask
1822 struct fl_flow_mask *newmask; in fl_create_new_mask() local
1825 newmask = kzalloc(sizeof(*newmask), GFP_KERNEL); in fl_create_new_mask()
1826 if (!newmask) in fl_create_new_mask()
1829 fl_mask_copy(newmask, mask); in fl_create_new_mask()
1831 if ((newmask->key.tp_range.tp_min.dst && in fl_create_new_mask()
1832 newmask->key.tp_range.tp_max.dst) || in fl_create_new_mask()
1833 (newmask->key.tp_range.tp_min.src && in fl_create_new_mask()
1834 newmask->key.tp_range.tp_max.src)) in fl_create_new_mask()
1835 newmask->flags |= TCA_FLOWER_MASK_FLAGS_RANGE; in fl_create_new_mask()
1837 err = fl_init_mask_hashtable(newmask); in fl_create_new_mask()
1841 fl_init_dissector(&newmask->dissector, &newmask->key); in fl_create_new_mask()
1843 INIT_LIST_HEAD_RCU(&newmask->filters); in fl_create_new_mask()
1845 refcount_set(&newmask->refcnt, 1); in fl_create_new_mask()
1847 &newmask->ht_node, mask_ht_params); in fl_create_new_mask()
1852 list_add_tail_rcu(&newmask->list, &head->masks); in fl_create_new_mask()
1855 return newmask; in fl_create_new_mask()
1858 rhashtable_destroy(&newmask->ht); in fl_create_new_mask()
1860 kfree(newmask); in fl_create_new_mask()
1870 struct fl_flow_mask *newmask; in fl_check_assign_mask() local
1890 newmask = fl_create_new_mask(head, mask); in fl_check_assign_mask()
1891 if (IS_ERR(newmask)) { in fl_check_assign_mask()
1892 ret = PTR_ERR(newmask); in fl_check_assign_mask()
1896 fnew->mask = newmask; in fl_check_assign_mask()