Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/
Den_fs_ethtool.c293 struct ethhdr *eth_mask = &fs->m_u.ether_spec; in parse_ether() local
296 mask_spec((u8 *)eth_mask, (u8 *)eth_val, sizeof(*eth_mask)); in parse_ether()
297 ether_addr_copy(MLX5E_FTE_ADDR_OF(headers_c, smac_47_16), eth_mask->h_source); in parse_ether()
299 ether_addr_copy(MLX5E_FTE_ADDR_OF(headers_c, dmac_47_16), eth_mask->h_dest); in parse_ether()
301 MLX5E_FTE_SET(headers_c, ethertype, ntohs(eth_mask->h_proto)); in parse_ether()
501 struct ethhdr *eth_mask = &fs->m_u.ether_spec; in validate_ethter() local
504 if (!is_zero_ether_addr(eth_mask->h_dest)) in validate_ethter()
506 if (!is_zero_ether_addr(eth_mask->h_source)) in validate_ethter()
508 if (eth_mask->h_proto) in validate_ethter()
/Linux-v5.4/drivers/net/ethernet/freescale/dpaa2/
Ddpaa2-ethtool.c274 static int prep_eth_rule(struct ethhdr *eth_value, struct ethhdr *eth_mask, in prep_eth_rule() argument
279 if (eth_mask->h_proto) { in prep_eth_rule()
282 *(__be16 *)(mask + off) = eth_mask->h_proto; in prep_eth_rule()
286 if (!is_zero_ether_addr(eth_mask->h_source)) { in prep_eth_rule()
289 ether_addr_copy(mask + off, eth_mask->h_source); in prep_eth_rule()
293 if (!is_zero_ether_addr(eth_mask->h_dest)) { in prep_eth_rule()
296 ether_addr_copy(mask + off, eth_mask->h_dest); in prep_eth_rule()
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx4/
Den_ethtool.c1323 struct ethhdr *eth_mask; in mlx4_en_validate_flow() local
1357 eth_mask = &cmd->fs.m_u.ether_spec; in mlx4_en_validate_flow()
1359 if (!is_zero_ether_addr(eth_mask->h_source)) in mlx4_en_validate_flow()
1363 if (!is_broadcast_ether_addr(eth_mask->h_dest)) in mlx4_en_validate_flow()
1366 if (!all_zeros_or_all_ones(eth_mask->h_proto)) in mlx4_en_validate_flow()