diff options
author | Damjan Marion <damarion@cisco.com> | 2018-10-19 16:50:41 +0200 |
---|---|---|
committer | Damjan Marion <damarion@cisco.com> | 2018-10-19 16:52:05 +0200 |
commit | eb1744f1593bf44101bf46b8e3496063a3fb890c (patch) | |
tree | 9dc36c0bff854982e610b5e09d4dc00b73f1b884 /src/plugins | |
parent | 1636b1629339c8235e344e7a95d88ecede642cd5 (diff) |
avf: fix crash in rss key calculation
Change-Id: Id13a0b6ed54885babf679f05207170e36709d9fa
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/avf/device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/avf/device.c b/src/plugins/avf/device.c index 9731deb8ad1..71105e88677 100644 --- a/src/plugins/avf/device.c +++ b/src/plugins/avf/device.c @@ -526,7 +526,7 @@ avf_op_config_rss_key (vlib_main_t * vm, avf_device_t * ad) rk->key_len = ad->rss_key_size; u32 seed = random_default_seed (); for (i = 0; i < ad->rss_key_size; i++) - rk->key[i] = (u8) random_uword (&seed); + rk->key[i] = (u8) random_u32 (&seed); return avf_send_to_pf (vm, ad, VIRTCHNL_OP_CONFIG_RSS_KEY, msg, msg_len, 0, 0); |