Home
last modified time | relevance | path

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

/linux-6.12.1/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.12.1/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.12.1/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_flows.c818 struct ethhdr *eth_mask = &fsp->m_u.ether_spec; in otx2_prepare_flow_request() local
829 if (!is_zero_ether_addr(eth_mask->h_source)) { in otx2_prepare_flow_request()
831 ether_addr_copy(pmask->smac, eth_mask->h_source); in otx2_prepare_flow_request()
834 if (!is_zero_ether_addr(eth_mask->h_dest)) { in otx2_prepare_flow_request()
836 ether_addr_copy(pmask->dmac, eth_mask->h_dest); in otx2_prepare_flow_request()
842 memcpy(&pmask->etype, &eth_mask->h_proto, in otx2_prepare_flow_request()
945 struct ethhdr *eth_mask = &fsp->m_u.ether_spec; in otx2_is_flow_rule_dmacfilter() local
960 if (is_zero_ether_addr(eth_mask->h_dest) && in otx2_is_flow_rule_dmacfilter()
/linux-6.12.1/drivers/net/ethernet/intel/iavf/
Diavf_fdir.h103 struct iavf_fdir_eth eth_mask; member
Diavf_fdir.c41 if (fltr->eth_mask.etype && fltr->eth_mask.etype != htons(U16_MAX)) in iavf_validate_fdir_fltr_masks()
574 if (fltr->eth_mask.etype == htons(U16_MAX)) { in iavf_fill_fdir_eth_hdr()
Diavf_ethtool.c1032 fsp->m_u.ether_spec.h_proto = rule->eth_mask.etype; in iavf_get_ethtool_fdir_entry()
1227 fltr->eth_mask.etype = fsp->m_u.ether_spec.h_proto; in iavf_add_fdir_fltr_info()
/linux-6.12.1/drivers/net/ethernet/intel/ice/
Dice_fdir.h167 struct ethhdr eth, eth_mask; member
Dice_ethtool_fdir.c146 fsp->m_u.ether_spec = rule->eth_mask; in ice_get_ethtool_fdir_entry()
1963 input->eth_mask = fsp->m_u.ether_spec; in ice_set_fdir_input_set()
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx4/
Den_ethtool.c1332 struct ethhdr *eth_mask; in mlx4_en_validate_flow() local
1366 eth_mask = &cmd->fs.m_u.ether_spec; in mlx4_en_validate_flow()
1368 if (!is_zero_ether_addr(eth_mask->h_source)) in mlx4_en_validate_flow()
1372 if (!is_broadcast_ether_addr(eth_mask->h_dest)) in mlx4_en_validate_flow()
1375 if (!all_zeros_or_all_ones(eth_mask->h_proto)) in mlx4_en_validate_flow()
/linux-6.12.1/drivers/net/ethernet/broadcom/genet/
Dbcmgenet.c1365 struct ethhdr *eth_mask; in bcmgenet_validate_flow() local
1389 eth_mask = &cmd->fs.m_u.ether_spec; in bcmgenet_validate_flow()
1391 if (VALIDATE_MASK(eth_mask->h_dest) || in bcmgenet_validate_flow()
1392 VALIDATE_MASK(eth_mask->h_source) || in bcmgenet_validate_flow()
1393 VALIDATE_MASK(eth_mask->h_proto)) { in bcmgenet_validate_flow()