]> git.baikalelectronics.ru Git - kernel.git/commit
net: hsr: fix incorrect lsdu size in the tag of HSR frames for small frames
authorMurali Karicheri <m-karicheri2@ti.com>
Fri, 17 Jul 2020 14:55:09 +0000 (10:55 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sat, 18 Jul 2020 01:54:37 +0000 (18:54 -0700)
commitcd592aa022b1b71eebaf7ac8bbddf0837de381a4
tree4ee4ac51a263667a037b62d6013b2b5605e9ca71
parent1c2911e9e4f0ee3c419c408326cd45a32f48efdd
net: hsr: fix incorrect lsdu size in the tag of HSR frames for small frames

For small Ethernet frames with size less than minimum size 66 for HSR
vs 60 for regular Ethernet frames, hsr driver currently doesn't pad the
frame to make it minimum size. This results in incorrect LSDU size being
populated in the HSR tag for these frames. Fix this by padding the frame
to the minimum size applicable for HSR.

Signed-off-by: Murali Karicheri <m-karicheri2@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/hsr/hsr_forward.c