gre: Fix MTU calculation for bound GRE tunnels
commitf94cae4285c03f8060daaabd77809793924c6100
authorTom Goff <thomas.goff@boeing.com>
Fri, 14 Aug 2009 23:33:56 +0000 (14 16:33 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 15 Sep 2009 17:45:12 +0000 (15 10:45 -0700)
tree7f920108568afd49d37816e16c1728ff0e61eb04
parent4d422a0590a44d9de3749dadb673b7b0561cc0d1
gre: Fix MTU calculation for bound GRE tunnels

[ Upstream commit 8cdb045632e5ee22854538619ac6f150eb0a4894 ]

The GRE header length should be subtracted when the tunnel MTU is
calculated.  This just corrects for the associativity change
introduced by commit 42aa916265d740d66ac1f17290366e9494c884c2
("gre: Move MTU setting out of ipgre_tunnel_bind_dev").

Signed-off-by: Tom Goff <thomas.goff@boeing.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/ipv4/ip_gre.c