I always focus on the networks software devlopment whatever userspace or kernel and client or server :)
In this repository, I try to describe the details of kernel networks module as many as possible.
Now there are two flow charts already now.
- kernel_skb_path: Describe the skb's flow path.
- netfilter_path: Describe the netfilter path which skb would go through.
- skb_member: Describe the skb's members.
- skb_gro: Describe the skb GRO flow.
It is the skb path of Linux kernel. I would like enlarge the flow always.
The flow is constructed based on latest netdev kernel whose git link is git://git.kernel.org/pub/scm/linux/kernel/git/davem/net.git
Because I want to focus on the skb path from the lay 2 to socket layer, so the driver is not that I care about. I just selected the intel's e1000 driver to explain the NAPI.
There are two reasons as following
- Intel's driver is more clear than other vendor's.
- The e1000 driver is most simplest and is enough to show the NAPI
link: https://github.com/gfreewind/kernel_net_chart/blob/master/kernel_skb_path.jpg
It is the netfilter path which skb would go through.
The netfilter is often used as the firewall in network devices and servers. The path chart could help you learn about the netfilter.
link: https://github.com/gfreewind/kernel_net_chart/blob/master/netfilter_path.jpg
It is the complete flow of ipvlan including control plane and data plane
link: https://github.com/gfreewind/kernel_net_chart/blob/master/ipvlan.jpg
It is the complete flow of macvlan including control plane and data plane
link: https://github.com/gfreewind/kernel_net_chart/blob/master/macvlan.jpg
It is used to describe the sk_buff's members, and show which functions would access them.
It could help you learn about the struct sk_buff.
link: https://github.com/gfreewind/kernel_net_chart/blob/master/skb_members.jpg
Describe the GRO flow of skb. It would refer too many details of specific proto.
So there is no investigation deep for the protos.
link: https://github.com/gfreewind/kernel_net_chart/blob/master/skb_gro.jpg
Describe the flow of UDP recept and deliver flow based on the struct udp_protocol and udp_prot.
link: https://github.com/gfreewind/kernel_net_chart/blob/master/udp_protocol.jpg