Skip to content
Commit 7efb75b1 authored by Simon Goldschmidt's avatar Simon Goldschmidt Committed by Joe Hershberger
Browse files

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: default avatarSimon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
Acked-by: default avatarJoe Hershberger <joe.hershberger@ni.com>
parent ae8ac8d4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment