2005-08-03 Martin Hunt * transport.c: Comment out a couple printks. 2005-08-01 Martin Hunt * control.h: Remove STP commands from here and put in transport_msgs. * transport_msgs.h: New file containing the structs and values for the messages exchanged between stpd and transport. * transport.h: Moved stuff shared with stpd to transport_msgs.h * transport.c: Complete rewrite to better handle complicated initialization involving exchanging data with stpd. Supports buffer size negotiation and more. 2005-07-18 Martin Hunt * transport.h (_stp_transport_write): Call _stp_relay_write(). * transport.c (_stp_cleanup_and_exit): Print transport failure count. (_stp_relay_write): Like relay_write() except returns -1 on error. 2005-07-14 Tom Zanussi * netlink.c (_stp_netlink_open): Add missing delayed_pkts initialization. 2005-07-08 Martin Hunt * transport.c: Rename pid to _stp_pid. Rename t to _stp_tport. (_stp_cleanup_and_exit): New internal function. (stp_exit_helper): Call _stp_cleanup_and_exit(). (_stp_transport_cleanup): New function. (_stp_cmd_handler): Remove handler for STP_TRANSPORT_MODE. The transport now notifies the daemon of the transport. (_stp_transport_close): No longer calls _stp_exit_helper(). That is done by _stp_transport_cleanup(). (_stp_transport_open): When done, call _stp_handle_transport() to notify the daemon what our transport is. (_stp_transport_send): Put a retry limit on sends. * transport.h: Rename pid to _stp_pid. (_stp_transport_cleanup): Add prototype. 2005-06-23 Martin Hunt * transport.h: Move all the transport open stuff here and provide a convenient macro. * control.c: Replace macro DEFINE_SPINLOCK because some kernels don't have it. 2005-06-20 Tom Zanussi * control.h: Added STP_TRANSPORT_MODE command. * transport.c: Lots of changes, most importantly added transport mode command, which also sends buffer sizes to daemon, added limit to number of attempts to sending STP_EXIT (in case there is no daemon), moved exit helper call. * transport.h: Added transport type enum and transport info struct for communication with userspace, changed and moved a couple functions to transport.c. 2005-05-17 Martin Hunt * transport.c (_stp_transport_close): Call stp_exit_helper() directly instead of using work queue. 2005-05-16 Martin Hunt * transport.c (_stp_cmd_handler): For STP_EXIT, schedule a work queue to do the exit functions. (_stp_transport_close): Call work queue for STP_EXIT. (_stp_transport_send): Call _stp_ctrl_send() like before, except when in probe_exit(). In that case, keep retrying on send errors until we succeed. * transport.h (_stp_transport_write): Change to call _stp_transport_send() for NETLINK_ONLY. * Makefile (KDIR): set to /lib/modules/... instead of /usr/local/src/...