Lines Matching refs:fsp
2433 struct ethtool_rx_flow_spec *fsp = &cmd->fs; in igb_get_ethtool_nfc_entry() local
2440 if (fsp->location <= rule->sw_idx) in igb_get_ethtool_nfc_entry()
2444 if (!rule || fsp->location != rule->sw_idx) in igb_get_ethtool_nfc_entry()
2448 fsp->flow_type = ETHER_FLOW; in igb_get_ethtool_nfc_entry()
2449 fsp->ring_cookie = rule->action; in igb_get_ethtool_nfc_entry()
2451 fsp->h_u.ether_spec.h_proto = rule->filter.etype; in igb_get_ethtool_nfc_entry()
2452 fsp->m_u.ether_spec.h_proto = ETHER_TYPE_FULL_MASK; in igb_get_ethtool_nfc_entry()
2455 fsp->flow_type |= FLOW_EXT; in igb_get_ethtool_nfc_entry()
2456 fsp->h_ext.vlan_tci = rule->filter.vlan_tci; in igb_get_ethtool_nfc_entry()
2457 fsp->m_ext.vlan_tci = htons(VLAN_PRIO_MASK); in igb_get_ethtool_nfc_entry()
2460 ether_addr_copy(fsp->h_u.ether_spec.h_dest, in igb_get_ethtool_nfc_entry()
2465 eth_broadcast_addr(fsp->m_u.ether_spec.h_dest); in igb_get_ethtool_nfc_entry()
2468 ether_addr_copy(fsp->h_u.ether_spec.h_source, in igb_get_ethtool_nfc_entry()
2473 eth_broadcast_addr(fsp->m_u.ether_spec.h_source); in igb_get_ethtool_nfc_entry()
2896 struct ethtool_rx_flow_spec *fsp = in igb_add_ethtool_nfc_entry() local
2907 if ((fsp->ring_cookie == RX_CLS_FLOW_DISC) || in igb_add_ethtool_nfc_entry()
2908 (fsp->ring_cookie >= adapter->num_rx_queues)) { in igb_add_ethtool_nfc_entry()
2914 if (fsp->location >= IGB_MAX_RXNFC_FILTERS) { in igb_add_ethtool_nfc_entry()
2919 if ((fsp->flow_type & ~FLOW_EXT) != ETHER_FLOW) in igb_add_ethtool_nfc_entry()
2926 if (fsp->m_u.ether_spec.h_proto == ETHER_TYPE_FULL_MASK) { in igb_add_ethtool_nfc_entry()
2927 input->filter.etype = fsp->h_u.ether_spec.h_proto; in igb_add_ethtool_nfc_entry()
2932 if (is_broadcast_ether_addr(fsp->m_u.ether_spec.h_source)) { in igb_add_ethtool_nfc_entry()
2935 fsp->h_u.ether_spec.h_source); in igb_add_ethtool_nfc_entry()
2939 if (is_broadcast_ether_addr(fsp->m_u.ether_spec.h_dest)) { in igb_add_ethtool_nfc_entry()
2942 fsp->h_u.ether_spec.h_dest); in igb_add_ethtool_nfc_entry()
2945 if ((fsp->flow_type & FLOW_EXT) && fsp->m_ext.vlan_tci) { in igb_add_ethtool_nfc_entry()
2946 if (fsp->m_ext.vlan_tci != htons(VLAN_PRIO_MASK)) { in igb_add_ethtool_nfc_entry()
2950 input->filter.vlan_tci = fsp->h_ext.vlan_tci; in igb_add_ethtool_nfc_entry()
2954 input->action = fsp->ring_cookie; in igb_add_ethtool_nfc_entry()
2955 input->sw_idx = fsp->location; in igb_add_ethtool_nfc_entry()
2992 struct ethtool_rx_flow_spec *fsp = in igb_del_ethtool_nfc_entry() local
2997 err = igb_update_ethtool_nfc_entry(adapter, NULL, fsp->location); in igb_del_ethtool_nfc_entry()