Lines Matching refs:l2_key
391 flow->l2_key.ether_type = match.key->n_proto;
406 ether_addr_copy(flow->l2_key.dmac, match.key->dst);
408 ether_addr_copy(flow->l2_key.smac, match.key->src);
416 flow->l2_key.inner_vlan_tci =
422 flow->l2_key.inner_vlan_tpid = htons(ETH_P_8021Q);
424 flow->l2_key.num_vlans = 1;
686 req->ethertype = flow->l2_key.ether_type;
690 memcpy(req->dmac, flow->l2_key.dmac, ETH_ALEN);
691 memcpy(req->smac, flow->l2_key.smac, ETH_ALEN);
694 if (flow->l2_key.num_vlans > 0) {
700 req->outer_vlan_tci = flow->l2_key.inner_vlan_tci;
708 flow_flags |= flow->l2_key.ether_type == htons(ETH_P_IP) ?
973 struct bnxt_tc_l2_key *l2_key)
978 l2_node = rhashtable_lookup_fast(l2_table, l2_key, ht_params);
986 l2_node->key = *l2_key;
1015 &flow->l2_key);
1057 if (bits_set(&flow->l2_key.smac, sizeof(flow->l2_key.smac)) &&
1062 if (bits_set(&flow->l2_key.dmac, sizeof(flow->l2_key.dmac)) &&
1069 if (bits_set(&flow->l2_key.inner_vlan_tci,
1070 sizeof(flow->l2_key.inner_vlan_tci)) &&
1072 flow->l2_key.inner_vlan_tci)) {
1076 if (bits_set(&flow->l2_key.inner_vlan_tpid,
1077 sizeof(flow->l2_key.inner_vlan_tpid)) &&
1155 struct bnxt_tc_l2_key *l2_key,
1165 l2_key);
1502 flow->l2_key.dir = (bp->pf.fw_fid == src_fid) ? BNXT_DIR_RX : BNXT_DIR_TX;
1672 if (flow_node->flow.l2_key.dir == BNXT_DIR_RX)