* [PATCH 6/14]: Remove now unused parts of the old CCID interface
@ 2007-10-03 14:02 Gerrit Renker
2007-10-03 20:01 ` Ian McDonald
0 siblings, 1 reply; 2+ messages in thread
From: Gerrit Renker @ 2007-10-03 14:02 UTC (permalink / raw)
To: dccp
[DCCP]: Remove now unused parts of the old CCID interface
The TX/RX CCIDs of the minisock are now redundant; similar to the Ack Vector case,
their value equals initially that of the sysctl, but at the end of feature negotiation
may be something different.
The old interface removed by this patch thus has been replaced by the newer interface to
dynamically query the currently loaded CCIDs earlier in this patch set.
Also removed the constructors for the TX CCID and the RX CCID, since the switch rx/non-rx
is done by the handler in minisocks.c (and the handler is the only place in the code
where CCIDs are loaded).
Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
---
Documentation/networking/dccp.txt | 13 +++++++------
include/linux/dccp.h | 3 ---
net/dccp/ccid.c | 14 --------------
net/dccp/ccid.h | 5 -----
net/dccp/feat.c | 12 ------------
net/dccp/minisocks.c | 2 --
6 files changed, 7 insertions(+), 42 deletions(-)
--- a/net/dccp/minisocks.c
+++ b/net/dccp/minisocks.c
@@ -45,8 +45,6 @@ EXPORT_SYMBOL_GPL(dccp_death_row);
void dccp_minisock_init(struct dccp_minisock *dmsk)
{
dmsk->dccpms_sequence_window = sysctl_dccp_feat_sequence_window;
- dmsk->dccpms_rx_ccid = sysctl_dccp_feat_rx_ccid;
- dmsk->dccpms_tx_ccid = sysctl_dccp_feat_tx_ccid;
dmsk->dccpms_ack_ratio = sysctl_dccp_feat_ack_ratio;
dmsk->dccpms_send_ack_vector = sysctl_dccp_feat_send_ack_vector;
dmsk->dccpms_send_ndp_count = sysctl_dccp_feat_send_ndp_count;
--- a/Documentation/networking/dccp.txt
+++ b/Documentation/networking/dccp.txt
@@ -136,18 +136,19 @@ retries2
send_ndp = 1
Whether or not to send NDP count options (sec. 7.7.2).
+tx_ccid = 2
+ Default CCID for the sender-receiver half-connection. Depending on the
+ choice of CCID, the Send Ack Vector feature is enabled automatically.
+
+rx_ccid = 2
+ Default CCID for the receiver-sender half-connection; see tx_ccid.
+
send_ackvec = 1
Whether or not to send Ack Vector options (sec. 11.5).
ack_ratio = 2
The default Ack Ratio (sec. 11.3) to use.
-tx_ccid = 2
- Default CCID for the sender-receiver half-connection.
-
-rx_ccid = 2
- Default CCID for the receiver-sender half-connection.
-
seq_window = 100
The initial sequence window (sec. 7.5.2).
--- a/include/linux/dccp.h
+++ b/include/linux/dccp.h
@@ -382,7 +382,6 @@ static inline unsigned int dccp_hdr_len(
* Will be used to pass the state from dccp_request_sock to dccp_sock.
*
* @dccpms_sequence_window - Sequence Window Feature (section 7.5.2)
- * @dccpms_ccid - Congestion Control Id (CCID) (section 10)
* @dccpms_send_ack_vector - Send Ack Vector Feature (section 11.5)
* @dccpms_send_ndp_count - Send NDP Count Feature (7.7.2)
* @dccpms_ack_ratio - Ack Ratio Feature (section 11.3)
@@ -391,8 +390,6 @@ static inline unsigned int dccp_hdr_len(
*/
struct dccp_minisock {
__u64 dccpms_sequence_window;
- __u8 dccpms_rx_ccid;
- __u8 dccpms_tx_ccid;
__u8 dccpms_send_ack_vector;
__u8 dccpms_send_ndp_count;
__u8 dccpms_ack_ratio;
--- a/net/dccp/feat.c
+++ b/net/dccp/feat.c
@@ -1025,18 +1025,6 @@ int dccp_feat_init(struct sock *sk)
INIT_LIST_HEAD(&dmsk->dccpms_pending); /* XXX no longer used */
INIT_LIST_HEAD(&dmsk->dccpms_conf); /* XXX no longer used */
- /* CCID L */
- rc = dccp_feat_register_sp(&dp->dccps_featneg, DCCPF_CCID, 1, 0,
- &dmsk->dccpms_tx_ccid, 1);
- if (rc)
- goto out;
-
- /* CCID R */
- rc = dccp_feat_register_sp(&dp->dccps_featneg, DCCPF_CCID, 0, 0,
- &dmsk->dccpms_rx_ccid, 1);
- if (rc)
- goto out;
-
/* Ack ratio */
rc = dccp_feat_register_nn(&dp->dccps_featneg, DCCPF_ACK_RATIO, 0,
dmsk->dccpms_ack_ratio);
--- a/net/dccp/ccid.c
+++ b/net/dccp/ccid.c
@@ -253,20 +253,6 @@ out_module_put:
EXPORT_SYMBOL_GPL(ccid_new);
-struct ccid *ccid_hc_rx_new(unsigned char id, struct sock *sk, gfp_t gfp)
-{
- return ccid_new(id, sk, 1, gfp);
-}
-
-EXPORT_SYMBOL_GPL(ccid_hc_rx_new);
-
-struct ccid *ccid_hc_tx_new(unsigned char id,struct sock *sk, gfp_t gfp)
-{
- return ccid_new(id, sk, 0, gfp);
-}
-
-EXPORT_SYMBOL_GPL(ccid_hc_tx_new);
-
static void ccid_delete(struct ccid *ccid, struct sock *sk, int rx)
{
struct ccid_operations *ccid_ops;
--- a/net/dccp/ccid.h
+++ b/net/dccp/ccid.h
@@ -88,11 +88,6 @@ extern int ccid_getsockopt_available_cc
extern struct ccid *ccid_new(unsigned char id, struct sock *sk, int rx,
gfp_t gfp);
-extern struct ccid *ccid_hc_rx_new(unsigned char id, struct sock *sk,
- gfp_t gfp);
-extern struct ccid *ccid_hc_tx_new(unsigned char id, struct sock *sk,
- gfp_t gfp);
-
static inline int ccid_get_current_id(struct dccp_sock *dp, bool rx)
{
struct ccid *ccid = rx ? dp->dccps_hc_rx_ccid : dp->dccps_hc_tx_ccid;
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH 6/14]: Remove now unused parts of the old CCID interface
2007-10-03 14:02 [PATCH 6/14]: Remove now unused parts of the old CCID interface Gerrit Renker
@ 2007-10-03 20:01 ` Ian McDonald
0 siblings, 0 replies; 2+ messages in thread
From: Ian McDonald @ 2007-10-03 20:01 UTC (permalink / raw)
To: dccp
On 10/4/07, Gerrit Renker <gerrit@erg.abdn.ac.uk> wrote:
> [DCCP]: Remove now unused parts of the old CCID interface
>
> The TX/RX CCIDs of the minisock are now redundant; similar to the Ack Vector case,
> their value equals initially that of the sysctl, but at the end of feature negotiation
> may be something different.
>
> The old interface removed by this patch thus has been replaced by the newer interface to
> dynamically query the currently loaded CCIDs earlier in this patch set.
>
> Also removed the constructors for the TX CCID and the RX CCID, since the switch rx/non-rx
> is done by the handler in minisocks.c (and the handler is the only place in the code
> where CCIDs are loaded).
>
> Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
Acked-by: Ian McDonald <ian.mcdonald@jandi.co.nz>
--
Web1: http://wand.net.nz/~iam4/
Web2: http://www.jandi.co.nz
Blog: http://iansblog.jandi.co.nz
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-10-03 20:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-03 14:02 [PATCH 6/14]: Remove now unused parts of the old CCID interface Gerrit Renker
2007-10-03 20:01 ` Ian McDonald
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox