sonic-swss
sonic-swss copied to clipboard
[HOSTIF] Keep VLAN tag if subport is added.
Signed-off-by: Masaru OKI [email protected]
What I did Enable SAI_HOSTIF_VLAN_TAG_KEEP if subport list is not empty.
Why I did it In original code, VLAN tag is stripped in receved packet. It is incorrect.
How I verified it
# peer linux host:
# sudo ip link add link eth1 name eth1.100 type vlan id 100; sudo ip link set eth1.100
# sudo ip addr 192.168.100.2/24 dev eth1.100
# sudo ip link set eth1.100 up
sudo confgi interface ip add Ethernet16.100 192.168.100.1/24
ping 192.168.100.2
Details if related