[ovs-dev] [PATCH v9 net-next 7/7] openvswitch: use ipgre tunnel rather than gretap tunnel
Jiri Benc
jbenc at redhat.com
Fri May 6 09:15:11 UTC 2016
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
More information about the dev
mailing list