Lines Matching refs:flow_node
715 struct bnxt_tc_flow_node *flow_node) in bnxt_tc_put_l2_node() argument
717 struct bnxt_tc_l2_node *l2_node = flow_node->l2_node; in bnxt_tc_put_l2_node()
722 list_del(&flow_node->l2_list_node); in bnxt_tc_put_l2_node()
771 struct bnxt_tc_flow_node *flow_node, in bnxt_tc_get_ref_flow_handle() argument
800 flow_node->l2_node = l2_node; in bnxt_tc_get_ref_flow_handle()
801 list_add(&flow_node->l2_list_node, &l2_node->common_l2_flows); in bnxt_tc_get_ref_flow_handle()
921 struct bnxt_tc_flow_node *flow_node, in bnxt_tc_get_ref_decap_handle() argument
951 flow_node->decap_l2_node = decap_l2_node; in bnxt_tc_get_ref_decap_handle()
952 list_add(&flow_node->decap_l2_list_node, in bnxt_tc_get_ref_decap_handle()
959 struct bnxt_tc_flow_node *flow_node) in bnxt_tc_put_decap_l2_node() argument
961 struct bnxt_tc_l2_node *decap_l2_node = flow_node->decap_l2_node; in bnxt_tc_put_decap_l2_node()
966 list_del(&flow_node->decap_l2_list_node); in bnxt_tc_put_decap_l2_node()
978 struct bnxt_tc_flow_node *flow_node) in bnxt_tc_put_decap_handle() argument
980 __le32 decap_handle = flow_node->decap_node->tunnel_handle; in bnxt_tc_put_decap_handle()
984 if (flow_node->decap_l2_node) in bnxt_tc_put_decap_handle()
985 bnxt_tc_put_decap_l2_node(bp, flow_node); in bnxt_tc_put_decap_handle()
989 flow_node->decap_node); in bnxt_tc_put_decap_handle()
1070 struct bnxt_tc_flow_node *flow_node, in bnxt_tc_get_decap_handle() argument
1094 flow_node->decap_node = decap_node; in bnxt_tc_get_decap_handle()
1124 rc = bnxt_tc_get_ref_decap_handle(bp, flow, decap_l2_info, flow_node, in bnxt_tc_get_decap_handle()
1141 bnxt_tc_put_decap_l2_node(bp, flow_node); in bnxt_tc_get_decap_handle()
1145 flow_node->decap_node); in bnxt_tc_get_decap_handle()
1168 struct bnxt_tc_flow_node *flow_node, in bnxt_tc_get_encap_handle() argument
1186 flow_node->encap_node = encap_node; in bnxt_tc_get_encap_handle()
1213 struct bnxt_tc_flow_node *flow_node) in bnxt_tc_put_tunnel_handle() argument
1216 bnxt_tc_put_decap_handle(bp, flow_node); in bnxt_tc_put_tunnel_handle()
1218 bnxt_tc_put_encap_handle(bp, flow_node->encap_node); in bnxt_tc_put_tunnel_handle()
1223 struct bnxt_tc_flow_node *flow_node, in bnxt_tc_get_tunnel_handle() argument
1227 return bnxt_tc_get_decap_handle(bp, flow, flow_node, in bnxt_tc_get_tunnel_handle()
1230 return bnxt_tc_get_encap_handle(bp, flow, flow_node, in bnxt_tc_get_tunnel_handle()
1236 struct bnxt_tc_flow_node *flow_node) in __bnxt_tc_del_flow() argument
1242 bnxt_hwrm_cfa_flow_free(bp, flow_node->flow_handle); in __bnxt_tc_del_flow()
1247 bnxt_tc_put_tunnel_handle(bp, &flow_node->flow, flow_node); in __bnxt_tc_del_flow()
1250 bnxt_tc_put_l2_node(bp, flow_node); in __bnxt_tc_del_flow()
1254 rc = rhashtable_remove_fast(&tc_info->flow_table, &flow_node->node, in __bnxt_tc_del_flow()
1260 kfree_rcu(flow_node, rcu); in __bnxt_tc_del_flow()
1373 struct bnxt_tc_flow_node *flow_node; in bnxt_tc_del_flow() local
1375 flow_node = rhashtable_lookup_fast(&tc_info->flow_table, in bnxt_tc_del_flow()
1378 if (!flow_node) in bnxt_tc_del_flow()
1381 return __bnxt_tc_del_flow(bp, flow_node); in bnxt_tc_del_flow()
1389 struct bnxt_tc_flow_node *flow_node; in bnxt_tc_get_flow_stats() local
1393 flow_node = rhashtable_lookup_fast(&tc_info->flow_table, in bnxt_tc_get_flow_stats()
1396 if (!flow_node) in bnxt_tc_get_flow_stats()
1399 flow = &flow_node->flow; in bnxt_tc_get_flow_stats()
1427 struct bnxt_tc_flow_node *flow_node = stats_batch[i].flow_node; in bnxt_hwrm_cfa_flow_stats_get() local
1429 req_flow_handles[i] = flow_node->flow_handle; in bnxt_hwrm_cfa_flow_stats_get()
1493 struct bnxt_tc_flow_node *flow_node = stats_batch[i].flow_node; in bnxt_tc_flow_stats_batch_update() local
1494 struct bnxt_tc_flow *flow = &flow_node->flow; in bnxt_tc_flow_stats_batch_update()
1514 void *flow_node; in bnxt_tc_flow_stats_batch_prep() local
1521 flow_node = rhashtable_walk_next(iter); in bnxt_tc_flow_stats_batch_prep()
1522 if (IS_ERR(flow_node)) { in bnxt_tc_flow_stats_batch_prep()
1524 if (PTR_ERR(flow_node) == -EAGAIN) { in bnxt_tc_flow_stats_batch_prep()
1527 rc = PTR_ERR(flow_node); in bnxt_tc_flow_stats_batch_prep()
1533 if (!flow_node) in bnxt_tc_flow_stats_batch_prep()
1536 stats_batch[i].flow_node = flow_node; in bnxt_tc_flow_stats_batch_prep()