Lines Matching defs:nfc
2467 * @nfc: ethtool rxnfc command
2472 static u32 ice_parse_hdrs(struct ethtool_rxnfc *nfc)
2476 switch (nfc->flow_type) {
2539 * @nfc: ethtool rxnfc command
2545 static u64 ice_parse_hash_flds(struct ethtool_rxnfc *nfc, bool symm)
2549 if (nfc->data & RXH_IP_SRC || nfc->data & RXH_IP_DST) {
2550 switch (nfc->flow_type) {
2560 if (nfc->data & RXH_IP_SRC)
2562 if (nfc->data & RXH_IP_DST)
2574 if (nfc->data & RXH_IP_SRC)
2576 if (nfc->data & RXH_IP_DST)
2584 if (nfc->data & RXH_L4_B_0_1 || nfc->data & RXH_L4_B_2_3) {
2585 switch (nfc->flow_type) {
2588 if (nfc->data & RXH_L4_B_0_1)
2590 if (nfc->data & RXH_L4_B_2_3)
2595 if (nfc->data & RXH_L4_B_0_1)
2597 if (nfc->data & RXH_L4_B_2_3)
2602 if (nfc->data & RXH_L4_B_0_1)
2604 if (nfc->data & RXH_L4_B_2_3)
2612 if (nfc->data & RXH_GTP_TEID) {
2613 switch (nfc->flow_type) {
2645 * @nfc: ethtool rxnfc command
2650 ice_set_rss_hash_opt(struct ice_vsi *vsi, struct ethtool_rxnfc *nfc)
2668 hashed_flds = ice_parse_hash_flds(nfc, symm);
2675 hdrs = ice_parse_hdrs(nfc);
2700 * @nfc: ethtool rxnfc command
2703 ice_get_rss_hash_opt(struct ice_vsi *vsi, struct ethtool_rxnfc *nfc)
2713 nfc->data = 0;
2720 hdrs = ice_parse_hdrs(nfc);
2736 nfc->data |= (u64)RXH_IP_SRC;
2740 nfc->data |= (u64)RXH_IP_DST;
2745 nfc->data |= (u64)RXH_L4_B_0_1;
2750 nfc->data |= (u64)RXH_L4_B_2_3;
2757 nfc->data |= (u64)RXH_GTP_TEID;