Lines Matching refs:newmask
1989 struct fl_flow_mask *newmask; in fl_create_new_mask() local
1992 newmask = kzalloc(sizeof(*newmask), GFP_KERNEL); in fl_create_new_mask()
1993 if (!newmask) in fl_create_new_mask()
1996 fl_mask_copy(newmask, mask); in fl_create_new_mask()
1998 if ((newmask->key.tp_range.tp_min.dst && in fl_create_new_mask()
1999 newmask->key.tp_range.tp_max.dst) || in fl_create_new_mask()
2000 (newmask->key.tp_range.tp_min.src && in fl_create_new_mask()
2001 newmask->key.tp_range.tp_max.src)) in fl_create_new_mask()
2002 newmask->flags |= TCA_FLOWER_MASK_FLAGS_RANGE; in fl_create_new_mask()
2004 err = fl_init_mask_hashtable(newmask); in fl_create_new_mask()
2008 fl_init_dissector(&newmask->dissector, &newmask->key); in fl_create_new_mask()
2010 INIT_LIST_HEAD_RCU(&newmask->filters); in fl_create_new_mask()
2012 refcount_set(&newmask->refcnt, 1); in fl_create_new_mask()
2014 &newmask->ht_node, mask_ht_params); in fl_create_new_mask()
2019 list_add_tail_rcu(&newmask->list, &head->masks); in fl_create_new_mask()
2022 return newmask; in fl_create_new_mask()
2025 rhashtable_destroy(&newmask->ht); in fl_create_new_mask()
2027 kfree(newmask); in fl_create_new_mask()
2037 struct fl_flow_mask *newmask; in fl_check_assign_mask() local
2057 newmask = fl_create_new_mask(head, mask); in fl_check_assign_mask()
2058 if (IS_ERR(newmask)) { in fl_check_assign_mask()
2059 ret = PTR_ERR(newmask); in fl_check_assign_mask()
2063 fnew->mask = newmask; in fl_check_assign_mask()