Lines Matching refs:flow_node

307 				   struct bnxt_tc_flow_node *flow_node)  in bnxt_hwrm_cfa_flow_free()  argument
314 req.ext_flow_handle = flow_node->ext_flow_handle; in bnxt_hwrm_cfa_flow_free()
316 req.flow_handle = flow_node->flow_handle; in bnxt_hwrm_cfa_flow_free()
389 struct bnxt_tc_flow_node *flow_node) in bnxt_hwrm_cfa_flow_alloc() argument
509 flow_node->flow_handle = resp->flow_handle; in bnxt_hwrm_cfa_flow_alloc()
511 flow_node->ext_flow_handle = resp->ext_flow_handle; in bnxt_hwrm_cfa_flow_alloc()
512 flow_node->flow_id = resp->flow_id; in bnxt_hwrm_cfa_flow_alloc()
672 struct bnxt_tc_flow_node *flow_node) in bnxt_tc_put_l2_node() argument
674 struct bnxt_tc_l2_node *l2_node = flow_node->l2_node; in bnxt_tc_put_l2_node()
679 list_del(&flow_node->l2_list_node); in bnxt_tc_put_l2_node()
728 struct bnxt_tc_flow_node *flow_node, in bnxt_tc_get_ref_flow_handle() argument
757 flow_node->l2_node = l2_node; in bnxt_tc_get_ref_flow_handle()
758 list_add(&flow_node->l2_list_node, &l2_node->common_l2_flows); in bnxt_tc_get_ref_flow_handle()
878 struct bnxt_tc_flow_node *flow_node, in bnxt_tc_get_ref_decap_handle() argument
908 flow_node->decap_l2_node = decap_l2_node; in bnxt_tc_get_ref_decap_handle()
909 list_add(&flow_node->decap_l2_list_node, in bnxt_tc_get_ref_decap_handle()
916 struct bnxt_tc_flow_node *flow_node) in bnxt_tc_put_decap_l2_node() argument
918 struct bnxt_tc_l2_node *decap_l2_node = flow_node->decap_l2_node; in bnxt_tc_put_decap_l2_node()
923 list_del(&flow_node->decap_l2_list_node); in bnxt_tc_put_decap_l2_node()
935 struct bnxt_tc_flow_node *flow_node) in bnxt_tc_put_decap_handle() argument
937 __le32 decap_handle = flow_node->decap_node->tunnel_handle; in bnxt_tc_put_decap_handle()
941 if (flow_node->decap_l2_node) in bnxt_tc_put_decap_handle()
942 bnxt_tc_put_decap_l2_node(bp, flow_node); in bnxt_tc_put_decap_handle()
946 flow_node->decap_node); in bnxt_tc_put_decap_handle()
1027 struct bnxt_tc_flow_node *flow_node, in bnxt_tc_get_decap_handle() argument
1051 flow_node->decap_node = decap_node; in bnxt_tc_get_decap_handle()
1081 rc = bnxt_tc_get_ref_decap_handle(bp, flow, decap_l2_info, flow_node, in bnxt_tc_get_decap_handle()
1098 bnxt_tc_put_decap_l2_node(bp, flow_node); in bnxt_tc_get_decap_handle()
1102 flow_node->decap_node); in bnxt_tc_get_decap_handle()
1125 struct bnxt_tc_flow_node *flow_node, in bnxt_tc_get_encap_handle() argument
1143 flow_node->encap_node = encap_node; in bnxt_tc_get_encap_handle()
1170 struct bnxt_tc_flow_node *flow_node) in bnxt_tc_put_tunnel_handle() argument
1173 bnxt_tc_put_decap_handle(bp, flow_node); in bnxt_tc_put_tunnel_handle()
1175 bnxt_tc_put_encap_handle(bp, flow_node->encap_node); in bnxt_tc_put_tunnel_handle()
1180 struct bnxt_tc_flow_node *flow_node, in bnxt_tc_get_tunnel_handle() argument
1184 return bnxt_tc_get_decap_handle(bp, flow, flow_node, in bnxt_tc_get_tunnel_handle()
1187 return bnxt_tc_get_encap_handle(bp, flow, flow_node, in bnxt_tc_get_tunnel_handle()
1193 struct bnxt_tc_flow_node *flow_node) in __bnxt_tc_del_flow() argument
1199 bnxt_hwrm_cfa_flow_free(bp, flow_node); in __bnxt_tc_del_flow()
1204 bnxt_tc_put_tunnel_handle(bp, &flow_node->flow, flow_node); in __bnxt_tc_del_flow()
1207 bnxt_tc_put_l2_node(bp, flow_node); in __bnxt_tc_del_flow()
1211 rc = rhashtable_remove_fast(&tc_info->flow_table, &flow_node->node, in __bnxt_tc_del_flow()
1217 kfree_rcu(flow_node, rcu); in __bnxt_tc_del_flow()
1337 struct bnxt_tc_flow_node *flow_node; in bnxt_tc_del_flow() local
1339 flow_node = rhashtable_lookup_fast(&tc_info->flow_table, in bnxt_tc_del_flow()
1342 if (!flow_node) in bnxt_tc_del_flow()
1345 return __bnxt_tc_del_flow(bp, flow_node); in bnxt_tc_del_flow()
1353 struct bnxt_tc_flow_node *flow_node; in bnxt_tc_get_flow_stats() local
1357 flow_node = rhashtable_lookup_fast(&tc_info->flow_table, in bnxt_tc_get_flow_stats()
1360 if (!flow_node) in bnxt_tc_get_flow_stats()
1363 flow = &flow_node->flow; in bnxt_tc_get_flow_stats()
1380 struct bnxt_tc_flow_node *flow_node, in bnxt_fill_cfa_stats_req() argument
1386 *flow_id = flow_node->flow_id; in bnxt_fill_cfa_stats_req()
1393 if (flow_node->flow.l2_key.dir == BNXT_DIR_RX) in bnxt_fill_cfa_stats_req()
1401 *flow_handle = flow_node->flow_handle; in bnxt_fill_cfa_stats_req()
1418 struct bnxt_tc_flow_node *flow_node = stats_batch[i].flow_node; in bnxt_hwrm_cfa_flow_stats_get() local
1420 bnxt_fill_cfa_stats_req(bp, flow_node, in bnxt_hwrm_cfa_flow_stats_get()
1487 struct bnxt_tc_flow_node *flow_node = stats_batch[i].flow_node; in bnxt_tc_flow_stats_batch_update() local
1488 struct bnxt_tc_flow *flow = &flow_node->flow; in bnxt_tc_flow_stats_batch_update()
1508 void *flow_node; in bnxt_tc_flow_stats_batch_prep() local
1515 flow_node = rhashtable_walk_next(iter); in bnxt_tc_flow_stats_batch_prep()
1516 if (IS_ERR(flow_node)) { in bnxt_tc_flow_stats_batch_prep()
1518 if (PTR_ERR(flow_node) == -EAGAIN) { in bnxt_tc_flow_stats_batch_prep()
1521 rc = PTR_ERR(flow_node); in bnxt_tc_flow_stats_batch_prep()
1527 if (!flow_node) in bnxt_tc_flow_stats_batch_prep()
1530 stats_batch[i].flow_node = flow_node; in bnxt_tc_flow_stats_batch_prep()