]> git.baikalelectronics.ru Git - kernel.git/commit
gre: Fix MTU calculation for bound GRE tunnels
authorTom Goff <thomas.goff@boeing.com>
Fri, 14 Aug 2009 23:33:56 +0000 (16:33 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 14 Aug 2009 23:41:18 +0000 (16:41 -0700)
commit824e1bc921b906954456b8535800278494a3285a
treeece387e77861a103ca6cc5b7d501e4c69a0399dc
parentb4c478063abc55551471b717d4ba7999a7f40d0c
gre: Fix MTU calculation for bound GRE tunnels

The GRE header length should be subtracted when the tunnel MTU is
calculated.  This just corrects for the associativity change
introduced by commit 27ea953f3793d3544be50aeaf74d293e68f1ebf0
("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>
net/ipv4/ip_gre.c