Lines Matching full:binding
118 struct prestera_flow_block_binding *binding; in prestera_flow_block_lookup() local
120 list_for_each_entry(binding, &block->binding_list, list) in prestera_flow_block_lookup()
121 if (binding->port == port) in prestera_flow_block_lookup()
122 return binding; in prestera_flow_block_lookup()
130 struct prestera_flow_block_binding *binding; in prestera_flow_block_bind() local
133 binding = kzalloc(sizeof(*binding), GFP_KERNEL); in prestera_flow_block_bind()
134 if (!binding) in prestera_flow_block_bind()
137 binding->span_id = PRESTERA_SPAN_INVALID_ID; in prestera_flow_block_bind()
138 binding->port = port; in prestera_flow_block_bind()
146 list_add(&binding->list, &block->binding_list); in prestera_flow_block_bind()
150 kfree(binding); in prestera_flow_block_bind()
157 struct prestera_flow_block_binding *binding; in prestera_flow_block_unbind() local
159 binding = prestera_flow_block_lookup(block, port); in prestera_flow_block_unbind()
160 if (!binding) in prestera_flow_block_unbind()
163 list_del(&binding->list); in prestera_flow_block_unbind()
168 kfree(binding); in prestera_flow_block_unbind()