sonic-swss icon indicating copy to clipboard operation
sonic-swss copied to clipboard

[HOSTIF] Keep VLAN tag if subport is added.

Open iMasaruOki opened this issue 2 years ago • 1 comments

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

iMasaruOki avatar Oct 11 '22 18:10 iMasaruOki

CLA Signed

The committers listed above are authorized under a signed CLA.

  • :white_check_mark: login: iMasaruOki / name: Masaru OKI (8fa9b2432087b3d083de2899ffba55219caa9d86)