Lines Matching refs:flow_node
508 struct bnxt_tc_flow_node *flow_node) in bnxt_hwrm_cfa_flow_free() argument
516 req->ext_flow_handle = flow_node->ext_flow_handle; in bnxt_hwrm_cfa_flow_free()
518 req->flow_handle = flow_node->flow_handle; in bnxt_hwrm_cfa_flow_free()
592 struct bnxt_tc_flow_node *flow_node) in bnxt_hwrm_cfa_flow_alloc() argument
783 flow_node->flow_handle = resp->flow_handle; in bnxt_hwrm_cfa_flow_alloc()
785 flow_node->ext_flow_handle = resp->ext_flow_handle; in bnxt_hwrm_cfa_flow_alloc()
786 flow_node->flow_id = resp->flow_id; in bnxt_hwrm_cfa_flow_alloc()
950 struct bnxt_tc_flow_node *flow_node) in bnxt_tc_put_l2_node() argument
952 struct bnxt_tc_l2_node *l2_node = flow_node->l2_node; in bnxt_tc_put_l2_node()
957 list_del(&flow_node->l2_list_node); in bnxt_tc_put_l2_node()
1006 struct bnxt_tc_flow_node *flow_node, in bnxt_tc_get_ref_flow_handle() argument
1035 flow_node->l2_node = l2_node; in bnxt_tc_get_ref_flow_handle()
1036 list_add(&flow_node->l2_list_node, &l2_node->common_l2_flows); in bnxt_tc_get_ref_flow_handle()
1156 struct bnxt_tc_flow_node *flow_node, in bnxt_tc_get_ref_decap_handle() argument
1186 flow_node->decap_l2_node = decap_l2_node; in bnxt_tc_get_ref_decap_handle()
1187 list_add(&flow_node->decap_l2_list_node, in bnxt_tc_get_ref_decap_handle()
1194 struct bnxt_tc_flow_node *flow_node) in bnxt_tc_put_decap_l2_node() argument
1196 struct bnxt_tc_l2_node *decap_l2_node = flow_node->decap_l2_node; in bnxt_tc_put_decap_l2_node()
1201 list_del(&flow_node->decap_l2_list_node); in bnxt_tc_put_decap_l2_node()
1213 struct bnxt_tc_flow_node *flow_node) in bnxt_tc_put_decap_handle() argument
1215 __le32 decap_handle = flow_node->decap_node->tunnel_handle; in bnxt_tc_put_decap_handle()
1219 if (flow_node->decap_l2_node) in bnxt_tc_put_decap_handle()
1220 bnxt_tc_put_decap_l2_node(bp, flow_node); in bnxt_tc_put_decap_handle()
1224 flow_node->decap_node); in bnxt_tc_put_decap_handle()
1305 struct bnxt_tc_flow_node *flow_node, in bnxt_tc_get_decap_handle() argument
1329 flow_node->decap_node = decap_node; in bnxt_tc_get_decap_handle()
1359 rc = bnxt_tc_get_ref_decap_handle(bp, flow, decap_l2_info, flow_node, in bnxt_tc_get_decap_handle()
1376 bnxt_tc_put_decap_l2_node(bp, flow_node); in bnxt_tc_get_decap_handle()
1380 flow_node->decap_node); in bnxt_tc_get_decap_handle()
1403 struct bnxt_tc_flow_node *flow_node, in bnxt_tc_get_encap_handle() argument
1421 flow_node->encap_node = encap_node; in bnxt_tc_get_encap_handle()
1448 struct bnxt_tc_flow_node *flow_node) in bnxt_tc_put_tunnel_handle() argument
1451 bnxt_tc_put_decap_handle(bp, flow_node); in bnxt_tc_put_tunnel_handle()
1453 bnxt_tc_put_encap_handle(bp, flow_node->encap_node); in bnxt_tc_put_tunnel_handle()
1458 struct bnxt_tc_flow_node *flow_node, in bnxt_tc_get_tunnel_handle() argument
1462 return bnxt_tc_get_decap_handle(bp, flow, flow_node, in bnxt_tc_get_tunnel_handle()
1465 return bnxt_tc_get_encap_handle(bp, flow, flow_node, in bnxt_tc_get_tunnel_handle()
1471 struct bnxt_tc_flow_node *flow_node) in __bnxt_tc_del_flow() argument
1477 bnxt_hwrm_cfa_flow_free(bp, flow_node); in __bnxt_tc_del_flow()
1482 bnxt_tc_put_tunnel_handle(bp, &flow_node->flow, flow_node); in __bnxt_tc_del_flow()
1485 bnxt_tc_put_l2_node(bp, flow_node); in __bnxt_tc_del_flow()
1489 rc = rhashtable_remove_fast(&tc_info->flow_table, &flow_node->node, in __bnxt_tc_del_flow()
1495 kfree_rcu(flow_node, rcu); in __bnxt_tc_del_flow()
1616 struct bnxt_tc_flow_node *flow_node; in bnxt_tc_del_flow() local
1618 flow_node = rhashtable_lookup_fast(&tc_info->flow_table, in bnxt_tc_del_flow()
1621 if (!flow_node) in bnxt_tc_del_flow()
1624 return __bnxt_tc_del_flow(bp, flow_node); in bnxt_tc_del_flow()
1632 struct bnxt_tc_flow_node *flow_node; in bnxt_tc_get_flow_stats() local
1636 flow_node = rhashtable_lookup_fast(&tc_info->flow_table, in bnxt_tc_get_flow_stats()
1639 if (!flow_node) in bnxt_tc_get_flow_stats()
1642 flow = &flow_node->flow; in bnxt_tc_get_flow_stats()
1659 struct bnxt_tc_flow_node *flow_node, in bnxt_fill_cfa_stats_req() argument
1665 *flow_id = flow_node->flow_id; in bnxt_fill_cfa_stats_req()
1672 if (flow_node->flow.l2_key.dir == BNXT_DIR_RX) in bnxt_fill_cfa_stats_req()
1680 *flow_handle = flow_node->flow_handle; in bnxt_fill_cfa_stats_req()
1703 struct bnxt_tc_flow_node *flow_node = stats_batch[i].flow_node; in bnxt_hwrm_cfa_flow_stats_get() local
1705 bnxt_fill_cfa_stats_req(bp, flow_node, in bnxt_hwrm_cfa_flow_stats_get()
1772 struct bnxt_tc_flow_node *flow_node = stats_batch[i].flow_node; in bnxt_tc_flow_stats_batch_update() local
1773 struct bnxt_tc_flow *flow = &flow_node->flow; in bnxt_tc_flow_stats_batch_update()
1793 void *flow_node; in bnxt_tc_flow_stats_batch_prep() local
1800 flow_node = rhashtable_walk_next(iter); in bnxt_tc_flow_stats_batch_prep()
1801 if (IS_ERR(flow_node)) { in bnxt_tc_flow_stats_batch_prep()
1803 if (PTR_ERR(flow_node) == -EAGAIN) { in bnxt_tc_flow_stats_batch_prep()
1806 rc = PTR_ERR(flow_node); in bnxt_tc_flow_stats_batch_prep()
1812 if (!flow_node) in bnxt_tc_flow_stats_batch_prep()
1815 stats_batch[i].flow_node = flow_node; in bnxt_tc_flow_stats_batch_prep()