• Home
  • Raw
  • Download

Lines Matching refs:fsp

2454 	struct ethtool_rx_flow_spec *fsp = &cmd->fs;  in igb_get_ethtool_nfc_entry()  local
2461 if (fsp->location <= rule->sw_idx) in igb_get_ethtool_nfc_entry()
2465 if (!rule || fsp->location != rule->sw_idx) in igb_get_ethtool_nfc_entry()
2469 fsp->flow_type = ETHER_FLOW; in igb_get_ethtool_nfc_entry()
2470 fsp->ring_cookie = rule->action; in igb_get_ethtool_nfc_entry()
2472 fsp->h_u.ether_spec.h_proto = rule->filter.etype; in igb_get_ethtool_nfc_entry()
2473 fsp->m_u.ether_spec.h_proto = ETHER_TYPE_FULL_MASK; in igb_get_ethtool_nfc_entry()
2476 fsp->flow_type |= FLOW_EXT; in igb_get_ethtool_nfc_entry()
2477 fsp->h_ext.vlan_tci = rule->filter.vlan_tci; in igb_get_ethtool_nfc_entry()
2478 fsp->m_ext.vlan_tci = htons(VLAN_PRIO_MASK); in igb_get_ethtool_nfc_entry()
2481 ether_addr_copy(fsp->h_u.ether_spec.h_dest, in igb_get_ethtool_nfc_entry()
2486 eth_broadcast_addr(fsp->m_u.ether_spec.h_dest); in igb_get_ethtool_nfc_entry()
2489 ether_addr_copy(fsp->h_u.ether_spec.h_source, in igb_get_ethtool_nfc_entry()
2494 eth_broadcast_addr(fsp->m_u.ether_spec.h_source); in igb_get_ethtool_nfc_entry()
2917 struct ethtool_rx_flow_spec *fsp = in igb_add_ethtool_nfc_entry() local
2928 if ((fsp->ring_cookie == RX_CLS_FLOW_DISC) || in igb_add_ethtool_nfc_entry()
2929 (fsp->ring_cookie >= adapter->num_rx_queues)) { in igb_add_ethtool_nfc_entry()
2935 if (fsp->location >= IGB_MAX_RXNFC_FILTERS) { in igb_add_ethtool_nfc_entry()
2940 if ((fsp->flow_type & ~FLOW_EXT) != ETHER_FLOW) in igb_add_ethtool_nfc_entry()
2947 if (fsp->m_u.ether_spec.h_proto == ETHER_TYPE_FULL_MASK) { in igb_add_ethtool_nfc_entry()
2948 input->filter.etype = fsp->h_u.ether_spec.h_proto; in igb_add_ethtool_nfc_entry()
2953 if (is_broadcast_ether_addr(fsp->m_u.ether_spec.h_source)) { in igb_add_ethtool_nfc_entry()
2956 fsp->h_u.ether_spec.h_source); in igb_add_ethtool_nfc_entry()
2960 if (is_broadcast_ether_addr(fsp->m_u.ether_spec.h_dest)) { in igb_add_ethtool_nfc_entry()
2963 fsp->h_u.ether_spec.h_dest); in igb_add_ethtool_nfc_entry()
2966 if ((fsp->flow_type & FLOW_EXT) && fsp->m_ext.vlan_tci) { in igb_add_ethtool_nfc_entry()
2967 if (fsp->m_ext.vlan_tci != htons(VLAN_PRIO_MASK)) { in igb_add_ethtool_nfc_entry()
2971 input->filter.vlan_tci = fsp->h_ext.vlan_tci; in igb_add_ethtool_nfc_entry()
2975 input->action = fsp->ring_cookie; in igb_add_ethtool_nfc_entry()
2976 input->sw_idx = fsp->location; in igb_add_ethtool_nfc_entry()
3009 struct ethtool_rx_flow_spec *fsp = in igb_del_ethtool_nfc_entry() local
3014 err = igb_update_ethtool_nfc_entry(adapter, NULL, fsp->location); in igb_del_ethtool_nfc_entry()