Lines Matching refs:fsp

97 	struct ethtool_rx_flow_spec *fsp = &cmd->fs;  in tsnep_rxnfc_get_rule()  local
104 rule = tsnep_get_rule(adapter, fsp->location); in tsnep_rxnfc_get_rule()
111 fsp->flow_type = ETHER_FLOW; in tsnep_rxnfc_get_rule()
112 fsp->ring_cookie = rule->queue_index; in tsnep_rxnfc_get_rule()
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()
172 const struct ethtool_rx_flow_spec *fsp) in tsnep_rxnfc_init_rule() argument
176 rule->queue_index = fsp->ring_cookie; in tsnep_rxnfc_init_rule()
177 rule->location = fsp->location; in tsnep_rxnfc_init_rule()
180 rule->filter.ether_type = ntohs(fsp->h_u.ether_spec.h_proto); in tsnep_rxnfc_init_rule()
205 struct ethtool_rx_flow_spec *fsp = in tsnep_rxnfc_add_rule() local
211 if (fsp->flow_type != ETHER_FLOW || in tsnep_rxnfc_add_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()
220 if (fsp->ring_cookie > in tsnep_rxnfc_add_rule()
227 if (fsp->location != RX_CLS_LOC_ANY && in tsnep_rxnfc_add_rule()
228 fsp->location >= adapter->rxnfc_max) { in tsnep_rxnfc_add_rule()
240 if (fsp->location == RX_CLS_LOC_ANY) { in tsnep_rxnfc_add_rule()
244 fsp->location = retval; in tsnep_rxnfc_add_rule()
247 tsnep_rxnfc_init_rule(rule, fsp); in tsnep_rxnfc_add_rule()
253 old_rule = tsnep_get_rule(adapter, fsp->location); in tsnep_rxnfc_add_rule()
272 struct ethtool_rx_flow_spec *fsp = in tsnep_rxnfc_del_rule() local
278 rule = tsnep_get_rule(adapter, fsp->location); in tsnep_rxnfc_del_rule()