Searched refs:eth_mask (Results 1 – 8 of 8) sorted by relevance
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | en_fs_ethtool.c | 317 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 D | dpaa2-ethtool.c | 352 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 D | iavf_fdir.h | 103 struct iavf_fdir_eth eth_mask; member
|
H A D | iavf_fdir.c | 41 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 D | iavf_ethtool.c | 1174 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 D | otx2_flows.c | 816 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, ð_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 D | en_ethtool.c | 1351 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 D | bcmgenet.c | 1367 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()
|