summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJose Abreu <Jose.Abreu@synopsys.com>2019-09-30 11:19:13 +0300
committerDavid S. Miller <davem@davemloft.net>2019-10-01 20:12:38 +0300
commit56627336b655494356a23e65200c21718a1c3b2b (patch)
treeb42bc08191dc5a2ec5dd126ad76d0a90fd3e0158 /tools/perf/scripts/python
parent3c72d4d33059cf84a23492e827731f12c023ab00 (diff)
downloadlinux-56627336b655494356a23e65200c21718a1c3b2b.tar.xz
net: stmmac: xgmac: Fix RSS writing wrong keys
Commit b6b6cc9acd7b, changed the call to dwxgmac2_rss_write_reg() passing it the variable cfg->key[i]. As key is an u8 but we write 32 bits at a time we need to cast it into an u32 so that the correct key values are written. Notice that the for loop already takes this into account so we don't try to write past the keys size. Fixes: b6b6cc9acd7b ("net: stmmac: selftest: avoid large stack usage") Signed-off-by: Jose Abreu <Jose.Abreu@synopsys.com> Reviewed-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions