Lines Matching defs:nfc
573 struct ethtool_rxnfc *nfc)
582 nfc->data = RXH_IP_SRC | RXH_IP_DST;
584 nfc->data |= RXH_VLAN;
586 switch (nfc->flow_type) {
590 nfc->data |= RXH_L4_B_0_1 | RXH_L4_B_2_3;
595 nfc->data |= RXH_L4_B_0_1 | RXH_L4_B_2_3;
600 nfc->data |= RXH_L4_B_0_1 | RXH_L4_B_2_3;
605 nfc->data |= RXH_L4_B_0_1 | RXH_L4_B_2_3;
623 struct ethtool_rxnfc *nfc)
636 if (!(nfc->data & RXH_IP_SRC) || !(nfc->data & RXH_IP_DST))
639 if (nfc->data & RXH_VLAN)
644 switch (nfc->flow_type) {
650 switch (nfc->data & rxh_l4) {
663 switch (nfc->data & rxh_l4) {
676 switch (nfc->data & rxh_l4) {
689 switch (nfc->data & rxh_l4) {
731 struct ethtool_rxnfc *nfc, u32 *rules)
737 switch (nfc->cmd) {
739 nfc->data = pfvf->hw.rx_queues;
744 nfc->rule_cnt = pfvf->flow_cfg->nr_flows;
750 ret = otx2_get_flow(pfvf, nfc, nfc->fs.location);
754 ret = otx2_get_all_flows(pfvf, nfc, rules);
757 return otx2_get_rss_hash_opts(pfvf, nfc);
764 static int otx2_set_rxnfc(struct net_device *dev, struct ethtool_rxnfc *nfc)
771 switch (nfc->cmd) {
773 ret = otx2_set_rss_hash_opts(pfvf, nfc);
777 ret = otx2_add_flow(pfvf, nfc);
781 ret = otx2_remove_flow(pfvf, nfc->fs.location);