Skip to contentSkip to conversation

what is the driver of vm's virtual ethernet?

Bridge longguang.yue 2 participants 2 messages Mar 30, 2014 – Apr 3, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

hi,all
each port of bridge, has its packets process function called br_handle_frame.
i want to know before this function called who and how it get the packets?
if it is a real physical ethernet, it must be its driver, but for virtual ethernet , what is the driver?

thanks

#1 lore raw

What happens is that real (or virtual) network devices call the common network receive function - netif_receive_skb
This function has a hook rx_handler which is called if the device is part of a bridge.
The bridge code the processes the packets and either floods them, redirects, or drops the packets
based on the learned forwarding table.

Quoted 18 lines · longguang.yue

hi,all
each port of bridge, has its packets process function called br_handle_frame.
i want to know before this function called who and how it get the
packets?
if it is a real physical ethernet, it must be its driver, but for virtual ethernet , what is the driver?

thanks

_______________________________________________
Virtualization mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/virtualization