Lines Matching defs:fsp

2439 	struct ethtool_rx_flow_spec *fsp = &cmd->fs;
2446 if (fsp->location <= rule->sw_idx)
2450 if (!rule || fsp->location != rule->sw_idx)
2454 fsp->flow_type = ETHER_FLOW;
2455 fsp->ring_cookie = rule->action;
2457 fsp->h_u.ether_spec.h_proto = rule->filter.etype;
2458 fsp->m_u.ether_spec.h_proto = ETHER_TYPE_FULL_MASK;
2461 fsp->flow_type |= FLOW_EXT;
2462 fsp->h_ext.vlan_tci = rule->filter.vlan_tci;
2463 fsp->m_ext.vlan_tci = htons(VLAN_PRIO_MASK);
2466 ether_addr_copy(fsp->h_u.ether_spec.h_dest,
2471 eth_broadcast_addr(fsp->m_u.ether_spec.h_dest);
2474 ether_addr_copy(fsp->h_u.ether_spec.h_source,
2479 eth_broadcast_addr(fsp->m_u.ether_spec.h_source);
2901 struct ethtool_rx_flow_spec *fsp =
2912 if ((fsp->ring_cookie == RX_CLS_FLOW_DISC) ||
2913 (fsp->ring_cookie >= adapter->num_rx_queues)) {
2919 if (fsp->location >= IGB_MAX_RXNFC_FILTERS) {
2924 if ((fsp->flow_type & ~FLOW_EXT) != ETHER_FLOW)
2931 if (fsp->m_u.ether_spec.h_proto == ETHER_TYPE_FULL_MASK) {
2932 input->filter.etype = fsp->h_u.ether_spec.h_proto;
2937 if (is_broadcast_ether_addr(fsp->m_u.ether_spec.h_source)) {
2940 fsp->h_u.ether_spec.h_source);
2944 if (is_broadcast_ether_addr(fsp->m_u.ether_spec.h_dest)) {
2947 fsp->h_u.ether_spec.h_dest);
2950 if ((fsp->flow_type & FLOW_EXT) && fsp->m_ext.vlan_tci) {
2951 if (fsp->m_ext.vlan_tci != htons(VLAN_PRIO_MASK)) {
2955 input->filter.vlan_tci = fsp->h_ext.vlan_tci;
2959 input->action = fsp->ring_cookie;
2960 input->sw_idx = fsp->location;
2997 struct ethtool_rx_flow_spec *fsp =
3002 err = igb_update_ethtool_nfc_entry(adapter, NULL, fsp->location);