Lines Matching refs:l2_key

387 		flow->l2_key.ether_type = match.key->n_proto;  in bnxt_tc_parse_flow()
402 ether_addr_copy(flow->l2_key.dmac, match.key->dst); in bnxt_tc_parse_flow()
404 ether_addr_copy(flow->l2_key.smac, match.key->src); in bnxt_tc_parse_flow()
412 flow->l2_key.inner_vlan_tci = in bnxt_tc_parse_flow()
418 flow->l2_key.inner_vlan_tpid = htons(ETH_P_8021Q); in bnxt_tc_parse_flow()
420 flow->l2_key.num_vlans = 1; in bnxt_tc_parse_flow()
682 req->ethertype = flow->l2_key.ether_type; in bnxt_hwrm_cfa_flow_alloc()
686 memcpy(req->dmac, flow->l2_key.dmac, ETH_ALEN); in bnxt_hwrm_cfa_flow_alloc()
687 memcpy(req->smac, flow->l2_key.smac, ETH_ALEN); in bnxt_hwrm_cfa_flow_alloc()
690 if (flow->l2_key.num_vlans > 0) { in bnxt_hwrm_cfa_flow_alloc()
696 req->outer_vlan_tci = flow->l2_key.inner_vlan_tci; in bnxt_hwrm_cfa_flow_alloc()
704 flow_flags |= flow->l2_key.ether_type == htons(ETH_P_IP) ? in bnxt_hwrm_cfa_flow_alloc()
969 struct bnxt_tc_l2_key *l2_key) in bnxt_tc_get_l2_node() argument
974 l2_node = rhashtable_lookup_fast(l2_table, l2_key, ht_params); in bnxt_tc_get_l2_node()
982 l2_node->key = *l2_key; in bnxt_tc_get_l2_node()
1011 &flow->l2_key); in bnxt_tc_get_ref_flow_handle()
1053 if (bits_set(&flow->l2_key.smac, sizeof(flow->l2_key.smac)) && in bnxt_tc_can_offload()
1058 if (bits_set(&flow->l2_key.dmac, sizeof(flow->l2_key.dmac)) && in bnxt_tc_can_offload()
1065 if (bits_set(&flow->l2_key.inner_vlan_tci, in bnxt_tc_can_offload()
1066 sizeof(flow->l2_key.inner_vlan_tci)) && in bnxt_tc_can_offload()
1068 flow->l2_key.inner_vlan_tci)) { in bnxt_tc_can_offload()
1072 if (bits_set(&flow->l2_key.inner_vlan_tpid, in bnxt_tc_can_offload()
1073 sizeof(flow->l2_key.inner_vlan_tpid)) && in bnxt_tc_can_offload()
1151 struct bnxt_tc_l2_key *l2_key, in bnxt_tc_get_ref_decap_handle() argument
1161 l2_key); in bnxt_tc_get_ref_decap_handle()
1498 flow->l2_key.dir = (bp->pf.fw_fid == src_fid) ? BNXT_DIR_RX : BNXT_DIR_TX; in bnxt_tc_set_flow_dir()
1668 if (flow_node->flow.l2_key.dir == BNXT_DIR_RX) in bnxt_fill_cfa_stats_req()