Lines Matching refs:fsp

2049 	struct ethtool_rx_flow_spec *fsp =  in i40e_get_ethtool_fdir_entry()  local
2056 if (fsp->location <= rule->fd_id) in i40e_get_ethtool_fdir_entry()
2060 if (!rule || fsp->location != rule->fd_id) in i40e_get_ethtool_fdir_entry()
2063 fsp->flow_type = rule->flow_type; in i40e_get_ethtool_fdir_entry()
2064 if (fsp->flow_type == IP_USER_FLOW) { in i40e_get_ethtool_fdir_entry()
2065 fsp->h_u.usr_ip4_spec.ip_ver = ETH_RX_NFC_IP4; in i40e_get_ethtool_fdir_entry()
2066 fsp->h_u.usr_ip4_spec.proto = 0; in i40e_get_ethtool_fdir_entry()
2067 fsp->m_u.usr_ip4_spec.proto = 0; in i40e_get_ethtool_fdir_entry()
2073 fsp->h_u.tcp_ip4_spec.psrc = rule->dst_port; in i40e_get_ethtool_fdir_entry()
2074 fsp->h_u.tcp_ip4_spec.pdst = rule->src_port; in i40e_get_ethtool_fdir_entry()
2075 fsp->h_u.tcp_ip4_spec.ip4src = rule->dst_ip[0]; in i40e_get_ethtool_fdir_entry()
2076 fsp->h_u.tcp_ip4_spec.ip4dst = rule->src_ip[0]; in i40e_get_ethtool_fdir_entry()
2079 fsp->ring_cookie = RX_CLS_FLOW_DISC; in i40e_get_ethtool_fdir_entry()
2081 fsp->ring_cookie = rule->q_index; in i40e_get_ethtool_fdir_entry()
2088 fsp->h_ext.data[1] = htonl(vsi->vf_id); in i40e_get_ethtool_fdir_entry()
2089 fsp->m_ext.data[1] = htonl(0x1); in i40e_get_ethtool_fdir_entry()
2353 struct ethtool_rx_flow_spec *fsp = in i40e_del_fdir_entry() local
2365 ret = i40e_update_ethtool_fdir_entry(vsi, NULL, fsp->location, cmd); in i40e_del_fdir_entry()
2382 struct ethtool_rx_flow_spec *fsp; in i40e_add_fdir_ethtool() local
2406 fsp = (struct ethtool_rx_flow_spec *)&cmd->fs; in i40e_add_fdir_ethtool()
2408 if (fsp->location >= (pf->hw.func_caps.fd_filters_best_effort + in i40e_add_fdir_ethtool()
2413 if ((fsp->ring_cookie != RX_CLS_FLOW_DISC) && in i40e_add_fdir_ethtool()
2414 (fsp->ring_cookie >= vsi->num_queue_pairs)) in i40e_add_fdir_ethtool()
2422 input->fd_id = fsp->location; in i40e_add_fdir_ethtool()
2424 if (fsp->ring_cookie == RX_CLS_FLOW_DISC) in i40e_add_fdir_ethtool()
2430 input->q_index = fsp->ring_cookie; in i40e_add_fdir_ethtool()
2436 input->flow_type = fsp->flow_type; in i40e_add_fdir_ethtool()
2437 input->ip4_proto = fsp->h_u.usr_ip4_spec.proto; in i40e_add_fdir_ethtool()
2442 input->dst_port = fsp->h_u.tcp_ip4_spec.psrc; in i40e_add_fdir_ethtool()
2443 input->src_port = fsp->h_u.tcp_ip4_spec.pdst; in i40e_add_fdir_ethtool()
2444 input->dst_ip[0] = fsp->h_u.tcp_ip4_spec.ip4src; in i40e_add_fdir_ethtool()
2445 input->src_ip[0] = fsp->h_u.tcp_ip4_spec.ip4dst; in i40e_add_fdir_ethtool()
2447 if (ntohl(fsp->m_ext.data[1])) { in i40e_add_fdir_ethtool()
2448 if (ntohl(fsp->h_ext.data[1]) >= pf->num_alloc_vfs) { in i40e_add_fdir_ethtool()
2452 vf_id = ntohl(fsp->h_ext.data[1]); in i40e_add_fdir_ethtool()
2466 i40e_update_ethtool_fdir_entry(vsi, input, fsp->location, NULL); in i40e_add_fdir_ethtool()