Lines Matching refs:cmd
1705 struct ethtool_rxnfc *cmd, in cxgb4_ntuple_get_filter() argument
1731 cxgb4_fill_filter_rule(&cmd->fs, &f->fs); in cxgb4_ntuple_get_filter()
1744 switch (info->cmd) { in get_rxnfc()
1819 struct ethtool_rxnfc *cmd) in cxgb4_ntuple_del_filter() argument
1834 if (cmd->fs.location >= adapter->ethtool_filters->nentries) { in cxgb4_ntuple_del_filter()
1843 if (!test_bit(cmd->fs.location, filter_info->bmap)) in cxgb4_ntuple_del_filter()
1846 filter_id = filter_info->loc_array[cmd->fs.location]; in cxgb4_ntuple_del_filter()
1858 clear_bit(cmd->fs.location, filter_info->bmap); in cxgb4_ntuple_del_filter()
1867 struct ethtool_rxnfc *cmd) in cxgb4_ntuple_set_filter() argument
1884 if (cmd->fs.location >= adapter->ethtool_filters->nentries) { in cxgb4_ntuple_set_filter()
1891 if (test_bit(cmd->fs.location, in cxgb4_ntuple_set_filter()
1897 input.fs = &cmd->fs; in cxgb4_ntuple_set_filter()
1906 ret = cxgb4_flow_rule_replace(netdev, flow->rule, cmd->fs.location, in cxgb4_ntuple_set_filter()
1918 filter_info->loc_array[cmd->fs.location] = tid; in cxgb4_ntuple_set_filter()
1919 set_bit(cmd->fs.location, filter_info->bmap); in cxgb4_ntuple_set_filter()
1928 static int set_rxnfc(struct net_device *dev, struct ethtool_rxnfc *cmd) in set_rxnfc() argument
1932 switch (cmd->cmd) { in set_rxnfc()
1934 ret = cxgb4_ntuple_set_filter(dev, cmd); in set_rxnfc()
1937 ret = cxgb4_ntuple_del_filter(dev, cmd); in set_rxnfc()