Lines Matching refs:cmd

314 				   struct ethtool_rxnfc *cmd)  in sxgbe_get_rss_hash_opts()  argument
316 cmd->data = 0; in sxgbe_get_rss_hash_opts()
319 switch (cmd->flow_type) { in sxgbe_get_rss_hash_opts()
322 cmd->data |= RXH_L4_B_0_1 | RXH_L4_B_2_3; in sxgbe_get_rss_hash_opts()
329 cmd->data |= RXH_IP_SRC | RXH_IP_DST; in sxgbe_get_rss_hash_opts()
333 cmd->data |= RXH_L4_B_0_1 | RXH_L4_B_2_3; in sxgbe_get_rss_hash_opts()
340 cmd->data |= RXH_IP_SRC | RXH_IP_DST; in sxgbe_get_rss_hash_opts()
349 static int sxgbe_get_rxnfc(struct net_device *dev, struct ethtool_rxnfc *cmd, in sxgbe_get_rxnfc() argument
355 switch (cmd->cmd) { in sxgbe_get_rxnfc()
357 ret = sxgbe_get_rss_hash_opts(priv, cmd); in sxgbe_get_rxnfc()
367 struct ethtool_rxnfc *cmd) in sxgbe_set_rss_hash_opt() argument
374 if (cmd->data & ~(RXH_IP_SRC | RXH_IP_DST | in sxgbe_set_rss_hash_opt()
378 switch (cmd->flow_type) { in sxgbe_set_rss_hash_opt()
381 if (!(cmd->data & RXH_IP_SRC) || in sxgbe_set_rss_hash_opt()
382 !(cmd->data & RXH_IP_DST) || in sxgbe_set_rss_hash_opt()
383 !(cmd->data & RXH_L4_B_0_1) || in sxgbe_set_rss_hash_opt()
384 !(cmd->data & RXH_L4_B_2_3)) in sxgbe_set_rss_hash_opt()
390 if (!(cmd->data & RXH_IP_SRC) || in sxgbe_set_rss_hash_opt()
391 !(cmd->data & RXH_IP_DST) || in sxgbe_set_rss_hash_opt()
392 !(cmd->data & RXH_L4_B_0_1) || in sxgbe_set_rss_hash_opt()
393 !(cmd->data & RXH_L4_B_2_3)) in sxgbe_set_rss_hash_opt()
407 if (!(cmd->data & RXH_IP_SRC) || in sxgbe_set_rss_hash_opt()
408 !(cmd->data & RXH_IP_DST) || in sxgbe_set_rss_hash_opt()
409 (cmd->data & RXH_L4_B_0_1) || in sxgbe_set_rss_hash_opt()
410 (cmd->data & RXH_L4_B_2_3)) in sxgbe_set_rss_hash_opt()
426 static int sxgbe_set_rxnfc(struct net_device *dev, struct ethtool_rxnfc *cmd) in sxgbe_set_rxnfc() argument
431 switch (cmd->cmd) { in sxgbe_set_rxnfc()
433 ret = sxgbe_set_rss_hash_opt(priv, cmd); in sxgbe_set_rxnfc()