• Home
  • Raw
  • Download

Lines Matching refs:fsp

3090 static int i40e_parse_rx_flow_user_data(struct ethtool_rx_flow_spec *fsp,  in i40e_parse_rx_flow_user_data()  argument
3099 if (!(fsp->flow_type & FLOW_EXT)) in i40e_parse_rx_flow_user_data()
3102 value = be64_to_cpu(*((__be64 *)fsp->h_ext.data)); in i40e_parse_rx_flow_user_data()
3103 mask = be64_to_cpu(*((__be64 *)fsp->m_ext.data)); in i40e_parse_rx_flow_user_data()
3130 static void i40e_fill_rx_flow_user_data(struct ethtool_rx_flow_spec *fsp, in i40e_fill_rx_flow_user_data() argument
3142 fsp->flow_type |= FLOW_EXT; in i40e_fill_rx_flow_user_data()
3144 *((__be64 *)fsp->h_ext.data) = cpu_to_be64(value); in i40e_fill_rx_flow_user_data()
3145 *((__be64 *)fsp->m_ext.data) = cpu_to_be64(mask); in i40e_fill_rx_flow_user_data()
3197 struct ethtool_rx_flow_spec *fsp = in i40e_get_ethtool_fdir_entry() local
3207 if (fsp->location <= rule->fd_id) in i40e_get_ethtool_fdir_entry()
3211 if (!rule || fsp->location != rule->fd_id) in i40e_get_ethtool_fdir_entry()
3214 fsp->flow_type = rule->flow_type; in i40e_get_ethtool_fdir_entry()
3215 if (fsp->flow_type == IP_USER_FLOW) { in i40e_get_ethtool_fdir_entry()
3216 fsp->h_u.usr_ip4_spec.ip_ver = ETH_RX_NFC_IP4; in i40e_get_ethtool_fdir_entry()
3217 fsp->h_u.usr_ip4_spec.proto = 0; in i40e_get_ethtool_fdir_entry()
3218 fsp->m_u.usr_ip4_spec.proto = 0; in i40e_get_ethtool_fdir_entry()
3224 fsp->h_u.tcp_ip4_spec.psrc = rule->dst_port; in i40e_get_ethtool_fdir_entry()
3225 fsp->h_u.tcp_ip4_spec.pdst = rule->src_port; in i40e_get_ethtool_fdir_entry()
3226 fsp->h_u.tcp_ip4_spec.ip4src = rule->dst_ip; in i40e_get_ethtool_fdir_entry()
3227 fsp->h_u.tcp_ip4_spec.ip4dst = rule->src_ip; in i40e_get_ethtool_fdir_entry()
3258 fsp->m_u.tcp_ip4_spec.ip4src = htonl(0xFFFFFFFF); in i40e_get_ethtool_fdir_entry()
3261 fsp->m_u.tcp_ip4_spec.ip4dst = htonl(0xFFFFFFFF); in i40e_get_ethtool_fdir_entry()
3264 fsp->m_u.tcp_ip4_spec.psrc = htons(0xFFFF); in i40e_get_ethtool_fdir_entry()
3267 fsp->m_u.tcp_ip4_spec.pdst = htons(0xFFFF); in i40e_get_ethtool_fdir_entry()
3270 fsp->ring_cookie = RX_CLS_FLOW_DISC; in i40e_get_ethtool_fdir_entry()
3272 fsp->ring_cookie = rule->q_index; in i40e_get_ethtool_fdir_entry()
3285 fsp->ring_cookie |= ring_vf; in i40e_get_ethtool_fdir_entry()
3295 i40e_fill_rx_flow_user_data(fsp, &userdef); in i40e_get_ethtool_fdir_entry()
3642 struct ethtool_rx_flow_spec *fsp = in i40e_del_fdir_entry() local
3654 ret = i40e_update_ethtool_fdir_entry(vsi, NULL, fsp->location, cmd); in i40e_del_fdir_entry()
3909 static const char *i40e_flow_str(struct ethtool_rx_flow_spec *fsp) in i40e_flow_str() argument
3911 switch (fsp->flow_type & ~FLOW_EXT) { in i40e_flow_str()
4052 struct ethtool_rx_flow_spec *fsp, in i40e_check_fdir_input_set() argument
4066 switch (fsp->flow_type & ~FLOW_EXT) { in i40e_check_fdir_input_set()
4101 switch (fsp->flow_type & ~FLOW_EXT) { in i40e_check_fdir_input_set()
4107 tcp_ip4_spec = &fsp->m_u.tcp_ip4_spec; in i40e_check_fdir_input_set()
4147 usr_ip4_spec = &fsp->m_u.usr_ip4_spec; in i40e_check_fdir_input_set()
4285 i40e_flow_str(fsp)); in i40e_check_fdir_input_set()
4312 i40e_flow_str(fsp), in i40e_check_fdir_input_set()
4443 struct ethtool_rx_flow_spec *fsp; in i40e_add_fdir_ethtool() local
4467 fsp = (struct ethtool_rx_flow_spec *)&cmd->fs; in i40e_add_fdir_ethtool()
4470 if (i40e_parse_rx_flow_user_data(fsp, &userdef)) in i40e_add_fdir_ethtool()
4474 if (fsp->flow_type & FLOW_MAC_EXT) in i40e_add_fdir_ethtool()
4477 ret = i40e_check_fdir_input_set(vsi, fsp, &userdef); in i40e_add_fdir_ethtool()
4481 if (fsp->location >= (pf->hw.func_caps.fd_filters_best_effort + in i40e_add_fdir_ethtool()
4489 if (fsp->ring_cookie == RX_CLS_FLOW_DISC) { in i40e_add_fdir_ethtool()
4492 u32 ring = ethtool_get_flow_spec_ring(fsp->ring_cookie); in i40e_add_fdir_ethtool()
4493 u8 vf = ethtool_get_flow_spec_ring_vf(fsp->ring_cookie); in i40e_add_fdir_ethtool()
4518 input->fd_id = fsp->location; in i40e_add_fdir_ethtool()
4524 input->dst_ip = fsp->h_u.tcp_ip4_spec.ip4src; in i40e_add_fdir_ethtool()
4525 input->src_ip = fsp->h_u.tcp_ip4_spec.ip4dst; in i40e_add_fdir_ethtool()
4526 input->flow_type = fsp->flow_type & ~FLOW_EXT; in i40e_add_fdir_ethtool()
4527 input->ip4_proto = fsp->h_u.usr_ip4_spec.proto; in i40e_add_fdir_ethtool()
4532 input->dst_port = fsp->h_u.tcp_ip4_spec.psrc; in i40e_add_fdir_ethtool()
4533 input->src_port = fsp->h_u.tcp_ip4_spec.pdst; in i40e_add_fdir_ethtool()
4534 input->dst_ip = fsp->h_u.tcp_ip4_spec.ip4src; in i40e_add_fdir_ethtool()
4535 input->src_ip = fsp->h_u.tcp_ip4_spec.ip4dst; in i40e_add_fdir_ethtool()
4552 i40e_update_ethtool_fdir_entry(vsi, input, fsp->location, NULL); in i40e_add_fdir_ethtool()