aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Grajciar <jgrajcia@cisco.com>2018-09-04 11:20:23 +0200
committerDamjan Marion <dmarion@me.com>2018-09-04 17:29:13 +0000
commit3e483029f31c065b6167615072fc0cbb0af46859 (patch)
tree8bf10175e338f2a69f64c295cbadc2c9448b93d6
parentceb8d5afcb43327eaee019848fad1a57e7aecc6e (diff)
avf: fix random rss key
Change-Id: I622cdb969ea489d333888b90c15ab57c1820e2db Signed-off-by: Jakub Grajciar <jgrajcia@cisco.com>
-rw-r--r--src/plugins/avf/device.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/avf/device.c b/src/plugins/avf/device.c
index 67cb946379f..9731deb8ad1 100644
--- a/src/plugins/avf/device.c
+++ b/src/plugins/avf/device.c
@@ -524,9 +524,9 @@ avf_op_config_rss_key (vlib_main_t * vm, avf_device_t * ad)
rk = (virtchnl_rss_key_t *) msg;
rk->vsi_id = ad->vsi_id;
rk->key_len = ad->rss_key_size;
- uword seed = random_default_seed ();
+ u32 seed = random_default_seed ();
for (i = 0; i < ad->rss_key_size; i++)
- rk->key[i] = (u8) random_uword ((u32 *) & seed);
+ rk->key[i] = (u8) random_uword (&seed);
return avf_send_to_pf (vm, ad, VIRTCHNL_OP_CONFIG_RSS_KEY, msg, msg_len, 0,
0);