Lines Matching defs:nfc
6970 static int niu_get_hash_opts(struct niu *np, struct ethtool_rxnfc *nfc)
6974 nfc->data = 0;
6976 if (!niu_ethflow_to_class(nfc->flow_type, &class))
6981 nfc->data = RXH_DISCARD;
6983 nfc->data = niu_flowkey_to_ethflow(np->parent->flow_key[class -
7083 struct ethtool_rxnfc *nfc)
7087 struct ethtool_rx_flow_spec *fsp = &nfc->fs;
7092 idx = tcam_get_index(np, (u16)nfc->fs.location);
7097 parent->index, (u16)nfc->fs.location, idx);
7158 nfc->data = tcam_get_size(np);
7164 struct ethtool_rxnfc *nfc,
7174 nfc->data = tcam_get_size(np);
7177 for (cnt = 0, i = 0; i < nfc->data; i++) {
7182 if (cnt == nfc->rule_cnt) {
7224 static int niu_set_hash_opts(struct niu *np, struct ethtool_rxnfc *nfc)
7230 if (!niu_ethflow_to_class(nfc->flow_type, &class))
7237 if (nfc->data & RXH_DISCARD) {
7262 if (!niu_ethflow_to_flowkey(nfc->data, &flow_key))
7342 struct ethtool_rxnfc *nfc)
7346 struct ethtool_rx_flow_spec *fsp = &nfc->fs;
7356 idx = nfc->fs.location;