Home
last modified time | relevance | path

Searched refs:l2_key (Results 1 – 3 of 3) sorted by relevance

/linux/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_tc.c391 flow->l2_key.ether_type = match.key->n_proto; in bnxt_tc_parse_flow()
406 ether_addr_copy(flow->l2_key.dmac, match.key->dst); in bnxt_tc_parse_flow()
408 ether_addr_copy(flow->l2_key.smac, match.key->src); in bnxt_tc_parse_flow()
416 flow->l2_key.inner_vlan_tci = in bnxt_tc_parse_flow()
422 flow->l2_key.inner_vlan_tpid = htons(ETH_P_8021Q); in bnxt_tc_parse_flow()
424 flow->l2_key.num_vlans = 1; in bnxt_tc_parse_flow()
686 req->ethertype = flow->l2_key.ether_type; in bnxt_hwrm_cfa_flow_alloc()
690 memcpy(req->dmac, flow->l2_key.dmac, ETH_ALEN); in bnxt_hwrm_cfa_flow_alloc()
691 memcpy(req->smac, flow->l2_key.smac, ETH_ALEN); in bnxt_hwrm_cfa_flow_alloc()
694 if (flow->l2_key.num_vlans > 0) { in bnxt_hwrm_cfa_flow_alloc()
[all …]
H A Dbnxt_tc.h124 struct bnxt_tc_l2_key l2_key; member
/linux/drivers/net/ethernet/intel/ice/
H A Dice_tc_lib.c222 hdr->l2_key.dst_mac); in ice_tc_fill_tunnel_outer()
299 if (fltr->inner_headers.l2_key.n_proto == htons(ETH_P_IP) && in ice_tc_fill_tunnel_outer()
317 if (fltr->inner_headers.l2_key.n_proto == htons(ETH_P_IPV6) && in ice_tc_fill_tunnel_outer()
405 list[i].h_u.ethertype.ethtype_id = headers->l2_key.n_proto; in ice_tc_fill_rules()
412 struct ice_tc_l2_hdr *l2_key, *l2_mask; in ice_tc_fill_rules() local
414 l2_key = &headers->l2_key; in ice_tc_fill_rules()
420 l2_key->dst_mac); in ice_tc_fill_rules()
426 l2_key->src_mac); in ice_tc_fill_rules()
554 if (headers->l2_key.n_proto == htons(ETH_P_IP) && in ice_tc_fill_rules()
573 if (headers->l2_key.n_proto == htons(ETH_P_IPV6) && in ice_tc_fill_rules()
[all …]