diff options
author | David S. Miller <davem@davemloft.net> | 2012-07-19 15:31:33 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-07-20 16:31:21 -0400 |
commit | f5b0a8743601a4477419171f5046bd07d1c080a0 (patch) | |
tree | 92e17ec293c3d0e35a0deda5d3bbf43710fb96ff /net/decnet | |
parent | f8126f1d5136be1ca1a3536d43ad7a710b5620f8 (diff) |
net: Document dst->obsolete better.
Add a big comment explaining how the field works, and use defines
instead of magic constants for the values assigned to it.
Suggested by Joe Perches.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/decnet')
-rw-r--r-- | net/decnet/dn_route.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/decnet/dn_route.c b/net/decnet/dn_route.c index 47de90d8fe94..23cc11dd4e40 100644 --- a/net/decnet/dn_route.c +++ b/net/decnet/dn_route.c | |||
@@ -1176,7 +1176,7 @@ make_route: | |||
1176 | if (dev_out->flags & IFF_LOOPBACK) | 1176 | if (dev_out->flags & IFF_LOOPBACK) |
1177 | flags |= RTCF_LOCAL; | 1177 | flags |= RTCF_LOCAL; |
1178 | 1178 | ||
1179 | rt = dst_alloc(&dn_dst_ops, dev_out, 1, 0, DST_HOST); | 1179 | rt = dst_alloc(&dn_dst_ops, dev_out, 1, DST_OBSOLETE_NONE, DST_HOST); |
1180 | if (rt == NULL) | 1180 | if (rt == NULL) |
1181 | goto e_nobufs; | 1181 | goto e_nobufs; |
1182 | 1182 | ||
@@ -1444,7 +1444,7 @@ static int dn_route_input_slow(struct sk_buff *skb) | |||
1444 | } | 1444 | } |
1445 | 1445 | ||
1446 | make_route: | 1446 | make_route: |
1447 | rt = dst_alloc(&dn_dst_ops, out_dev, 0, 0, DST_HOST); | 1447 | rt = dst_alloc(&dn_dst_ops, out_dev, 0, DST_OBSOLETE_NONE, DST_HOST); |
1448 | if (rt == NULL) | 1448 | if (rt == NULL) |
1449 | goto e_nobufs; | 1449 | goto e_nobufs; |
1450 | 1450 | ||