Lines Matching refs:flow_node

503 				   struct bnxt_tc_flow_node *flow_node)  in bnxt_hwrm_cfa_flow_free()  argument
510 req.ext_flow_handle = flow_node->ext_flow_handle; in bnxt_hwrm_cfa_flow_free()
512 req.flow_handle = flow_node->flow_handle; in bnxt_hwrm_cfa_flow_free()
585 struct bnxt_tc_flow_node *flow_node) in bnxt_hwrm_cfa_flow_alloc() argument
775 flow_node->flow_handle = resp->flow_handle; in bnxt_hwrm_cfa_flow_alloc()
777 flow_node->ext_flow_handle = resp->ext_flow_handle; in bnxt_hwrm_cfa_flow_alloc()
778 flow_node->flow_id = resp->flow_id; in bnxt_hwrm_cfa_flow_alloc()
938 struct bnxt_tc_flow_node *flow_node) in bnxt_tc_put_l2_node() argument
940 struct bnxt_tc_l2_node *l2_node = flow_node->l2_node; in bnxt_tc_put_l2_node()
945 list_del(&flow_node->l2_list_node); in bnxt_tc_put_l2_node()
994 struct bnxt_tc_flow_node *flow_node, in bnxt_tc_get_ref_flow_handle() argument
1023 flow_node->l2_node = l2_node; in bnxt_tc_get_ref_flow_handle()
1024 list_add(&flow_node->l2_list_node, &l2_node->common_l2_flows); in bnxt_tc_get_ref_flow_handle()
1144 struct bnxt_tc_flow_node *flow_node, in bnxt_tc_get_ref_decap_handle() argument
1174 flow_node->decap_l2_node = decap_l2_node; in bnxt_tc_get_ref_decap_handle()
1175 list_add(&flow_node->decap_l2_list_node, in bnxt_tc_get_ref_decap_handle()
1182 struct bnxt_tc_flow_node *flow_node) in bnxt_tc_put_decap_l2_node() argument
1184 struct bnxt_tc_l2_node *decap_l2_node = flow_node->decap_l2_node; in bnxt_tc_put_decap_l2_node()
1189 list_del(&flow_node->decap_l2_list_node); in bnxt_tc_put_decap_l2_node()
1201 struct bnxt_tc_flow_node *flow_node) in bnxt_tc_put_decap_handle() argument
1203 __le32 decap_handle = flow_node->decap_node->tunnel_handle; in bnxt_tc_put_decap_handle()
1207 if (flow_node->decap_l2_node) in bnxt_tc_put_decap_handle()
1208 bnxt_tc_put_decap_l2_node(bp, flow_node); in bnxt_tc_put_decap_handle()
1212 flow_node->decap_node); in bnxt_tc_put_decap_handle()
1293 struct bnxt_tc_flow_node *flow_node, in bnxt_tc_get_decap_handle() argument
1317 flow_node->decap_node = decap_node; in bnxt_tc_get_decap_handle()
1347 rc = bnxt_tc_get_ref_decap_handle(bp, flow, decap_l2_info, flow_node, in bnxt_tc_get_decap_handle()
1364 bnxt_tc_put_decap_l2_node(bp, flow_node); in bnxt_tc_get_decap_handle()
1368 flow_node->decap_node); in bnxt_tc_get_decap_handle()
1391 struct bnxt_tc_flow_node *flow_node, in bnxt_tc_get_encap_handle() argument
1409 flow_node->encap_node = encap_node; in bnxt_tc_get_encap_handle()
1436 struct bnxt_tc_flow_node *flow_node) in bnxt_tc_put_tunnel_handle() argument
1439 bnxt_tc_put_decap_handle(bp, flow_node); in bnxt_tc_put_tunnel_handle()
1441 bnxt_tc_put_encap_handle(bp, flow_node->encap_node); in bnxt_tc_put_tunnel_handle()
1446 struct bnxt_tc_flow_node *flow_node, in bnxt_tc_get_tunnel_handle() argument
1450 return bnxt_tc_get_decap_handle(bp, flow, flow_node, in bnxt_tc_get_tunnel_handle()
1453 return bnxt_tc_get_encap_handle(bp, flow, flow_node, in bnxt_tc_get_tunnel_handle()
1459 struct bnxt_tc_flow_node *flow_node) in __bnxt_tc_del_flow() argument
1465 bnxt_hwrm_cfa_flow_free(bp, flow_node); in __bnxt_tc_del_flow()
1470 bnxt_tc_put_tunnel_handle(bp, &flow_node->flow, flow_node); in __bnxt_tc_del_flow()
1473 bnxt_tc_put_l2_node(bp, flow_node); in __bnxt_tc_del_flow()
1477 rc = rhashtable_remove_fast(&tc_info->flow_table, &flow_node->node, in __bnxt_tc_del_flow()
1483 kfree_rcu(flow_node, rcu); in __bnxt_tc_del_flow()
1604 struct bnxt_tc_flow_node *flow_node; in bnxt_tc_del_flow() local
1606 flow_node = rhashtable_lookup_fast(&tc_info->flow_table, in bnxt_tc_del_flow()
1609 if (!flow_node) in bnxt_tc_del_flow()
1612 return __bnxt_tc_del_flow(bp, flow_node); in bnxt_tc_del_flow()
1620 struct bnxt_tc_flow_node *flow_node; in bnxt_tc_get_flow_stats() local
1624 flow_node = rhashtable_lookup_fast(&tc_info->flow_table, in bnxt_tc_get_flow_stats()
1627 if (!flow_node) in bnxt_tc_get_flow_stats()
1630 flow = &flow_node->flow; in bnxt_tc_get_flow_stats()
1647 struct bnxt_tc_flow_node *flow_node, in bnxt_fill_cfa_stats_req() argument
1653 *flow_id = flow_node->flow_id; in bnxt_fill_cfa_stats_req()
1660 if (flow_node->flow.l2_key.dir == BNXT_DIR_RX) in bnxt_fill_cfa_stats_req()
1668 *flow_handle = flow_node->flow_handle; in bnxt_fill_cfa_stats_req()
1685 struct bnxt_tc_flow_node *flow_node = stats_batch[i].flow_node; in bnxt_hwrm_cfa_flow_stats_get() local
1687 bnxt_fill_cfa_stats_req(bp, flow_node, in bnxt_hwrm_cfa_flow_stats_get()
1754 struct bnxt_tc_flow_node *flow_node = stats_batch[i].flow_node; in bnxt_tc_flow_stats_batch_update() local
1755 struct bnxt_tc_flow *flow = &flow_node->flow; in bnxt_tc_flow_stats_batch_update()
1775 void *flow_node; in bnxt_tc_flow_stats_batch_prep() local
1782 flow_node = rhashtable_walk_next(iter); in bnxt_tc_flow_stats_batch_prep()
1783 if (IS_ERR(flow_node)) { in bnxt_tc_flow_stats_batch_prep()
1785 if (PTR_ERR(flow_node) == -EAGAIN) { in bnxt_tc_flow_stats_batch_prep()
1788 rc = PTR_ERR(flow_node); in bnxt_tc_flow_stats_batch_prep()
1794 if (!flow_node) in bnxt_tc_flow_stats_batch_prep()
1797 stats_batch[i].flow_node = flow_node; in bnxt_tc_flow_stats_batch_prep()