On Fri, 6 May 2016 15:54:02 +0900, Simon Horman wrote:
> -int ovs_netdev_send_raw_tun(struct sk_buff *skb)
> -{
> -     if (skb->mac_len)
> -             skb->protocol = ntohs(ETH_P_TEB);
> +     if (dev->type != ARPHRD_ETHER && skb->mac_len) {
> +             skb->protocol = htons(ETH_P_TEB);
> +     } else if (dev->type == ARPHRD_ETHER && !skb->mac_len) {
> +             kfree_skb(skb);
> +             return -EINVAL;
> +     }

This was something I was missing in your patches (sorry, did not get to
the full review yet).

You'll also need to enable ARPHRD_NONE and ARPHRD_IPGRE interfaces in
ovs_netdev_link.

 Jiri

Reply via email to