]> git.baikalelectronics.ru Git - uboot.git/commit
net: designware: clear padding bytes
authorSimon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
Sat, 17 Nov 2018 09:24:42 +0000 (10:24 +0100)
committerJoe Hershberger <joe.hershberger@ni.com>
Thu, 24 Jan 2019 17:35:27 +0000 (11:35 -0600)
commit7f1e905bc650969cd987d4c35316f63774d78e53
tree279d634b92fed1d5fe143a2a1b6465a45bae029a
parentaa13cea982a348664a6a7a7db870b4a885ba6659
net: designware: clear padding bytes

Short frames are padded to the minimum allowed size of 60 bytes.
However, the designware driver sends old data in these padding bytes.
It is common practice to zero out these padding bytes ro prevent
leaking memory contents to other hosts.

Fix the padding code to zero out the padded bytes at the end.

Tested on socfpga gen5.

Signed-off-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/designware.c