Lines Matching refs:nfccmd

312 	struct ethtool_rxnfc nfccmd;  in rxclass_get_dev_info()  local
315 nfccmd.cmd = ETHTOOL_GRXCLSRLCNT; in rxclass_get_dev_info()
316 nfccmd.data = 0; in rxclass_get_dev_info()
317 err = send_ioctl(ctx, &nfccmd); in rxclass_get_dev_info()
318 *count = nfccmd.rule_cnt; in rxclass_get_dev_info()
320 *driver_select = !!(nfccmd.data & RX_CLS_LOC_SPECIAL); in rxclass_get_dev_info()
329 struct ethtool_rxnfc nfccmd; in rxclass_rule_get() local
333 nfccmd.cmd = ETHTOOL_GRXCLSRULE; in rxclass_rule_get()
334 memset(&nfccmd.fs, 0, sizeof(struct ethtool_rx_flow_spec)); in rxclass_rule_get()
335 nfccmd.fs.location = loc; in rxclass_rule_get()
336 err = send_ioctl(ctx, &nfccmd); in rxclass_rule_get()
343 rxclass_print_rule(&nfccmd.fs, (__u32)nfccmd.rss_context); in rxclass_rule_get()
349 struct ethtool_rxnfc *nfccmd; in rxclass_rule_getall() local
362 nfccmd = calloc(1, sizeof(*nfccmd) + (count * sizeof(__u32))); in rxclass_rule_getall()
363 if (!nfccmd) { in rxclass_rule_getall()
370 nfccmd->cmd = ETHTOOL_GRXCLSRLALL; in rxclass_rule_getall()
371 nfccmd->rule_cnt = count; in rxclass_rule_getall()
372 err = send_ioctl(ctx, nfccmd); in rxclass_rule_getall()
375 free(nfccmd); in rxclass_rule_getall()
380 rule_locs = nfccmd->rule_locs; in rxclass_rule_getall()
388 free(nfccmd); in rxclass_rule_getall()
483 struct ethtool_rxnfc *nfccmd; in rmgr_init() local
500 nfccmd = calloc(1, sizeof(*nfccmd) + (rmgr->n_rules * sizeof(__u32))); in rmgr_init()
501 if (!nfccmd) { in rmgr_init()
508 nfccmd->cmd = ETHTOOL_GRXCLSRLALL; in rmgr_init()
509 nfccmd->rule_cnt = rmgr->n_rules; in rmgr_init()
510 err = send_ioctl(ctx, nfccmd); in rmgr_init()
513 free(nfccmd); in rmgr_init()
518 rmgr->size = nfccmd->data; in rmgr_init()
532 rule_locs = nfccmd->rule_locs; in rmgr_init()
539 free(nfccmd); in rmgr_init()
575 struct ethtool_rxnfc nfccmd; in rxclass_rule_ins() local
590 nfccmd.cmd = ETHTOOL_SRXCLSRLINS; in rxclass_rule_ins()
591 nfccmd.rss_context = rss_context; in rxclass_rule_ins()
592 nfccmd.fs = *fsp; in rxclass_rule_ins()
593 err = send_ioctl(ctx, &nfccmd); in rxclass_rule_ins()
597 printf("Added rule with ID %d\n", nfccmd.fs.location); in rxclass_rule_ins()
604 struct ethtool_rxnfc nfccmd; in rxclass_rule_del() local
608 nfccmd.cmd = ETHTOOL_SRXCLSRLDEL; in rxclass_rule_del()
609 nfccmd.fs.location = loc; in rxclass_rule_del()
610 err = send_ioctl(ctx, &nfccmd); in rxclass_rule_del()