[PATCH v3 4/9]: Resolve dependencies of features on choice of CCID

2007-10-03 Thread Gerrit Renker
Reworked patch, updated as requested: * removed `typedef const' * made all initialisation explicit, using field initialisers This increases the space somewhat, but indeed much better readability. * Ian I have added your Acked-by as requested, but please have another look and let me know

[PATCH 13/14]: Initialisation and type-checking of feature sysctls

2007-10-03 Thread Gerrit Renker
[DCCP]: Initialisation and type-checking of feature sysctls The number of feature sysctls is now smaller (it is instead now possible to set values on a per-connection basis via sockops); this patch takes care of their initialisation and some rudimentary type-checking: * Sequence Window uses

[PATCH 7/14]: No more CCID control blocks in LISTEN state

2007-10-03 Thread Gerrit Renker
[CCID3]: No more CCID control blocks in LISTEN state The CCIDs are activated as last of the features, at the end of the handshake, were the LISTEN state of the master socket is inherited into the server state of the child socket. Thus, the only states visible to CCIDs now are OPEN/PARTOPEN, and

[PATCH 5/14]: Clean up remains from old feature-negotiation infrastructure

2007-10-03 Thread Gerrit Renker
[DCCP]: Clean up remains from old feature-negotiation infrastructure The code removed by this patch is no longer referenced or used, the added lines update documentation and copyrights. Signed-off-by: Gerrit Renker [EMAIL PROTECTED] --- net/dccp/feat.c | 95

[PATCH 2/14]: Integration of dynamic feature activation - part 1 (socket setup)

2007-10-03 Thread Gerrit Renker
[DCCP]: Integration of dynamic feature activation - part 1 (socket setup) This first patch out of three replaces the hardcoded default settings with initialisation code for the dynamic feature negotiation. Signed-off-by: Gerrit Renker [EMAIL PROTECTED] --- net/dccp/proto.c | 43

[PATCH 1/14]: Activation of features after negotiation

2007-10-03 Thread Gerrit Renker
[DCCP]: Activation of features after negotiation This patch provides the post-processing of feature negotiation state, after the negotiation has completed. To this purpose, handlers are used and added to the dccp_feat_table. Each handler is passed a boolean flag whether the RX or TX side of the

[PATCH 0/14]: Finish up the feature negotiation during connection setup

2007-10-03 Thread Gerrit Renker
This batch finishes the feature-negotiation during connection setup. The remaining batch considers exchanging FN options in established state, which is a different kettle of fish. Patch #1: Introduces feature-activation handlers to dynamically activate feature values after negotiation.

[PATCH 8/14]: Remove manual influence on NDP Count feature

2007-10-03 Thread Gerrit Renker
[DCCP]: Remove manual influence on NDP Count feature The NDP count feature is handled automatically now by the feature negotiation code: * for CCID2 it is disabled, since the code does not use or even refer to NDP counts; * for CCID3 it is enabled, since NDP counts are used to determine loss

[PATCH 10/14]: Initialisation framework for feature negotiation

2007-10-03 Thread Gerrit Renker
[DCCP]: Initialisation framework for feature negotiation This initialises feature negotiation from two tables, which are initialised from sysctls. Furthermore, specifics of the implementation (e.g. currently short seqnos and ECN are not supported) are advertised for robustness. Signed-off-by:

[PATCH 9/14]: Phase out the use of boolean flag for Ack Vectors

2007-10-03 Thread Gerrit Renker
[ACKVEC]: Phase out the use of boolean flag for Ack Vectors This removes the use of the sysctl and the minisock variable for the Send Ack Vector feature, which is now handled fully dynamically via feature negotiation; i.e. when CCID2 is enabled, Ack Vectors are automatically enabled (as per RFC

Re: [PATCH 8/14]: Remove manual influence on NDP Count feature

2007-10-03 Thread Eddie Kohler
One slight comment. NDP Count is not required by CCID 3's *specification*. Without NDP Count, the receiver will simply treat ack losses like data losses; this can lead to lower send rates when acks are lost, but does not harm interoperability. However, it is totally reasonable for an

Re: [PATCH v3 4/9]: Resolve dependencies of features on choice of CCID

2007-10-03 Thread Ian McDonald
On 10/3/07, Gerrit Renker [EMAIL PROTECTED] wrote: Reworked patch, updated as requested: * removed `typedef const' * made all initialisation explicit, using field initialisers This increases the space somewhat, but indeed much better readability. * Ian I have added your Acked-by as

Re: [PATCH 3/14]: Integration of dynamic feature activation - part 2 (server side)

2007-10-03 Thread Ian McDonald
On 10/4/07, Gerrit Renker [EMAIL PROTECTED] wrote: [DCCP]: Integration of dynamic feature activation - part 2 (server side) This patch integrates the activation of features at the end of negotiation into the server-side code. Note: In dccp_create_openreq_child the request_sock argument is

Re: [PATCH 7/14]: No more CCID control blocks in LISTEN state

2007-10-03 Thread Ian McDonald
On 10/4/07, Gerrit Renker [EMAIL PROTECTED] wrote: [CCID3]: No more CCID control blocks in LISTEN state The CCIDs are activated as last of the features, at the end of the handshake, were the LISTEN state of the master socket is inherited into the server state of the child socket. Thus,

Re: [PATCH 9/14]: Phase out the use of boolean flag for Ack Vectors

2007-10-03 Thread Ian McDonald
On 10/4/07, Gerrit Renker [EMAIL PROTECTED] wrote: [ACKVEC]: Phase out the use of boolean flag for Ack Vectors This removes the use of the sysctl and the minisock variable for the Send Ack Vector feature, which is now handled fully dynamically via feature negotiation; i.e. when CCID2 is

Re: [PATCH 10/14]: Initialisation framework for feature negotiation

2007-10-03 Thread Ian McDonald
On 10/4/07, Gerrit Renker [EMAIL PROTECTED] wrote: [DCCP]: Initialisation framework for feature negotiation This initialises feature negotiation from two tables, which are initialised from sysctls. Furthermore, specifics of the implementation (e.g. currently short seqnos and ECN are not

Re: [PATCH 8/14]: Remove manual influence on NDP Count feature

2007-10-03 Thread Ian McDonald
On 10/4/07, Gerrit Renker [EMAIL PROTECTED] wrote: [DCCP]: Remove manual influence on NDP Count feature The NDP count feature is handled automatically now by the feature negotiation code: * for CCID2 it is disabled, since the code does not use or even refer to NDP counts; * for CCID3 it

Re: [PATCH 14/14]: Debugging Feature Negotiation

2007-10-03 Thread Ian McDonald
On 10/4/07, Gerrit Renker [EMAIL PROTECTED] wrote: [DCCP]: Debugging Feature Negotiation Since all feature-negotiation processing now takes place in feat.c, functions for producing verbose debugging output can be concentrated there. A number of functions to print out values, entry

Re: [PATCH 11/14]: Auto-load (when supported) CCID plugins for negotiation

2007-10-03 Thread Ian McDonald
On 10/4/07, Gerrit Renker [EMAIL PROTECTED] wrote: [DCCP]: Auto-load (when supported) CCID plugins for negotiation This adds auto-loading of CCIDs (when module loading is enabled) for the purpose of feature negotiation. It is done in dccp_feat_init(), which is in process context. The

Re: [PATCH 12/14]: Implement both feature-local and feature-remote Sequence Window feature

2007-10-03 Thread Ian McDonald
On 10/4/07, Gerrit Renker [EMAIL PROTECTED] wrote: [DCCP]: Implement both feature-local and feature-remote Sequence Window feature This adds full support for both local/remote Sequence Window feature, from which the * sequence-number-validity (W) and * acknowledgment-number-validity