Lines Matching refs:fsp

1882 	struct ethtool_rx_flow_spec *fsp =  in i40e_get_ethtool_fdir_entry()  local
1889 if (fsp->location <= rule->fd_id) in i40e_get_ethtool_fdir_entry()
1893 if (!rule || fsp->location != rule->fd_id) in i40e_get_ethtool_fdir_entry()
1896 fsp->flow_type = rule->flow_type; in i40e_get_ethtool_fdir_entry()
1897 if (fsp->flow_type == IP_USER_FLOW) { in i40e_get_ethtool_fdir_entry()
1898 fsp->h_u.usr_ip4_spec.ip_ver = ETH_RX_NFC_IP4; in i40e_get_ethtool_fdir_entry()
1899 fsp->h_u.usr_ip4_spec.proto = 0; in i40e_get_ethtool_fdir_entry()
1900 fsp->m_u.usr_ip4_spec.proto = 0; in i40e_get_ethtool_fdir_entry()
1906 fsp->h_u.tcp_ip4_spec.psrc = rule->dst_port; in i40e_get_ethtool_fdir_entry()
1907 fsp->h_u.tcp_ip4_spec.pdst = rule->src_port; in i40e_get_ethtool_fdir_entry()
1908 fsp->h_u.tcp_ip4_spec.ip4src = rule->dst_ip[0]; in i40e_get_ethtool_fdir_entry()
1909 fsp->h_u.tcp_ip4_spec.ip4dst = rule->src_ip[0]; in i40e_get_ethtool_fdir_entry()
1912 fsp->ring_cookie = RX_CLS_FLOW_DISC; in i40e_get_ethtool_fdir_entry()
1914 fsp->ring_cookie = rule->q_index; in i40e_get_ethtool_fdir_entry()
1921 fsp->h_ext.data[1] = htonl(vsi->vf_id); in i40e_get_ethtool_fdir_entry()
1922 fsp->m_ext.data[1] = htonl(0x1); in i40e_get_ethtool_fdir_entry()
2186 struct ethtool_rx_flow_spec *fsp = in i40e_del_fdir_entry() local
2198 ret = i40e_update_ethtool_fdir_entry(vsi, NULL, fsp->location, cmd); in i40e_del_fdir_entry()
2215 struct ethtool_rx_flow_spec *fsp; in i40e_add_fdir_ethtool() local
2239 fsp = (struct ethtool_rx_flow_spec *)&cmd->fs; in i40e_add_fdir_ethtool()
2241 if (fsp->location >= (pf->hw.func_caps.fd_filters_best_effort + in i40e_add_fdir_ethtool()
2246 if ((fsp->ring_cookie != RX_CLS_FLOW_DISC) && in i40e_add_fdir_ethtool()
2247 (fsp->ring_cookie >= vsi->num_queue_pairs)) in i40e_add_fdir_ethtool()
2255 input->fd_id = fsp->location; in i40e_add_fdir_ethtool()
2257 if (fsp->ring_cookie == RX_CLS_FLOW_DISC) in i40e_add_fdir_ethtool()
2263 input->q_index = fsp->ring_cookie; in i40e_add_fdir_ethtool()
2269 input->flow_type = fsp->flow_type; in i40e_add_fdir_ethtool()
2270 input->ip4_proto = fsp->h_u.usr_ip4_spec.proto; in i40e_add_fdir_ethtool()
2275 input->dst_port = fsp->h_u.tcp_ip4_spec.psrc; in i40e_add_fdir_ethtool()
2276 input->src_port = fsp->h_u.tcp_ip4_spec.pdst; in i40e_add_fdir_ethtool()
2277 input->dst_ip[0] = fsp->h_u.tcp_ip4_spec.ip4src; in i40e_add_fdir_ethtool()
2278 input->src_ip[0] = fsp->h_u.tcp_ip4_spec.ip4dst; in i40e_add_fdir_ethtool()
2280 if (ntohl(fsp->m_ext.data[1])) { in i40e_add_fdir_ethtool()
2281 if (ntohl(fsp->h_ext.data[1]) >= pf->num_alloc_vfs) { in i40e_add_fdir_ethtool()
2285 vf_id = ntohl(fsp->h_ext.data[1]); in i40e_add_fdir_ethtool()
2299 i40e_update_ethtool_fdir_entry(vsi, input, fsp->location, NULL); in i40e_add_fdir_ethtool()