Lines Matching refs:key_layer

171 	u8 key_layer;  in nfp_flower_calculate_key_layers()  local
185 key_layer = NFP_FLOWER_LAYER_PORT; in nfp_flower_calculate_key_layers()
191 key_layer |= NFP_FLOWER_LAYER_MAC; in nfp_flower_calculate_key_layers()
257 key_layer |= NFP_FLOWER_LAYER_VXLAN; in nfp_flower_calculate_key_layers()
267 key_layer |= NFP_FLOWER_LAYER_EXT_META; in nfp_flower_calculate_key_layers()
303 key_layer |= NFP_FLOWER_LAYER_IPV4; in nfp_flower_calculate_key_layers()
308 key_layer |= NFP_FLOWER_LAYER_IPV6; in nfp_flower_calculate_key_layers()
320 if (!(key_layer & NFP_FLOWER_LAYER_MAC)) { in nfp_flower_calculate_key_layers()
321 key_layer |= NFP_FLOWER_LAYER_MAC; in nfp_flower_calculate_key_layers()
348 key_layer |= NFP_FLOWER_LAYER_TP; in nfp_flower_calculate_key_layers()
382 if (!(key_layer & NFP_FLOWER_LAYER_IPV4)) { in nfp_flower_calculate_key_layers()
383 key_layer |= NFP_FLOWER_LAYER_IPV4; in nfp_flower_calculate_key_layers()
399 ret_key_ls->key_layer = key_layer; in nfp_flower_calculate_key_layers()
407 nfp_flower_allocate_new(struct nfp_fl_key_ls *key_layer, bool egress) in nfp_flower_allocate_new() argument
415 flow_pay->meta.key_len = key_layer->key_size; in nfp_flower_allocate_new()
416 flow_pay->unmasked_data = kmalloc(key_layer->key_size, GFP_KERNEL); in nfp_flower_allocate_new()
420 flow_pay->meta.mask_len = key_layer->key_size; in nfp_flower_allocate_new()
421 flow_pay->mask_data = kmalloc(key_layer->key_size, GFP_KERNEL); in nfp_flower_allocate_new()
465 struct nfp_fl_key_ls *key_layer; in nfp_flower_add_offload() local
480 key_layer = kmalloc(sizeof(*key_layer), GFP_KERNEL); in nfp_flower_add_offload()
481 if (!key_layer) in nfp_flower_add_offload()
484 err = nfp_flower_calculate_key_layers(app, key_layer, flow, egress, in nfp_flower_add_offload()
489 flow_pay = nfp_flower_allocate_new(key_layer, egress); in nfp_flower_add_offload()
497 err = nfp_flower_compile_flow_match(flow, key_layer, netdev, flow_pay, in nfp_flower_add_offload()
522 kfree(key_layer); in nfp_flower_add_offload()
532 kfree(key_layer); in nfp_flower_add_offload()