Skip to content

Commit

Permalink
xfrm: remove irrelevant comment in xfrm_input().
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Steffen Klassert <[email protected]>
  • Loading branch information
ramirosen authored and klassert committed Aug 19, 2013
1 parent 99565a6 commit e3fec5a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions net/xfrm/xfrm_policy.c
Original file line number Diff line number Diff line change
Expand Up @@ -2132,8 +2132,6 @@ struct dst_entry *xfrm_lookup(struct net *net, struct dst_entry *dst_orig,
* 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);
Expand Down

0 comments on commit e3fec5a

Please sign in to comment.