Home
last modified time | relevance | path

Searched refs:eth_mask (Results 1 – 8 of 8) sorted by relevance

/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/
Den_fs_ethtool.c317 struct ethhdr *eth_mask = &fs->m_u.ether_spec; in parse_ether() local
320 mask_spec((u8 *)eth_mask, (u8 *)eth_val, sizeof(*eth_mask)); in parse_ether()
321 ether_addr_copy(MLX5E_FTE_ADDR_OF(headers_c, smac_47_16), eth_mask->h_source); in parse_ether()
323 ether_addr_copy(MLX5E_FTE_ADDR_OF(headers_c, dmac_47_16), eth_mask->h_dest); in parse_ether()
325 MLX5E_FTE_SET(headers_c, ethertype, ntohs(eth_mask->h_proto)); in parse_ether()
560 struct ethhdr *eth_mask = &fs->m_u.ether_spec; in validate_ethter() local
563 if (!is_zero_ether_addr(eth_mask->h_dest)) in validate_ethter()
565 if (!is_zero_ether_addr(eth_mask->h_source)) in validate_ethter()
567 if (eth_mask->h_proto) in validate_ethter()
/linux-6.6.21/drivers/net/ethernet/freescale/dpaa2/
Ddpaa2-ethtool.c352 static int dpaa2_eth_prep_eth_rule(struct ethhdr *eth_value, struct ethhdr *eth_mask, in dpaa2_eth_prep_eth_rule() argument
357 if (eth_mask->h_proto) { in dpaa2_eth_prep_eth_rule()
360 *(__be16 *)(mask + off) = eth_mask->h_proto; in dpaa2_eth_prep_eth_rule()
364 if (!is_zero_ether_addr(eth_mask->h_source)) { in dpaa2_eth_prep_eth_rule()
367 ether_addr_copy(mask + off, eth_mask->h_source); in dpaa2_eth_prep_eth_rule()
371 if (!is_zero_ether_addr(eth_mask->h_dest)) { in dpaa2_eth_prep_eth_rule()
374 ether_addr_copy(mask + off, eth_mask->h_dest); in dpaa2_eth_prep_eth_rule()
/linux-6.6.21/drivers/net/ethernet/intel/iavf/
Diavf_fdir.h103 struct iavf_fdir_eth eth_mask; member
Diavf_fdir.c40 if (fltr->eth_mask.etype && fltr->eth_mask.etype != htons(U16_MAX)) in iavf_validate_fdir_fltr_masks()
573 if (fltr->eth_mask.etype == htons(U16_MAX)) { in iavf_fill_fdir_eth_hdr()
Diavf_ethtool.c1173 fsp->m_u.ether_spec.h_proto = rule->eth_mask.etype; in iavf_get_ethtool_fdir_entry()
1365 fltr->eth_mask.etype = fsp->m_u.ether_spec.h_proto; in iavf_add_fdir_fltr_info()
/linux-6.6.21/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_flows.c816 struct ethhdr *eth_mask = &fsp->m_u.ether_spec; in otx2_prepare_flow_request() local
827 if (!is_zero_ether_addr(eth_mask->h_source)) { in otx2_prepare_flow_request()
829 ether_addr_copy(pmask->smac, eth_mask->h_source); in otx2_prepare_flow_request()
832 if (!is_zero_ether_addr(eth_mask->h_dest)) { in otx2_prepare_flow_request()
834 ether_addr_copy(pmask->dmac, eth_mask->h_dest); in otx2_prepare_flow_request()
840 memcpy(&pmask->etype, &eth_mask->h_proto, in otx2_prepare_flow_request()
943 struct ethhdr *eth_mask = &fsp->m_u.ether_spec; in otx2_is_flow_rule_dmacfilter() local
958 if (is_zero_ether_addr(eth_mask->h_dest) && in otx2_is_flow_rule_dmacfilter()
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx4/
Den_ethtool.c1351 struct ethhdr *eth_mask; in mlx4_en_validate_flow() local
1385 eth_mask = &cmd->fs.m_u.ether_spec; in mlx4_en_validate_flow()
1387 if (!is_zero_ether_addr(eth_mask->h_source)) in mlx4_en_validate_flow()
1391 if (!is_broadcast_ether_addr(eth_mask->h_dest)) in mlx4_en_validate_flow()
1394 if (!all_zeros_or_all_ones(eth_mask->h_proto)) in mlx4_en_validate_flow()
/linux-6.6.21/drivers/net/ethernet/broadcom/genet/
Dbcmgenet.c1367 struct ethhdr *eth_mask; in bcmgenet_validate_flow() local
1391 eth_mask = &cmd->fs.m_u.ether_spec; in bcmgenet_validate_flow()
1393 if (VALIDATE_MASK(eth_mask->h_dest) || in bcmgenet_validate_flow()
1394 VALIDATE_MASK(eth_mask->h_source) || in bcmgenet_validate_flow()
1395 VALIDATE_MASK(eth_mask->h_proto)) { in bcmgenet_validate_flow()