commit ee122c79d4227f6ec642157834b6a90fcffa4382
Author: Thomas Graf <tgraf@suug.ch>
Date: Tue Jul 21 10:43:58 2015 +0200
vxlan: Flow based tunneling
Allows putting a VXLAN device into a new flow-based mode in which
skbs with a ip_tunnel_info dst metadata attached will be encapsulated
according to the instructions stored in there with the VXLAN device
defaults taken into consideration.
Similar on the receive side, if the VXLAN_F_COLLECT_METADATA flag is
set, the packet processing will populate a ip_tunnel_info struct for
each packet received and attach it to the skb using the new metadata
dst. The metadata structure will contain the outer header and tunnel
header fields which have been stripped off. Layers further up in the
stack such as routing, tc or netfitler can later match on these fields
and perform forwarding. It is the responsibility of upper layers to
ensure that the flag is set if the metadata is needed. The flag limits
the additional cost of metadata collecting based on demand.
This prepares the VXLAN device to be steered by the routing and other
subsystems which allows to support encapsulation for a large number
of tunnel endpoints and tunnel ids through a single net_device which
&n

该博客介绍了Linux内核中VXLAN设备的优化,允许将VXLAN设备置于一种新的基于流的模式,从而实现按需收集和处理隧道元数据,提高大规模隧道端点和ID的处理能力。这种优化减少了额外的处理成本,并为Open vSwitch移除特定VXLAN代码铺平道路。在接收到VXLAN报文后,通过软中断和流分类机制进行处理,利用tcflowerfilter进行匹配和转发决策。
最低0.47元/天 解锁文章
611

被折叠的 条评论
为什么被折叠?



