-
Notifications
You must be signed in to change notification settings - Fork 668
nshlib: Add vconfig command #3286
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
e5e7cbb to
cb7132d
Compare
|
Please add documetation. |
|
@HedongGao please remove the merge patch from pr. |
@cederom here is apache/nuttx#17790 |
cederom
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @HedongGao :-)
0428112
Add vconfig command Signed-off-by: gaohedong <gaohedong@xiaomi.com>
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 <wengzhe@xiaomi.com>
Done! |
cederom
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @HedongGao :-) Lets just make sure CI builds fine :-)
Summary
With reference to the implementation of vconfig in Linux, a vconfig tool is added, through which you can configure the vlan interface.
Control whether the tool is enabled by compiling options CONFIG_NET_VLAN and CONFIG_NSH_DISABLE_VCONFIG.
Impact
The user can configure the vlan interface through this interface.
Testing
Open the compilation options CONFIG_NET_VLAN and CONFIG_NSH_DISABLE_VCONFIG. Add/delete the Vlan interface in the SIM environment, and check whether the configuration is successful through ifconfig.