Home
last modified time | relevance | path

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

/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A 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()
/openbmc/linux/drivers/net/ethernet/freescale/dpaa2/
H A 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()
/openbmc/linux/drivers/net/ethernet/intel/iavf/
H A Diavf_fdir.h103 struct iavf_fdir_eth eth_mask; member
H A 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()
H A Diavf_ethtool.c1174 fsp->m_u.ether_spec.h_proto = rule->eth_mask.etype; in iavf_get_ethtool_fdir_entry()
1366 fltr->eth_mask.etype = fsp->m_u.ether_spec.h_proto; in iavf_add_fdir_fltr_info()
/openbmc/linux/drivers/net/ethernet/marvell/octeontx2/nic/
H A 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()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx4/
H A 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()
/openbmc/linux/drivers/net/ethernet/broadcom/genet/
H A 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()