xfrm: remove irrelevant comment in xfrm_input().
authorRami Rosen <ramirose@gmail.com>
Mon, 19 Aug 2013 12:47:11 +0000 (15:47 +0300)
committerSteffen Klassert <steffen.klassert@secunet.com>
Mon, 19 Aug 2013 10:45:16 +0000 (12:45 +0200)
This patch removes a comment in xfrm_input() which became irrelevant
due to commit 2774c13, "xfrm: Handle blackhole route creation via afinfo".
That commit removed returning -EREMOTE in the xfrm_lookup() method when the
packet should be discarded  and also removed the correspoinding -EREMOTE
handlers. This was replaced by calling the make_blackhole() method. Therefore
the comment about -EREMOTE is not relevant anymore.

Signed-off-by: Rami Rosen <ramirose@gmail.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/xfrm/xfrm_policy.c

index f7078eb5b64e2bba4e98c5d3150d2b803816f870..ad8cc7bcf0651eb1f9f00085f779a80060372c15 100644 (file)
@@ -2132,8 +2132,6 @@ restart:
                 * have the xfrm_state's. We need to wait for KM to
                 * negotiate new SA's or bail out with error.*/
                if (net->xfrm.sysctl_larval_drop) {
-                       /* EREMOTE tells the caller to generate
-                        * a one-shot blackhole route. */
                        dst_release(dst);
                        xfrm_pols_put(pols, drop_pols);
                        XFRM_INC_STATS(net, LINUX_MIB_XFRMOUTNOSTATES);