This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

PROCESSOR-SDK-AM64X: VLAN based on the HSR interface for small packets

Part Number: PROCESSOR-SDK-AM64X

Tool/software:

Hello TI,

I'm working with AM64x with HSR firmware :

After creating a VLAN based on the HSR interface, when the HSR firmware pads non-VLAN packets that are shorter than the minimum frame length(e.g., ARP request), it adds an extra 4 bytes of 0x00, resulting in a mismatch between the LSDUsize(52) in the HSR tag and the actual size(56).

It's very easy to reproduce the issue: 

  1. Set the link speed to 100 Mbps link speed
  2. wireshark capture ARP request from hsr0 interface, the frame length should be 66 and the LSDU size should be 52
  3. create a vlan hsr0.1 on hsr0:  

ip link add link hsr0 name hsr0.1 type vlan id 1 ; ip addr add 192.168.0.10/24 dev hsr0.1 ; ip link set dev hsr0.1 up

wireshark capture ARP request from hsr interface again, the frame length will be 70 and the LSDU size will be still 52.


-Tianyi