I have a doubt regarding struct net_device in linux kernel.
Every frame in linux kernel is represented in skbuff structure. It has an instance to struct net_device which tells about the interface or physical port from which packet is received or to be transmitted.
In struct net_device we have a variable "struct net_bridge_port" which is related to port of a bridge (if enabled).
My doubt is struct net_device structure should be filled by device driver but how can it fill information regarding the "struct net_bridge_port" at device driver level ?
Thanks in advance