Remains of seq_file conversion for DECnet, plus fixes

Steven Whitehouse (steve@gw.chygwyn.com)
Thu, 1 May 2003 14:27:08 +0100 (BST)


Hi,

My latest DECnet patch for 2.5 has the following features:

o Introduce kfree_release() in seq_file.c for use of DECnet and eventually
IP as well (and other things...?)
o Added proc_net_fops_create() like proc_net_create() but with file_operations
argument to use with seq_file code (cleans up some #ifdefs). If there are
no objections, I'll send a patch for IPv4/6 shortly.
o Removed blksize from decnet device parameters - use the device mtu like we
ought to.
o Removed /proc/net/decnet_route file - I don't think anybody ever used it
and it was lacking a full enough description of the routes to be useful.
ip -D route list is much better :-)
o Added rt_local_src entry to decnet routes so that we get the local source
address right when forwarding.
o Added netfilter subdir for decnet and add the routing grabulator
o Added correct proto argument to struct flowi for routing
o MSG_MORE in sendmsg (ignored, but accepted whereas before we'd error)
o /proc/net/decnet converted to seq_file
o /proc/net/decnet_dev converted to seq_file
o /proc/net/decnet_cache converted to seq_file
o Use pskb_may_pull() and add code to linearize skbs on the input path
except for those containing data.
o Fixed returned packet code (mostly - some left to do)
o update_pmtu() method for decnet dst entries (ip_gre device assumes this
method exists)
o Fixed bug in forwarding to get IE bit set correctly
o Fixed compile bugs with CONFIG_DECNET_ROUTE_FWMARK pointed out by Adrian
Bunk
o Fixed zero dest code to grab an address from loopback
o Fixed local routes in dn_route_output_slow()
o Fixed error case in dn_route_input/output_slow() pointed out by Rusty

Its got big again, so I've put it here, if you'd like it in bits rather than
all one lump, just shout:

http://www.chygwyn.com/~steve/kpatch/decnet/decnet-2.5.68-bk10-seqfile.diff

If you've been wondering when the routing in DECnet would reach the
stage where its actually likely to be useful, now is that time :-) We
don't yet have full automatic routing, but all the kernel infrastructure
is now in place and the rest can be done in userspace. In the mean time,
iproute2 can set up manual routes.

I'm going to write some docs and post them somewhere in the next few weeks
to give more detailed info on how to use the various features.

Steve.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/