search for: eth_p_ipv6

Displaying 20 results from an estimated 51 matches for "eth_p_ipv6".

2014 Dec 17
2
[PATCH 09/10] macvtap: Re-enable UFO support
...kb, > gso_type = SKB_GSO_TCPV6; > break; > case VIRTIO_NET_HDR_GSO_UDP: > - pr_warn_once("macvtap: %s: using disabled UFO feature; please fix this program\n", > - current->comm); > gso_type = SKB_GSO_UDP; > - if (skb->protocol == htons(ETH_P_IPV6)) > + if (vlan_get_protocol(skb) == htons(ETH_P_IPV6)) { > + /* This is to support legacy appliacations. > + * Do not change the gso_type as legacy apps > + * may not know about the new type. > + */ > ipv6_proxy_select_ident(skb); > + } > break; &...
2014 Dec 17
2
[PATCH 09/10] macvtap: Re-enable UFO support
...kb, > gso_type = SKB_GSO_TCPV6; > break; > case VIRTIO_NET_HDR_GSO_UDP: > - pr_warn_once("macvtap: %s: using disabled UFO feature; please fix this program\n", > - current->comm); > gso_type = SKB_GSO_UDP; > - if (skb->protocol == htons(ETH_P_IPV6)) > + if (vlan_get_protocol(skb) == htons(ETH_P_IPV6)) { > + /* This is to support legacy appliacations. > + * Do not change the gso_type as legacy apps > + * may not know about the new type. > + */ > ipv6_proxy_select_ident(skb); > + } > break; &...
2014 Dec 18
2
[PATCH 08/10] tun: Re-uanble UFO support.
...if (!warned) { > - warned = true; > - netdev_warn(tun->dev, > - "%s: using disabled UFO feature; please fix this program\n", > - current->comm); > - } > skb_shinfo(skb)->gso_type = SKB_GSO_UDP; > - if (skb->protocol == htons(ETH_P_IPV6)) > + if (vlan_get_protocol(skb) == htons(ETH_P_IPV6)) { This probably means UDPv6 with vlan does not work well, looks like another independent fixe and also for stable. > + /* This allows legacy application to work. > + * Do not change the gso_type as it may > + * not be...
2014 Dec 18
2
[PATCH 08/10] tun: Re-uanble UFO support.
...if (!warned) { > - warned = true; > - netdev_warn(tun->dev, > - "%s: using disabled UFO feature; please fix this program\n", > - current->comm); > - } > skb_shinfo(skb)->gso_type = SKB_GSO_UDP; > - if (skb->protocol == htons(ETH_P_IPV6)) > + if (vlan_get_protocol(skb) == htons(ETH_P_IPV6)) { This probably means UDPv6 with vlan does not work well, looks like another independent fixe and also for stable. > + /* This allows legacy application to work. > + * Do not change the gso_type as it may > + * not be...
2014 Dec 18
1
[PATCH 09/10] macvtap: Re-enable UFO support
...break; > >> case VIRTIO_NET_HDR_GSO_UDP: > >> - pr_warn_once("macvtap: %s: using disabled UFO feature; please fix this program\n", > >> - current->comm); > >> gso_type = SKB_GSO_UDP; > >> - if (skb->protocol == htons(ETH_P_IPV6)) > >> + if (vlan_get_protocol(skb) == htons(ETH_P_IPV6)) { > >> + /* This is to support legacy appliacations. > >> + * Do not change the gso_type as legacy apps > >> + * may not know about the new type. > >> + */ > >> ipv6...
2014 Dec 18
1
[PATCH 09/10] macvtap: Re-enable UFO support
...break; > >> case VIRTIO_NET_HDR_GSO_UDP: > >> - pr_warn_once("macvtap: %s: using disabled UFO feature; please fix this program\n", > >> - current->comm); > >> gso_type = SKB_GSO_UDP; > >> - if (skb->protocol == htons(ETH_P_IPV6)) > >> + if (vlan_get_protocol(skb) == htons(ETH_P_IPV6)) { > >> + /* This is to support legacy appliacations. > >> + * Do not change the gso_type as legacy apps > >> + * may not know about the new type. > >> + */ > >> ipv6...
2014 Nov 11
7
TUN_F_UFO change breaks live migration
On Tue, Nov 11, 2014 at 12:17:26PM +0000, Ben Hutchings wrote: > On Tue, 2014-11-11 at 10:58 +0000, Stefan Hajnoczi wrote: > > Commit 3d0ad09412ffe00c9afa201d01effdb6023d09b4 ("drivers/net: Disable > > UFO through virtio") breaks live migration of KVM guests from older to > > newer host kernels: > > > >
2014 Nov 11
7
TUN_F_UFO change breaks live migration
On Tue, Nov 11, 2014 at 12:17:26PM +0000, Ben Hutchings wrote: > On Tue, 2014-11-11 at 10:58 +0000, Stefan Hajnoczi wrote: > > Commit 3d0ad09412ffe00c9afa201d01effdb6023d09b4 ("drivers/net: Disable > > UFO through virtio") breaks live migration of KVM guests from older to > > newer host kernels: > > > >
2014 Dec 17
0
[PATCH 08/10] tun: Re-uanble UFO support.
...: - { - static bool warned; - - if (!warned) { - warned = true; - netdev_warn(tun->dev, - "%s: using disabled UFO feature; please fix this program\n", - current->comm); - } skb_shinfo(skb)->gso_type = SKB_GSO_UDP; - if (skb->protocol == htons(ETH_P_IPV6)) + if (vlan_get_protocol(skb) == htons(ETH_P_IPV6)) { + /* This allows legacy application to work. + * Do not change the gso_type as it may + * not be upderstood by legacy applications. + */ ipv6_proxy_select_ident(skb); + } break; - } default: tun->dev->s...
2014 Dec 17
0
[PATCH 09/10] macvtap: Re-enable UFO support
...skb_from_vnet_hdr(struct sk_buff *skb, gso_type = SKB_GSO_TCPV6; break; case VIRTIO_NET_HDR_GSO_UDP: - pr_warn_once("macvtap: %s: using disabled UFO feature; please fix this program\n", - current->comm); gso_type = SKB_GSO_UDP; - if (skb->protocol == htons(ETH_P_IPV6)) + if (vlan_get_protocol(skb) == htons(ETH_P_IPV6)) { + /* This is to support legacy appliacations. + * Do not change the gso_type as legacy apps + * may not know about the new type. + */ ipv6_proxy_select_ident(skb); + } break; default: return -EINVAL; @@ -619,6...
2015 Jan 30
0
[PATCH v2 2/3] Revert "drivers/net, ipv6: Select IPv6 fragment idents for virtio UFO packets"
...#include <net/sock.h> @@ -589,8 +588,6 @@ static int macvtap_skb_from_vnet_hdr(struct macvtap_queue *q, pr_warn_once("macvtap: %s: using disabled UFO feature; please fix this program\n", current->comm); gso_type = SKB_GSO_UDP; - if (skb->protocol == htons(ETH_P_IPV6)) - ipv6_proxy_select_ident(skb); break; default: return -EINVAL; diff --git a/drivers/net/tun.c b/drivers/net/tun.c index 8c8dc16..5ca42b7 100644 --- a/drivers/net/tun.c +++ b/drivers/net/tun.c @@ -65,7 +65,6 @@ #include <linux/nsproxy.h> #include <linux/virtio_net.h>...
2014 Dec 17
0
[PATCH 08/10] tun: Re-uanble UFO support.
...: - { - static bool warned; - - if (!warned) { - warned = true; - netdev_warn(tun->dev, - "%s: using disabled UFO feature; please fix this program\n", - current->comm); - } skb_shinfo(skb)->gso_type = SKB_GSO_UDP; - if (skb->protocol == htons(ETH_P_IPV6)) + if (vlan_get_protocol(skb) == htons(ETH_P_IPV6)) { + /* This allows legacy application to work. + * Do not change the gso_type as it may + * not be upderstood by legacy applications. + */ ipv6_proxy_select_ident(skb); + } break; - } default: tun->dev->s...
2014 Dec 17
0
[PATCH 09/10] macvtap: Re-enable UFO support
...skb_from_vnet_hdr(struct sk_buff *skb, gso_type = SKB_GSO_TCPV6; break; case VIRTIO_NET_HDR_GSO_UDP: - pr_warn_once("macvtap: %s: using disabled UFO feature; please fix this program\n", - current->comm); gso_type = SKB_GSO_UDP; - if (skb->protocol == htons(ETH_P_IPV6)) + if (vlan_get_protocol(skb) == htons(ETH_P_IPV6)) { + /* This is to support legacy appliacations. + * Do not change the gso_type as legacy apps + * may not know about the new type. + */ ipv6_proxy_select_ident(skb); + } break; default: return -EINVAL; @@ -619,6...
2015 Jan 30
0
[PATCH v2 2/3] Revert "drivers/net, ipv6: Select IPv6 fragment idents for virtio UFO packets"
...#include <net/sock.h> @@ -589,8 +588,6 @@ static int macvtap_skb_from_vnet_hdr(struct macvtap_queue *q, pr_warn_once("macvtap: %s: using disabled UFO feature; please fix this program\n", current->comm); gso_type = SKB_GSO_UDP; - if (skb->protocol == htons(ETH_P_IPV6)) - ipv6_proxy_select_ident(skb); break; default: return -EINVAL; diff --git a/drivers/net/tun.c b/drivers/net/tun.c index 8c8dc16..5ca42b7 100644 --- a/drivers/net/tun.c +++ b/drivers/net/tun.c @@ -65,7 +65,6 @@ #include <linux/nsproxy.h> #include <linux/virtio_net.h>...
2014 Dec 18
0
[PATCH 08/10] tun: Re-uanble UFO support.
...warned = true; >> - netdev_warn(tun->dev, >> - "%s: using disabled UFO feature; please fix this program\n", >> - current->comm); >> - } >> skb_shinfo(skb)->gso_type = SKB_GSO_UDP; >> - if (skb->protocol == htons(ETH_P_IPV6)) >> + if (vlan_get_protocol(skb) == htons(ETH_P_IPV6)) { > > This probably means UDPv6 with vlan does not work well, looks like another > independent fixe and also for stable. Ok. I can split this out. >> + /* This allows legacy application to work. >> + * D...
2014 Dec 18
0
[PATCH 08/10] tun: Re-uanble UFO support.
...warned = true; >> - netdev_warn(tun->dev, >> - "%s: using disabled UFO feature; please fix this program\n", >> - current->comm); >> - } >> skb_shinfo(skb)->gso_type = SKB_GSO_UDP; >> - if (skb->protocol == htons(ETH_P_IPV6)) >> + if (vlan_get_protocol(skb) == htons(ETH_P_IPV6)) { > > This probably means UDPv6 with vlan does not work well, looks like another > independent fixe and also for stable. Ok. I can split this out. >> + /* This allows legacy application to work. >> + * D...
2014 Dec 18
0
[PATCH 09/10] macvtap: Re-enable UFO support
...SKB_GSO_TCPV6; >> break; >> case VIRTIO_NET_HDR_GSO_UDP: >> - pr_warn_once("macvtap: %s: using disabled UFO feature; please fix this program\n", >> - current->comm); >> gso_type = SKB_GSO_UDP; >> - if (skb->protocol == htons(ETH_P_IPV6)) >> + if (vlan_get_protocol(skb) == htons(ETH_P_IPV6)) { >> + /* This is to support legacy appliacations. >> + * Do not change the gso_type as legacy apps >> + * may not know about the new type. >> + */ >> ipv6_proxy_select_ident(skb); >...
2014 Dec 18
0
[PATCH 09/10] macvtap: Re-enable UFO support
...SKB_GSO_TCPV6; >> break; >> case VIRTIO_NET_HDR_GSO_UDP: >> - pr_warn_once("macvtap: %s: using disabled UFO feature; please fix this program\n", >> - current->comm); >> gso_type = SKB_GSO_UDP; >> - if (skb->protocol == htons(ETH_P_IPV6)) >> + if (vlan_get_protocol(skb) == htons(ETH_P_IPV6)) { >> + /* This is to support legacy appliacations. >> + * Do not change the gso_type as legacy apps >> + * may not know about the new type. >> + */ >> ipv6_proxy_select_ident(skb); >...
2014 Dec 17
20
[PATCH 00/10] Split UFO into v4 and v6 versions.
UFO support in the kernel applies to both IPv4 and IPv6 protocols with the same device feature. However some devices may not be able to support one of the offloads. For this we split the UFO offload feature into 2 pieces. NETIF_F_UFO now controlls the IPv4 part and this series introduces NETIF_F_UFO6. As a result of this work, we can now re-enable NETIF_F_UFO on virtio_net devices and restore
2014 Dec 17
20
[PATCH 00/10] Split UFO into v4 and v6 versions.
UFO support in the kernel applies to both IPv4 and IPv6 protocols with the same device feature. However some devices may not be able to support one of the offloads. For this we split the UFO offload feature into 2 pieces. NETIF_F_UFO now controlls the IPv4 part and this series introduces NETIF_F_UFO6. As a result of this work, we can now re-enable NETIF_F_UFO on virtio_net devices and restore