Re: [PATCH v9 net-next 7/7] openvswitch: use ipgre tunnel rather than gretap tunnel

2016-05-06 Thread Jiri Benc
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); > +

Re: [PATCH v9 net-next 7/7] openvswitch: use ipgre tunnel rather than gretap tunnel

2016-05-06 Thread Simon Horman
[CC Jiri Benc] On Thu, May 05, 2016 at 02:45:15PM -0700, pravin shelar wrote: > On Wed, May 4, 2016 at 12:36 AM, Simon Horman > wrote: > > This allows GRE tunnels to send and receive both > > layer 2 packets (packets with an ethernet header) and > > layer 3 packets

Re: [PATCH v9 net-next 7/7] openvswitch: use ipgre tunnel rather than gretap tunnel

2016-05-05 Thread pravin shelar
On Wed, May 4, 2016 at 12:36 AM, Simon Horman wrote: > This allows GRE tunnels to send and receive both > layer 2 packets (packets with an ethernet header) and > layer 3 packets (packets without an ethernet header). > > Signed-off-by: Simon Horman

[PATCH v9 net-next 7/7] openvswitch: use ipgre tunnel rather than gretap tunnel

2016-05-04 Thread Simon Horman
This allows GRE tunnels to send and receive both layer 2 packets (packets with an ethernet header) and layer 3 packets (packets without an ethernet header). Signed-off-by: Simon Horman --- v9 New Patch --- include/net/gre.h | 4 ++-- net/ipv4/ip_gre.c