Home
last modified time | relevance | path

Searched refs:usr_ip6_spec (Results 1 – 11 of 11) sorted by relevance

/linux/drivers/net/ethernet/intel/iavf/
H A Diavf_ethtool.c984 memcpy(fsp->h_u.usr_ip6_spec.ip6src, &rule->ip_data.v6_addrs.src_ip, in iavf_get_ethtool_fdir_entry()
986 memcpy(fsp->h_u.usr_ip6_spec.ip6dst, &rule->ip_data.v6_addrs.dst_ip, in iavf_get_ethtool_fdir_entry()
991 memcpy(fsp->m_u.usr_ip6_spec.ip6src, &rule->ip_mask.v6_addrs.src_ip, in iavf_get_ethtool_fdir_entry()
993 memcpy(fsp->m_u.usr_ip6_spec.ip6dst, &rule->ip_mask.v6_addrs.dst_ip, in iavf_get_ethtool_fdir_entry()
1015 memcpy(fsp->h_u.usr_ip6_spec.ip6src, &rule->ip_data.v6_addrs.src_ip, in iavf_get_ethtool_fdir_entry()
1017 memcpy(fsp->h_u.usr_ip6_spec.ip6dst, &rule->ip_data.v6_addrs.dst_ip, in iavf_get_ethtool_fdir_entry()
1019 fsp->h_u.usr_ip6_spec.l4_4_bytes = rule->ip_data.l4_header; in iavf_get_ethtool_fdir_entry()
1020 fsp->h_u.usr_ip6_spec.tclass = rule->ip_data.tclass; in iavf_get_ethtool_fdir_entry()
1021 fsp->h_u.usr_ip6_spec.l4_proto = rule->ip_data.proto; in iavf_get_ethtool_fdir_entry()
1022 memcpy(fsp->m_u.usr_ip6_spec.ip6src, &rule->ip_mask.v6_addrs.src_ip, in iavf_get_ethtool_fdir_entry()
[all …]
/linux/drivers/net/ethernet/intel/ice/
H A Dice_ethtool_fdir.c175 fsp->h_u.usr_ip6_spec.l4_4_bytes = rule->ip.v6.l4_header; in ice_get_ethtool_fdir_entry()
176 fsp->h_u.usr_ip6_spec.tclass = rule->ip.v6.tc; in ice_get_ethtool_fdir_entry()
177 fsp->h_u.usr_ip6_spec.l4_proto = rule->ip.v6.proto; in ice_get_ethtool_fdir_entry()
186 fsp->m_u.usr_ip6_spec.l4_4_bytes = rule->mask.v6.l4_header; in ice_get_ethtool_fdir_entry()
187 fsp->m_u.usr_ip6_spec.tclass = rule->mask.v6.tc; in ice_get_ethtool_fdir_entry()
188 fsp->m_u.usr_ip6_spec.l4_proto = rule->mask.v6.proto; in ice_get_ethtool_fdir_entry()
1157 struct ethtool_usrip6_spec *usr_ip6_spec, in ice_set_fdir_ip6_usr_seg() argument
1161 if (usr_ip6_spec->l4_4_bytes) in ice_set_fdir_ip6_usr_seg()
1164 if (usr_ip6_spec->tclass) in ice_set_fdir_ip6_usr_seg()
1167 if (usr_ip6_spec->l4_proto) in ice_set_fdir_ip6_usr_seg()
[all …]
/linux/drivers/net/ethernet/google/gve/
H A Dgve_flow_rule.c177 memcpy(&rule->key.src_ip, fsp->h_u.usr_ip6_spec.ip6src, in gve_generate_flow_rule()
179 memcpy(&rule->key.dst_ip, fsp->h_u.usr_ip6_spec.ip6dst, in gve_generate_flow_rule()
182 memcpy(&rule->mask.src_ip, fsp->m_u.usr_ip6_spec.ip6src, in gve_generate_flow_rule()
184 memcpy(&rule->mask.dst_ip, fsp->m_u.usr_ip6_spec.ip6dst, in gve_generate_flow_rule()
/linux/drivers/net/ethernet/netronome/nfp/
H A Dnfp_net_ethtool.c1372 fs->h_u.usr_ip6_spec.ip6src[i] = entry->key.sip6[i]; in nfp_net_fs_to_ethtool()
1373 fs->h_u.usr_ip6_spec.ip6dst[i] = entry->key.dip6[i]; in nfp_net_fs_to_ethtool()
1374 fs->m_u.usr_ip6_spec.ip6src[i] = entry->msk.sip6[i]; in nfp_net_fs_to_ethtool()
1375 fs->m_u.usr_ip6_spec.ip6dst[i] = entry->msk.dip6[i]; in nfp_net_fs_to_ethtool()
1377 fs->h_u.usr_ip6_spec.l4_proto = entry->key.l4_proto; in nfp_net_fs_to_ethtool()
1378 fs->m_u.usr_ip6_spec.l4_proto = entry->msk.l4_proto; in nfp_net_fs_to_ethtool()
1555 entry->msk.sip6[i] = fs->m_u.usr_ip6_spec.ip6src[i]; in nfp_net_fs_from_ethtool()
1556 entry->msk.dip6[i] = fs->m_u.usr_ip6_spec.ip6dst[i]; in nfp_net_fs_from_ethtool()
1557 entry->key.sip6[i] = fs->h_u.usr_ip6_spec.ip6src[i] & entry->msk.sip6[i]; in nfp_net_fs_from_ethtool()
1558 entry->key.dip6[i] = fs->h_u.usr_ip6_spec.ip6dst[i] & entry->msk.dip6[i]; in nfp_net_fs_from_ethtool()
[all …]
/linux/drivers/net/ethernet/sfc/siena/
H A Dethtool_common.c648 struct ethtool_usrip6_spec *uip6_entry = &rule->h_u.usr_ip6_spec; in efx_ethtool_get_class_rule()
649 struct ethtool_usrip6_spec *uip6_mask = &rule->m_u.usr_ip6_spec; in efx_ethtool_get_class_rule()
908 struct ethtool_usrip6_spec *uip6_entry = &rule->h_u.usr_ip6_spec; in efx_ethtool_set_class_rule()
909 struct ethtool_usrip6_spec *uip6_mask = &rule->m_u.usr_ip6_spec; in efx_ethtool_set_class_rule()
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_fs_ethtool.c276 struct ethtool_usrip6_spec *l3_mask = &fs->m_u.usr_ip6_spec; in parse_ip6()
277 struct ethtool_usrip6_spec *l3_val = &fs->h_u.usr_ip6_spec; in parse_ip6()
612 struct ethtool_usrip6_spec *l3_mask = &fs->m_u.usr_ip6_spec; in validate_ip6()
/linux/drivers/net/ethernet/intel/i40e/
H A Di40e_ethtool.c4299 struct ethtool_usrip6_spec *usr_ip6_spec; in i40e_check_fdir_input_set() local
4492 usr_ip6_spec = &fsp->m_u.usr_ip6_spec; in i40e_check_fdir_input_set()
4495 if (ipv6_addr_equal((struct in6_addr *)&usr_ip6_spec->ip6src, in i40e_check_fdir_input_set()
4499 &usr_ip6_spec->ip6src)) in i40e_check_fdir_input_set()
4505 if (ipv6_addr_equal((struct in6_addr *)&usr_ip6_spec->ip6dst, in i40e_check_fdir_input_set()
4509 &usr_ip6_spec->ip6dst)) in i40e_check_fdir_input_set()
4514 if (usr_ip6_spec->l4_4_bytes) in i40e_check_fdir_input_set()
4518 if (usr_ip6_spec->tclass) in i40e_check_fdir_input_set()
4522 if (usr_ip6_spec->l4_proto) in i40e_check_fdir_input_set()
4896 input->ipl4_proto = fsp->h_u.usr_ip6_spec.l4_proto; in i40e_add_fdir_ethtool()
/linux/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_ethtool.c1159 fs->h_u.usr_ip6_spec.l4_proto = BNXT_IP_PROTO_WILDCARD; in bnxt_grxclsrule()
1160 fs->m_u.usr_ip6_spec.l4_proto = 0; in bnxt_grxclsrule()
1163 fs->h_u.usr_ip6_spec.l4_proto = IPPROTO_ICMPV6; in bnxt_grxclsrule()
1164 fs->m_u.usr_ip6_spec.l4_proto = BNXT_IP_PROTO_FULL_MASK; in bnxt_grxclsrule()
1340 if (!bnxt_verify_ntuple_ip6_flow(&fs->h_u.usr_ip6_spec, in bnxt_add_ntuple_cls_rule()
1341 &fs->m_u.usr_ip6_spec)) in bnxt_add_ntuple_cls_rule()
1390 struct ethtool_usrip6_spec *ip_spec = &fs->h_u.usr_ip6_spec; in bnxt_add_ntuple_cls_rule()
1391 struct ethtool_usrip6_spec *ip_mask = &fs->m_u.usr_ip6_spec; in bnxt_add_ntuple_cls_rule()
/linux/include/uapi/linux/
H A Dethtool.h1346 struct ethtool_usrip6_spec usr_ip6_spec; member
/linux/drivers/net/ethernet/aquantia/atlantic/
H A Daq_filters.c36 switch (fsp->h_u.usr_ip6_spec.l4_proto) { in aq_rule_is_approve()
/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/
H A Dhclge_main.c6198 ret = hclge_fd_check_ip6_tuple(&fs->h_u.usr_ip6_spec, in hclge_fd_check_spec()
6314 fs->h_u.usr_ip6_spec.ip6src); in hclge_fd_get_ip6_tuple()
6316 fs->m_u.usr_ip6_spec.ip6src); in hclge_fd_get_ip6_tuple()
6319 fs->h_u.usr_ip6_spec.ip6dst); in hclge_fd_get_ip6_tuple()
6321 fs->m_u.usr_ip6_spec.ip6dst); in hclge_fd_get_ip6_tuple()
6323 rule->tuples.ip_proto = fs->h_u.usr_ip6_spec.l4_proto; in hclge_fd_get_ip6_tuple()
6324 rule->tuples_mask.ip_proto = fs->m_u.usr_ip6_spec.l4_proto; in hclge_fd_get_ip6_tuple()
6937 hclge_fd_get_ip6_info(rule, &fs->h_u.usr_ip6_spec, in hclge_get_fd_rule_info()
6938 &fs->m_u.usr_ip6_spec); in hclge_get_fd_rule_info()