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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.linuxfoundation.org/pipermail/virtualization/attachments/20140330/6ca35a36/attachment.html>
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. On Sat, Mar 29, 2014 at 7:10 PM, longguang.yue <kernelluck at 163.com> wrote:> 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 > Virtualization at lists.linux-foundation.org > https://lists.linuxfoundation.org/mailman/listinfo/virtualization >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.linuxfoundation.org/pipermail/virtualization/attachments/20140402/9ff1d772/attachment.html>
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. On Sat, Mar 29, 2014 at 7:10 PM, longguang.yue <kernelluck@163.com> wrote:> 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 > Virtualization@lists.linux-foundation.org > https://lists.linuxfoundation.org/mailman/listinfo/virtualization >