Lines Matching refs:flow_node
504 struct bnxt_tc_flow_node *flow_node) in bnxt_hwrm_cfa_flow_free() argument
512 req->ext_flow_handle = flow_node->ext_flow_handle; in bnxt_hwrm_cfa_flow_free()
514 req->flow_handle = flow_node->flow_handle; in bnxt_hwrm_cfa_flow_free()
588 struct bnxt_tc_flow_node *flow_node) in bnxt_hwrm_cfa_flow_alloc() argument
779 flow_node->flow_handle = resp->flow_handle; in bnxt_hwrm_cfa_flow_alloc()
781 flow_node->ext_flow_handle = resp->ext_flow_handle; in bnxt_hwrm_cfa_flow_alloc()
782 flow_node->flow_id = resp->flow_id; in bnxt_hwrm_cfa_flow_alloc()
946 struct bnxt_tc_flow_node *flow_node) in bnxt_tc_put_l2_node() argument
948 struct bnxt_tc_l2_node *l2_node = flow_node->l2_node; in bnxt_tc_put_l2_node()
953 list_del(&flow_node->l2_list_node); in bnxt_tc_put_l2_node()
1002 struct bnxt_tc_flow_node *flow_node, in bnxt_tc_get_ref_flow_handle() argument
1031 flow_node->l2_node = l2_node; in bnxt_tc_get_ref_flow_handle()
1032 list_add(&flow_node->l2_list_node, &l2_node->common_l2_flows); in bnxt_tc_get_ref_flow_handle()
1152 struct bnxt_tc_flow_node *flow_node, in bnxt_tc_get_ref_decap_handle() argument
1182 flow_node->decap_l2_node = decap_l2_node; in bnxt_tc_get_ref_decap_handle()
1183 list_add(&flow_node->decap_l2_list_node, in bnxt_tc_get_ref_decap_handle()
1190 struct bnxt_tc_flow_node *flow_node) in bnxt_tc_put_decap_l2_node() argument
1192 struct bnxt_tc_l2_node *decap_l2_node = flow_node->decap_l2_node; in bnxt_tc_put_decap_l2_node()
1197 list_del(&flow_node->decap_l2_list_node); in bnxt_tc_put_decap_l2_node()
1209 struct bnxt_tc_flow_node *flow_node) in bnxt_tc_put_decap_handle() argument
1211 __le32 decap_handle = flow_node->decap_node->tunnel_handle; in bnxt_tc_put_decap_handle()
1215 if (flow_node->decap_l2_node) in bnxt_tc_put_decap_handle()
1216 bnxt_tc_put_decap_l2_node(bp, flow_node); in bnxt_tc_put_decap_handle()
1220 flow_node->decap_node); in bnxt_tc_put_decap_handle()
1301 struct bnxt_tc_flow_node *flow_node, in bnxt_tc_get_decap_handle() argument
1325 flow_node->decap_node = decap_node; in bnxt_tc_get_decap_handle()
1355 rc = bnxt_tc_get_ref_decap_handle(bp, flow, decap_l2_info, flow_node, in bnxt_tc_get_decap_handle()
1372 bnxt_tc_put_decap_l2_node(bp, flow_node); in bnxt_tc_get_decap_handle()
1376 flow_node->decap_node); in bnxt_tc_get_decap_handle()
1399 struct bnxt_tc_flow_node *flow_node, in bnxt_tc_get_encap_handle() argument
1417 flow_node->encap_node = encap_node; in bnxt_tc_get_encap_handle()
1444 struct bnxt_tc_flow_node *flow_node) in bnxt_tc_put_tunnel_handle() argument
1447 bnxt_tc_put_decap_handle(bp, flow_node); in bnxt_tc_put_tunnel_handle()
1449 bnxt_tc_put_encap_handle(bp, flow_node->encap_node); in bnxt_tc_put_tunnel_handle()
1454 struct bnxt_tc_flow_node *flow_node, in bnxt_tc_get_tunnel_handle() argument
1458 return bnxt_tc_get_decap_handle(bp, flow, flow_node, in bnxt_tc_get_tunnel_handle()
1461 return bnxt_tc_get_encap_handle(bp, flow, flow_node, in bnxt_tc_get_tunnel_handle()
1467 struct bnxt_tc_flow_node *flow_node) in __bnxt_tc_del_flow() argument
1473 bnxt_hwrm_cfa_flow_free(bp, flow_node); in __bnxt_tc_del_flow()
1478 bnxt_tc_put_tunnel_handle(bp, &flow_node->flow, flow_node); in __bnxt_tc_del_flow()
1481 bnxt_tc_put_l2_node(bp, flow_node); in __bnxt_tc_del_flow()
1485 rc = rhashtable_remove_fast(&tc_info->flow_table, &flow_node->node, in __bnxt_tc_del_flow()
1491 kfree_rcu(flow_node, rcu); in __bnxt_tc_del_flow()
1612 struct bnxt_tc_flow_node *flow_node; in bnxt_tc_del_flow() local
1614 flow_node = rhashtable_lookup_fast(&tc_info->flow_table, in bnxt_tc_del_flow()
1617 if (!flow_node) in bnxt_tc_del_flow()
1620 return __bnxt_tc_del_flow(bp, flow_node); in bnxt_tc_del_flow()
1628 struct bnxt_tc_flow_node *flow_node; in bnxt_tc_get_flow_stats() local
1632 flow_node = rhashtable_lookup_fast(&tc_info->flow_table, in bnxt_tc_get_flow_stats()
1635 if (!flow_node) in bnxt_tc_get_flow_stats()
1638 flow = &flow_node->flow; in bnxt_tc_get_flow_stats()
1655 struct bnxt_tc_flow_node *flow_node, in bnxt_fill_cfa_stats_req() argument
1661 *flow_id = flow_node->flow_id; in bnxt_fill_cfa_stats_req()
1668 if (flow_node->flow.l2_key.dir == BNXT_DIR_RX) in bnxt_fill_cfa_stats_req()
1676 *flow_handle = flow_node->flow_handle; in bnxt_fill_cfa_stats_req()
1699 struct bnxt_tc_flow_node *flow_node = stats_batch[i].flow_node; in bnxt_hwrm_cfa_flow_stats_get() local
1701 bnxt_fill_cfa_stats_req(bp, flow_node, in bnxt_hwrm_cfa_flow_stats_get()
1768 struct bnxt_tc_flow_node *flow_node = stats_batch[i].flow_node; in bnxt_tc_flow_stats_batch_update() local
1769 struct bnxt_tc_flow *flow = &flow_node->flow; in bnxt_tc_flow_stats_batch_update()
1789 void *flow_node; in bnxt_tc_flow_stats_batch_prep() local
1796 flow_node = rhashtable_walk_next(iter); in bnxt_tc_flow_stats_batch_prep()
1797 if (IS_ERR(flow_node)) { in bnxt_tc_flow_stats_batch_prep()
1799 if (PTR_ERR(flow_node) == -EAGAIN) { in bnxt_tc_flow_stats_batch_prep()
1802 rc = PTR_ERR(flow_node); in bnxt_tc_flow_stats_batch_prep()
1808 if (!flow_node) in bnxt_tc_flow_stats_batch_prep()
1811 stats_batch[i].flow_node = flow_node; in bnxt_tc_flow_stats_batch_prep()