[ovs-dev] About the bandwith performance of vxlan tunnel

Pravin Shelar pshelar at nicira.com
Wed Sep 23 19:48:53 UTC 2015


On Tue, Sep 22, 2015 at 4:45 PM, openvswitcher <openvswitcher at 163.com> wrote:
> Thank you for your reply.
>
>
> I see the function skb_udp_tunnel_segment in file  linux-3.14\net\ipv4\udp.c
> struct sk_buff *skb_udp_tunnel_segment(struct sk_buff *skb,
>        netdev_features_t features)
>         (...skip...)
> /* segment inner packet. */
> enc_features = skb->dev->hw_enc_features & netif_skb_features(skb);  ★
>         (...skip...)
>
>
> Is ★ used for deciding whether the NIC supports vxlan offload ?
> If so, where is the skb->dev set ? Is skb->dev the physical NIC or is it the vxlan virtual port?
>
skb->dev is the physical NIC. If physical NIC can not handle the
offload then it is handled in software.



More information about the dev mailing list