Lines Matching refs:fsp

2438 	struct ethtool_rx_flow_spec *fsp = &cmd->fs;  in igb_get_ethtool_nfc_entry()  local
2445 if (fsp->location <= rule->sw_idx) in igb_get_ethtool_nfc_entry()
2449 if (!rule || fsp->location != rule->sw_idx) in igb_get_ethtool_nfc_entry()
2453 fsp->flow_type = ETHER_FLOW; in igb_get_ethtool_nfc_entry()
2454 fsp->ring_cookie = rule->action; in igb_get_ethtool_nfc_entry()
2456 fsp->h_u.ether_spec.h_proto = rule->filter.etype; in igb_get_ethtool_nfc_entry()
2457 fsp->m_u.ether_spec.h_proto = ETHER_TYPE_FULL_MASK; in igb_get_ethtool_nfc_entry()
2460 fsp->flow_type |= FLOW_EXT; in igb_get_ethtool_nfc_entry()
2461 fsp->h_ext.vlan_tci = rule->filter.vlan_tci; in igb_get_ethtool_nfc_entry()
2462 fsp->m_ext.vlan_tci = htons(VLAN_PRIO_MASK); in igb_get_ethtool_nfc_entry()
2465 ether_addr_copy(fsp->h_u.ether_spec.h_dest, in igb_get_ethtool_nfc_entry()
2470 eth_broadcast_addr(fsp->m_u.ether_spec.h_dest); in igb_get_ethtool_nfc_entry()
2473 ether_addr_copy(fsp->h_u.ether_spec.h_source, in igb_get_ethtool_nfc_entry()
2478 eth_broadcast_addr(fsp->m_u.ether_spec.h_source); in igb_get_ethtool_nfc_entry()
2901 struct ethtool_rx_flow_spec *fsp = in igb_add_ethtool_nfc_entry() local
2912 if ((fsp->ring_cookie == RX_CLS_FLOW_DISC) || in igb_add_ethtool_nfc_entry()
2913 (fsp->ring_cookie >= adapter->num_rx_queues)) { in igb_add_ethtool_nfc_entry()
2919 if (fsp->location >= IGB_MAX_RXNFC_FILTERS) { in igb_add_ethtool_nfc_entry()
2924 if ((fsp->flow_type & ~FLOW_EXT) != ETHER_FLOW) in igb_add_ethtool_nfc_entry()
2931 if (fsp->m_u.ether_spec.h_proto == ETHER_TYPE_FULL_MASK) { in igb_add_ethtool_nfc_entry()
2932 input->filter.etype = fsp->h_u.ether_spec.h_proto; in igb_add_ethtool_nfc_entry()
2937 if (is_broadcast_ether_addr(fsp->m_u.ether_spec.h_source)) { in igb_add_ethtool_nfc_entry()
2940 fsp->h_u.ether_spec.h_source); in igb_add_ethtool_nfc_entry()
2944 if (is_broadcast_ether_addr(fsp->m_u.ether_spec.h_dest)) { in igb_add_ethtool_nfc_entry()
2947 fsp->h_u.ether_spec.h_dest); in igb_add_ethtool_nfc_entry()
2950 if ((fsp->flow_type & FLOW_EXT) && fsp->m_ext.vlan_tci) { in igb_add_ethtool_nfc_entry()
2951 if (fsp->m_ext.vlan_tci != htons(VLAN_PRIO_MASK)) { in igb_add_ethtool_nfc_entry()
2955 input->filter.vlan_tci = fsp->h_ext.vlan_tci; in igb_add_ethtool_nfc_entry()
2959 input->action = fsp->ring_cookie; in igb_add_ethtool_nfc_entry()
2960 input->sw_idx = fsp->location; in igb_add_ethtool_nfc_entry()
2993 struct ethtool_rx_flow_spec *fsp = in igb_del_ethtool_nfc_entry() local
2998 err = igb_update_ethtool_nfc_entry(adapter, NULL, fsp->location); in igb_del_ethtool_nfc_entry()