Part Number: AM5716
Tool/software: Linux
Hey there.
I have a very big issue with default VLAN handling in Dual Mac Mode. It seems like in CPSW frames with VLAN ID 0 will be untagged. Can anybody explain me why? I need the VLAN ID 0 tag, because of my transfer protocol needs it for correct response. There is no other use case for me for using VLAN functionality.
There is a function called cpsw_ale_add_vlan for my Port (cpsw_ndo_open), which seems to be able to force specific ports to tag or untag. The thing is with these 2 options, that if I use tagging all ports every frame get's a VLAN frame part, which is very unpleasant. If I untag all, no matter if there is a VLAN frame inside my paket, it will be forced to remove. So there is no VLAN frame anymore in the outgoing paket.
I dont know enough about the cpsw code and how I can configure the leave the packets as they are, like when I use raw sockets. Why does it seem like, that either all VLAN tags will be removed or will be attached to each frame?
VLAN_aware mode is activated.
Hope somebody can help me.