tunneling: Simplify path MTU discovery logic.
authorJesse Gross <jesse@nicira.com>
Fri, 28 Jan 2011 02:16:07 +0000 (18:16 -0800)
committerJesse Gross <jesse@nicira.com>
Thu, 3 Feb 2011 23:03:11 +0000 (15:03 -0800)
commitbfa68a2b1fc49a8755748548836e92a5bae7bcb3
tree2bf1ac31f1783d3e68cf3c0058ee7a840a097ce9
parente7668254f2f8f7208905c858ffbc84a65bb13815
tunneling: Simplify path MTU discovery logic.

Previously, if path MTU discovery was disabled we would use the
tunnel MTU instead of the underlying route's path MTU but otherwise
still do PMTUD.  This doesn't make much sense because turning off
PMTUD really means to not check the size of the encapsulated packets
at all.  This removes the disconnect and simplifies the logic.

Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
datapath/tunnel.c