lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHXqBFJi57WA6vJsWEBrzz_-f7_iSYA8eN+Mta9-6rx9n9bfhw@mail.gmail.com>
Date:	Fri, 15 Feb 2013 03:35:11 +0100
From:	Michał Mirosław <mirqus@...il.com>
To:	Pravin B Shelar <pshelar@...ira.com>
Cc:	netdev@...r.kernel.org, edumazet@...gle.com, jesse@...ira.com,
	bhutchings@...arflare.com
Subject: Re: [PATCH net-next 3/3] GRE: Add TCP segmentation offload for GRE

2013/2/14 Pravin B Shelar <pshelar@...ira.com>:
> Following patch adds GRE protocol offload handler so that
> skb_gso_segment() can segment GRE packets.
> SKB GSO CB is added to keep track of total header length so that
> skb_segment can push entire header. e.g. in case of GRE, skb_segment
> need to push inner and outer headers to every segment.
> New NETIF_F_GRE_GSO feature is added for devices which support HW
> GRE TSO offload. Currently none of devices support it therefore GRE GSO
> always fall backs to software GSO.
[...]
> @@ -1044,6 +1102,14 @@ static int ipgre_tunnel_bind_dev(struct net_device *dev)
>                 mtu = 68;
>
>         tunnel->hlen = addend;
> +       if (tunnel->parms.o_flags & GRE_SEQ) {
> +               /* TCP offload with GRE SEQ is not supported. */
> +               dev->features &= ~NETIF_F_GSO_SOFTWARE;
> +               dev->hw_features &= ~NETIF_F_GSO_SOFTWARE;
> +       } else {
> +               dev->features |= NETIF_F_GSO_SOFTWARE;
> +               dev->hw_features |= NETIF_F_GSO_SOFTWARE;
> +       }

Feature clipping belongs to ndo_fix_features. Here,
netdev_update_features() for the tunnel device should be called.

Wishing You Good Night,
Michał Mirosław
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ