aboutsummaryrefslogtreecommitdiffstats
path: root/net/sctp
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2012-07-19 15:31:33 -0400
committerDavid S. Miller <davem@davemloft.net>2012-07-20 16:31:21 -0400
commitf5b0a8743601a4477419171f5046bd07d1c080a0 (patch)
tree92e17ec293c3d0e35a0deda5d3bbf43710fb96ff /net/sctp
parentf8126f1d5136be1ca1a3536d43ad7a710b5620f8 (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/sctp')
-rw-r--r--net/sctp/transport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sctp/transport.c b/net/sctp/transport.c
index a6b7ee9ce28a..ec3a12b9b802 100644
--- a/net/sctp/transport.c
+++ b/net/sctp/transport.c
@@ -216,7 +216,7 @@ void sctp_transport_set_owner(struct sctp_transport *transport,
216void sctp_transport_pmtu(struct sctp_transport *transport, struct sock *sk) 216void sctp_transport_pmtu(struct sctp_transport *transport, struct sock *sk)
217{ 217{
218 /* If we don't have a fresh route, look one up */ 218 /* If we don't have a fresh route, look one up */
219 if (!transport->dst || transport->dst->obsolete > 1) { 219 if (!transport->dst || transport->dst->obsolete) {
220 dst_release(transport->dst); 220 dst_release(transport->dst);
221 transport->af_specific->get_dst(transport, &transport->saddr, 221 transport->af_specific->get_dst(transport, &transport->saddr,
222 &transport->fl, sk); 222 &transport->fl, sk);