Lines Matching defs:nfc
7074 static int niu_get_hash_opts(struct niu *np, struct ethtool_rxnfc *nfc)
7078 nfc->data = 0;
7080 if (!niu_ethflow_to_class(nfc->flow_type, &class))
7085 nfc->data = RXH_DISCARD;
7087 nfc->data = niu_flowkey_to_ethflow(np->parent->flow_key[class -
7169 struct ethtool_rxnfc *nfc)
7173 struct ethtool_rx_flow_spec *fsp = &nfc->fs;
7178 idx = tcam_get_index(np, (u16)nfc->fs.location);
7183 parent->index, (u16)nfc->fs.location, idx);
7242 nfc->data = tcam_get_size(np);
7248 struct ethtool_rxnfc *nfc,
7258 nfc->data = tcam_get_size(np);
7261 for (cnt = 0, i = 0; i < nfc->data; i++) {
7266 if (cnt == nfc->rule_cnt) {
7275 nfc->rule_cnt = cnt;
7310 static int niu_set_hash_opts(struct niu *np, struct ethtool_rxnfc *nfc)
7316 if (!niu_ethflow_to_class(nfc->flow_type, &class))
7323 if (nfc->data & RXH_DISCARD) {
7348 if (!niu_ethflow_to_flowkey(nfc->data, &flow_key))
7428 struct ethtool_rxnfc *nfc)
7432 struct ethtool_rx_flow_spec *fsp = &nfc->fs;
7442 idx = nfc->fs.location;