Lines Matching refs:fsp

881 	struct ethtool_rx_flow_spec *fsp = &cmd->fs;  in igc_get_ethtool_nfc_entry()  local
888 if (fsp->location <= rule->sw_idx) in igc_get_ethtool_nfc_entry()
892 if (!rule || fsp->location != rule->sw_idx) in igc_get_ethtool_nfc_entry()
896 fsp->flow_type = ETHER_FLOW; in igc_get_ethtool_nfc_entry()
897 fsp->ring_cookie = rule->action; in igc_get_ethtool_nfc_entry()
899 fsp->h_u.ether_spec.h_proto = rule->filter.etype; in igc_get_ethtool_nfc_entry()
900 fsp->m_u.ether_spec.h_proto = ETHER_TYPE_FULL_MASK; in igc_get_ethtool_nfc_entry()
903 fsp->flow_type |= FLOW_EXT; in igc_get_ethtool_nfc_entry()
904 fsp->h_ext.vlan_tci = rule->filter.vlan_tci; in igc_get_ethtool_nfc_entry()
905 fsp->m_ext.vlan_tci = htons(VLAN_PRIO_MASK); in igc_get_ethtool_nfc_entry()
908 ether_addr_copy(fsp->h_u.ether_spec.h_dest, in igc_get_ethtool_nfc_entry()
913 eth_broadcast_addr(fsp->m_u.ether_spec.h_dest); in igc_get_ethtool_nfc_entry()
916 ether_addr_copy(fsp->h_u.ether_spec.h_source, in igc_get_ethtool_nfc_entry()
921 eth_broadcast_addr(fsp->m_u.ether_spec.h_source); in igc_get_ethtool_nfc_entry()
1352 struct ethtool_rx_flow_spec *fsp = in igc_add_ethtool_nfc_entry() local
1363 if (fsp->ring_cookie == RX_CLS_FLOW_DISC || in igc_add_ethtool_nfc_entry()
1364 fsp->ring_cookie >= adapter->num_rx_queues) { in igc_add_ethtool_nfc_entry()
1370 if (fsp->location >= IGC_MAX_RXNFC_FILTERS) { in igc_add_ethtool_nfc_entry()
1375 if ((fsp->flow_type & ~FLOW_EXT) != ETHER_FLOW) in igc_add_ethtool_nfc_entry()
1382 if (fsp->m_u.ether_spec.h_proto == ETHER_TYPE_FULL_MASK) { in igc_add_ethtool_nfc_entry()
1383 input->filter.etype = fsp->h_u.ether_spec.h_proto; in igc_add_ethtool_nfc_entry()
1388 if (is_broadcast_ether_addr(fsp->m_u.ether_spec.h_source)) { in igc_add_ethtool_nfc_entry()
1391 fsp->h_u.ether_spec.h_source); in igc_add_ethtool_nfc_entry()
1395 if (is_broadcast_ether_addr(fsp->m_u.ether_spec.h_dest)) { in igc_add_ethtool_nfc_entry()
1398 fsp->h_u.ether_spec.h_dest); in igc_add_ethtool_nfc_entry()
1401 if ((fsp->flow_type & FLOW_EXT) && fsp->m_ext.vlan_tci) { in igc_add_ethtool_nfc_entry()
1402 if (fsp->m_ext.vlan_tci != htons(VLAN_PRIO_MASK)) { in igc_add_ethtool_nfc_entry()
1406 input->filter.vlan_tci = fsp->h_ext.vlan_tci; in igc_add_ethtool_nfc_entry()
1410 input->action = fsp->ring_cookie; in igc_add_ethtool_nfc_entry()
1411 input->sw_idx = fsp->location; in igc_add_ethtool_nfc_entry()
1444 struct ethtool_rx_flow_spec *fsp = in igc_del_ethtool_nfc_entry() local
1449 err = igc_update_ethtool_nfc_entry(adapter, NULL, fsp->location); in igc_del_ethtool_nfc_entry()