Skip to content

Conversation

@HedongGao
Copy link
Contributor

Summary

Fix the issue of 3305.

Impact

Support vlan pcp config.

Testing

Open the compilation options CONFIG_NET_VLAN and CONFIG_NSH_DISABLE_VCONFIG. Add the vlan interface with pcp config, ping from sim to host, and check the pcp in packet.
vconfig add eth0 65 3

Delete the vlan config, and add it agin with another pcp and check it agin.
vconfig del eth0.65 vconfig add eth0 65 6

Add vconfig command

Signed-off-by: gaohedong <[email protected]>
Now we allow setting a default PCP when creating VLAN like:
`vconfig add iface-name vlan-id [pcp]`
e.g.
`vconfig add eth0 10` will create eth0.10 with VID=10 and no PCP(0)
`vconfig add eth0 10 3` will create eth0.10 with VID=10 and PCP=3

Signed-off-by: Zhe Weng <[email protected]>
Now we allow setting a default PCP when creating VLAN like:
`vconfig add iface-name vlan-id [pcp]`
e.g.
`vconfig add eth0 10` will create eth0.10 with VID=10 and no PCP(0)
`vconfig add eth0 10 3` will create eth0.10 with VID=10 and PCP=3

Signed-off-by: Zhe Weng <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants