I create a VLAN interface with the following command in shell.
ip link add link port-1 name port-1.10 type vlan id 10
and I want my netdevice driver kernel module be able to get all the information of VLAN interfaces I create including vlan ID.
What struct member should I look into or kernel code should I call?
I tried to look into linux/netdevice.h and got no idea what function should I call. I wish there is a list of VLAN interfaces of a real interface for me to look up.