| /linux/drivers/net/ethernet/engleder/ |
| A D | tsnep_rxnfc.c | 115 fsp->h_u.ether_spec.h_proto = htons(rule->filter.ether_type); in tsnep_rxnfc_get_rule() 116 fsp->m_u.ether_spec.h_proto = ETHER_TYPE_FULL_MASK; in tsnep_rxnfc_get_rule() 180 rule->filter.ether_type = ntohs(fsp->h_u.ether_spec.h_proto); in tsnep_rxnfc_init_rule() 212 !is_zero_ether_addr(fsp->m_u.ether_spec.h_dest) || in tsnep_rxnfc_add_rule() 213 !is_zero_ether_addr(fsp->m_u.ether_spec.h_source) || in tsnep_rxnfc_add_rule() 214 fsp->m_u.ether_spec.h_proto != ETHER_TYPE_FULL_MASK) { in tsnep_rxnfc_add_rule()
|
| /linux/drivers/net/ethernet/broadcom/asp2/ |
| A D | bcmasp.c | 425 &fs->h_u.ether_spec.h_dest, in bcmasp_netfilt_wr_to_hw() 426 &fs->m_u.ether_spec.h_dest, in bcmasp_netfilt_wr_to_hw() 427 sizeof(fs->h_u.ether_spec.h_dest)); in bcmasp_netfilt_wr_to_hw() 429 &fs->h_u.ether_spec.h_source, in bcmasp_netfilt_wr_to_hw() 430 &fs->m_u.ether_spec.h_source, in bcmasp_netfilt_wr_to_hw() 431 sizeof(fs->h_u.ether_spec.h_source)); in bcmasp_netfilt_wr_to_hw() 433 &fs->h_u.ether_spec.h_proto, in bcmasp_netfilt_wr_to_hw() 434 &fs->m_u.ether_spec.h_proto, in bcmasp_netfilt_wr_to_hw() 435 sizeof(fs->h_u.ether_spec.h_proto)); in bcmasp_netfilt_wr_to_hw()
|
| /linux/drivers/net/ethernet/marvell/octeontx2/nic/ |
| A D | otx2_flows.c | 818 struct ethhdr *eth_mask = &fsp->m_u.ether_spec; in otx2_prepare_flow_request() 819 struct ethhdr *eth_hdr = &fsp->h_u.ether_spec; in otx2_prepare_flow_request() 945 struct ethhdr *eth_mask = &fsp->m_u.ether_spec; in otx2_is_flow_rule_dmacfilter() 946 struct ethhdr *eth_hdr = &fsp->h_u.ether_spec; in otx2_is_flow_rule_dmacfilter() 1072 eth_hdr = &pf_mac->flow_spec.h_u.ether_spec; in otx2_add_flow_with_pfmac() 1142 eth_hdr = &flow->flow_spec.h_u.ether_spec; in otx2_add_flow() 1238 eth_hdr = &iter->flow_spec.h_u.ether_spec; in otx2_update_rem_pfmac() 1275 struct ethhdr *eth_hdr = &flow->flow_spec.h_u.ether_spec; in otx2_remove_flow() 1510 eth_hdr = &iter->flow_spec.h_u.ether_spec; in otx2_dmacflt_reinstall_flows()
|
| /linux/drivers/net/ethernet/intel/igc/ |
| A D | igc_ethtool.c | 978 fsp->h_u.ether_spec.h_proto = htons(rule->filter.etype); in igc_ethtool_get_nfc_rule() 979 fsp->m_u.ether_spec.h_proto = ETHER_TYPE_FULL_MASK; in igc_ethtool_get_nfc_rule() 995 ether_addr_copy(fsp->h_u.ether_spec.h_dest, in igc_ethtool_get_nfc_rule() 997 eth_broadcast_addr(fsp->m_u.ether_spec.h_dest); in igc_ethtool_get_nfc_rule() 1001 ether_addr_copy(fsp->h_u.ether_spec.h_source, in igc_ethtool_get_nfc_rule() 1003 eth_broadcast_addr(fsp->m_u.ether_spec.h_source); in igc_ethtool_get_nfc_rule() 1230 if (fsp->m_u.ether_spec.h_proto == ETHER_TYPE_FULL_MASK) { in igc_ethtool_init_nfc_rule() 1231 rule->filter.etype = ntohs(fsp->h_u.ether_spec.h_proto); in igc_ethtool_init_nfc_rule() 1241 fsp->h_u.ether_spec.h_source); in igc_ethtool_init_nfc_rule() 1244 if (is_broadcast_ether_addr(fsp->m_u.ether_spec.h_dest)) { in igc_ethtool_init_nfc_rule() [all …]
|
| /linux/drivers/net/ethernet/netronome/nfp/ |
| A D | nfp_net_ethtool.c | 1381 fs->h_u.ether_spec.h_proto = entry->key.l3_proto; in nfp_net_fs_to_ethtool() 1382 fs->m_u.ether_spec.h_proto = entry->msk.l3_proto; in nfp_net_fs_to_ethtool() 1564 entry->msk.l3_proto = fs->m_u.ether_spec.h_proto; in nfp_net_fs_from_ethtool() 1565 entry->key.l3_proto = fs->h_u.ether_spec.h_proto & entry->msk.l3_proto; in nfp_net_fs_from_ethtool() 1657 if (fs->h_u.ether_spec.h_proto == htons(ETH_P_IP) || in nfp_net_fs_add() 1658 fs->h_u.ether_spec.h_proto == htons(ETH_P_IPV6)) { in nfp_net_fs_add() 1663 unsupp_mask = !is_zero_ether_addr(fs->m_u.ether_spec.h_dest) || in nfp_net_fs_add() 1664 !is_zero_ether_addr(fs->m_u.ether_spec.h_source) || in nfp_net_fs_add() 1665 (fs->m_u.ether_spec.h_proto != htons(0xffff)); in nfp_net_fs_add()
|
| /linux/drivers/net/ethernet/intel/igb/ |
| A D | igb_ethtool.c | 2451 fsp->h_u.ether_spec.h_proto = rule->filter.etype; in igb_get_ethtool_nfc_entry() 2452 fsp->m_u.ether_spec.h_proto = ETHER_TYPE_FULL_MASK; in igb_get_ethtool_nfc_entry() 2460 ether_addr_copy(fsp->h_u.ether_spec.h_dest, in igb_get_ethtool_nfc_entry() 2465 eth_broadcast_addr(fsp->m_u.ether_spec.h_dest); in igb_get_ethtool_nfc_entry() 2468 ether_addr_copy(fsp->h_u.ether_spec.h_source, in igb_get_ethtool_nfc_entry() 2473 eth_broadcast_addr(fsp->m_u.ether_spec.h_source); in igb_get_ethtool_nfc_entry() 2925 if (fsp->m_u.ether_spec.h_proto == ETHER_TYPE_FULL_MASK) { in igb_add_ethtool_nfc_entry() 2926 input->filter.etype = fsp->h_u.ether_spec.h_proto; in igb_add_ethtool_nfc_entry() 2934 fsp->h_u.ether_spec.h_source); in igb_add_ethtool_nfc_entry() 2938 if (is_broadcast_ether_addr(fsp->m_u.ether_spec.h_dest)) { in igb_add_ethtool_nfc_entry() [all …]
|
| /linux/drivers/net/ethernet/intel/ice/ |
| A D | ice_ethtool_fdir.c | 145 fsp->h_u.ether_spec = rule->eth; in ice_get_ethtool_fdir_entry() 146 fsp->m_u.ether_spec = rule->eth_mask; in ice_get_ethtool_fdir_entry() 1221 if (fsp->m_u.ether_spec.h_proto && fsp->m_ext.vlan_tci && in ice_fdir_vlan_valid() 1390 ret = ice_set_ether_flow_seg(dev, seg, &fsp->m_u.ether_spec); in ice_cfg_fdir_xtrct_seq() 1962 input->eth = fsp->h_u.ether_spec; in ice_set_fdir_input_set() 1963 input->eth_mask = fsp->m_u.ether_spec; in ice_set_fdir_input_set()
|
| /linux/drivers/net/ethernet/sfc/siena/ |
| A D | ethtool_common.c | 656 struct ethhdr *mac_entry = &rule->h_u.ether_spec; in efx_ethtool_get_class_rule() 657 struct ethhdr *mac_mask = &rule->m_u.ether_spec; in efx_ethtool_get_class_rule() 917 struct ethhdr *mac_entry = &rule->h_u.ether_spec; in efx_ethtool_set_class_rule() 918 struct ethhdr *mac_mask = &rule->m_u.ether_spec; in efx_ethtool_set_class_rule()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/ |
| A D | en_fs_ethtool.c | 317 struct ethhdr *eth_mask = &fs->m_u.ether_spec; in parse_ether() 318 struct ethhdr *eth_val = &fs->h_u.ether_spec; in parse_ether() 560 struct ethhdr *eth_mask = &fs->m_u.ether_spec; in validate_ethter()
|
| /linux/drivers/net/ethernet/sfc/ |
| A D | ethtool_common.c | 656 struct ethhdr *mac_entry = &rule->h_u.ether_spec; in efx_ethtool_get_class_rule() 657 struct ethhdr *mac_mask = &rule->m_u.ether_spec; in efx_ethtool_get_class_rule() 929 struct ethhdr *mac_entry = &rule->h_u.ether_spec; in efx_ethtool_set_class_rule() 930 struct ethhdr *mac_mask = &rule->m_u.ether_spec; in efx_ethtool_set_class_rule()
|
| /linux/drivers/net/ethernet/sfc/falcon/ |
| A D | ethtool.c | 803 struct ethhdr *mac_entry = &rule->h_u.ether_spec; in ef4_ethtool_get_class_rule() 804 struct ethhdr *mac_mask = &rule->m_u.ether_spec; in ef4_ethtool_get_class_rule() 1039 struct ethhdr *mac_entry = &rule->h_u.ether_spec; in ef4_ethtool_set_class_rule() 1040 struct ethhdr *mac_mask = &rule->m_u.ether_spec; in ef4_ethtool_set_class_rule()
|
| /linux/drivers/net/ethernet/broadcom/genet/ |
| A D | bcmgenet.c | 615 &fs->h_u.ether_spec.h_dest, in bcmgenet_hfb_create_rxnfc_filter() 616 &fs->m_u.ether_spec.h_dest, in bcmgenet_hfb_create_rxnfc_filter() 617 sizeof(fs->h_u.ether_spec.h_dest)); in bcmgenet_hfb_create_rxnfc_filter() 619 &fs->h_u.ether_spec.h_source, in bcmgenet_hfb_create_rxnfc_filter() 620 &fs->m_u.ether_spec.h_source, in bcmgenet_hfb_create_rxnfc_filter() 621 sizeof(fs->h_u.ether_spec.h_source)); in bcmgenet_hfb_create_rxnfc_filter() 623 &fs->h_u.ether_spec.h_proto, in bcmgenet_hfb_create_rxnfc_filter() 624 &fs->m_u.ether_spec.h_proto, in bcmgenet_hfb_create_rxnfc_filter() 625 sizeof(fs->h_u.ether_spec.h_proto)); in bcmgenet_hfb_create_rxnfc_filter() 1389 eth_mask = &cmd->fs.m_u.ether_spec; in bcmgenet_validate_flow()
|
| /linux/include/uapi/linux/ |
| A D | ethtool.h | 1347 struct ethhdr ether_spec; member 1587 struct ethhdr ether_spec; member
|
| /linux/drivers/net/ethernet/intel/iavf/ |
| A D | iavf_ethtool.c | 1031 fsp->h_u.ether_spec.h_proto = rule->eth_data.etype; in iavf_get_ethtool_fdir_entry() 1032 fsp->m_u.ether_spec.h_proto = rule->eth_mask.etype; in iavf_get_ethtool_fdir_entry() 1226 fltr->eth_data.etype = fsp->h_u.ether_spec.h_proto; in iavf_add_fdir_fltr_info() 1227 fltr->eth_mask.etype = fsp->m_u.ether_spec.h_proto; in iavf_add_fdir_fltr_info()
|
| /linux/drivers/net/ethernet/aquantia/atlantic/ |
| A D | aq_filters.c | 142 fsp->m_u.ether_spec.h_proto == 0U) { in aq_check_approve_fl2() 323 data->ethertype = be16_to_cpu(fsp->h_u.ether_spec.h_proto); in aq_set_data_fl2()
|
| /linux/drivers/net/ethernet/freescale/dpaa2/ |
| A D | dpaa2-ethtool.c | 529 err = dpaa2_eth_prep_eth_rule(&fs->h_u.ether_spec, &fs->m_u.ether_spec, in dpaa2_eth_prep_cls_rule()
|
| /linux/net/ethtool/ |
| A D | ioctl.c | 3461 const struct ethhdr *ether_spec, *ether_m_spec; in ethtool_rx_flow_rule_create() local 3463 ether_spec = &fs->h_u.ether_spec; in ethtool_rx_flow_rule_create() 3464 ether_m_spec = &fs->m_u.ether_spec; in ethtool_rx_flow_rule_create() 3468 ether_spec->h_source); in ethtool_rx_flow_rule_create() 3474 ether_spec->h_dest); in ethtool_rx_flow_rule_create() 3479 match->key.basic.n_proto = ether_spec->h_proto; in ethtool_rx_flow_rule_create()
|
| /linux/drivers/net/ethernet/freescale/enetc/ |
| A D | enetc_ethtool.c | 567 eth_h = &fs->h_u.ether_spec; in enetc_set_cls_entry() 568 eth_m = &fs->m_u.ether_spec; in enetc_set_cls_entry()
|
| /linux/drivers/net/ethernet/mellanox/mlx4/ |
| A D | en_ethtool.c | 1366 eth_mask = &cmd->fs.m_u.ether_spec; in mlx4_en_validate_flow() 1571 eth_spec = &cmd->fs.h_u.ether_spec; in mlx4_en_ethtool_to_net_trans_rule()
|
| /linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
| A D | hclge_main.c | 6219 ret = hclge_fd_check_ether_tuple(&fs->h_u.ether_spec, in hclge_fd_check_spec() 6346 ether_addr_copy(rule->tuples.src_mac, fs->h_u.ether_spec.h_source); in hclge_fd_get_ether_tuple() 6347 ether_addr_copy(rule->tuples_mask.src_mac, fs->m_u.ether_spec.h_source); in hclge_fd_get_ether_tuple() 6349 ether_addr_copy(rule->tuples.dst_mac, fs->h_u.ether_spec.h_dest); in hclge_fd_get_ether_tuple() 6350 ether_addr_copy(rule->tuples_mask.dst_mac, fs->m_u.ether_spec.h_dest); in hclge_fd_get_ether_tuple() 6352 rule->tuples.ether_proto = be16_to_cpu(fs->h_u.ether_spec.h_proto); in hclge_fd_get_ether_tuple() 6353 rule->tuples_mask.ether_proto = be16_to_cpu(fs->m_u.ether_spec.h_proto); in hclge_fd_get_ether_tuple() 6869 eth_zero_addr(fs->m_u.ether_spec.h_dest); in hclge_fd_get_ext_info() 6871 ether_addr_copy(fs->m_u.ether_spec.h_dest, in hclge_fd_get_ext_info() 6955 hclge_fd_get_ether_info(rule, &fs->h_u.ether_spec, in hclge_get_fd_rule_info() [all …]
|
| /linux/drivers/net/ethernet/broadcom/bnxt/ |
| A D | bnxt_ethtool.c | 1096 struct ethhdr *h_ether = &fs->h_u.ether_spec; in bnxt_grxclsrule() 1097 struct ethhdr *m_ether = &fs->m_u.ether_spec; in bnxt_grxclsrule() 1242 struct ethhdr *h_ether = &fs->h_u.ether_spec; in bnxt_add_l2_cls_rule() 1243 struct ethhdr *m_ether = &fs->m_u.ether_spec; in bnxt_add_l2_cls_rule()
|
| /linux/drivers/net/dsa/mv88e6xxx/ |
| A D | chip.c | 2376 struct ethhdr *mac_entry = &fs->h_u.ether_spec; in mv88e6xxx_policy_insert() 2377 struct ethhdr *mac_mask = &fs->m_u.ether_spec; in mv88e6xxx_policy_insert()
|