On Tue, Sep 22, 2015 at 4:45 PM, openvswitcher <openvswitc...@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.
_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev