aboutsummaryrefslogtreecommitdiffstats
path: root/net/dccp
diff options
context:
space:
mode:
authorGerrit Renker <gerrit@erg.abdn.ac.uk>2008-12-08 04:18:05 -0500
committerDavid S. Miller <davem@davemloft.net>2008-12-08 04:18:05 -0500
commit0049bab5e765aa74cf767a834fa336e19453fc5e (patch)
treef3210e13c5645dbedffe90a4b1f1dca787673bb0 /net/dccp
parent63b8e2861f31868dce9c92fd7444f212a5a8a775 (diff)
dccp: Remove obsolete 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. Also removed are 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> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dccp')
-rw-r--r--net/dccp/ccid.c14
-rw-r--r--net/dccp/ccid.h5
-rw-r--r--net/dccp/feat.c13
-rw-r--r--net/dccp/minisocks.c2
4 files changed, 0 insertions, 34 deletions
diff --git a/net/dccp/ccid.c b/net/dccp/ccid.c
index 647cb0614f84..bcc643f992ae 100644
--- a/net/dccp/ccid.c
+++ b/net/dccp/ccid.c
@@ -253,20 +253,6 @@ out_module_put:
253 253
254EXPORT_SYMBOL_GPL(ccid_new); 254EXPORT_SYMBOL_GPL(ccid_new);
255 255
256struct ccid *ccid_hc_rx_new(unsigned char id, struct sock *sk, gfp_t gfp)
257{
258 return ccid_new(id, sk, 1, gfp);
259}
260
261EXPORT_SYMBOL_GPL(ccid_hc_rx_new);
262
263struct ccid *ccid_hc_tx_new(unsigned char id,struct sock *sk, gfp_t gfp)
264{
265 return ccid_new(id, sk, 0, gfp);
266}
267
268EXPORT_SYMBOL_GPL(ccid_hc_tx_new);
269
270static void ccid_delete(struct ccid *ccid, struct sock *sk, int rx) 256static void ccid_delete(struct ccid *ccid, struct sock *sk, int rx)
271{ 257{
272 struct ccid_operations *ccid_ops; 258 struct ccid_operations *ccid_ops;
diff --git a/net/dccp/ccid.h b/net/dccp/ccid.h
index 803343aed004..18f69423a708 100644
--- a/net/dccp/ccid.h
+++ b/net/dccp/ccid.h
@@ -111,11 +111,6 @@ extern int ccid_getsockopt_builtin_ccids(struct sock *sk, int len,
111extern struct ccid *ccid_new(unsigned char id, struct sock *sk, int rx, 111extern struct ccid *ccid_new(unsigned char id, struct sock *sk, int rx,
112 gfp_t gfp); 112 gfp_t gfp);
113 113
114extern struct ccid *ccid_hc_rx_new(unsigned char id, struct sock *sk,
115 gfp_t gfp);
116extern struct ccid *ccid_hc_tx_new(unsigned char id, struct sock *sk,
117 gfp_t gfp);
118
119static inline int ccid_get_current_rx_ccid(struct dccp_sock *dp) 114static inline int ccid_get_current_rx_ccid(struct dccp_sock *dp)
120{ 115{
121 struct ccid *ccid = dp->dccps_hc_rx_ccid; 116 struct ccid *ccid = dp->dccps_hc_rx_ccid;
diff --git a/net/dccp/feat.c b/net/dccp/feat.c
index 077f78d579c4..a0d5891a37bf 100644
--- a/net/dccp/feat.c
+++ b/net/dccp/feat.c
@@ -1124,22 +1124,9 @@ int dccp_feat_init(struct sock *sk)
1124 INIT_LIST_HEAD(&dmsk->dccpms_pending); /* XXX no longer used */ 1124 INIT_LIST_HEAD(&dmsk->dccpms_pending); /* XXX no longer used */
1125 INIT_LIST_HEAD(&dmsk->dccpms_conf); /* XXX no longer used */ 1125 INIT_LIST_HEAD(&dmsk->dccpms_conf); /* XXX no longer used */
1126 1126
1127 /* CCID L */
1128 rc = __feat_register_sp(&dp->dccps_featneg, DCCPF_CCID, 1, 0,
1129 &dmsk->dccpms_tx_ccid, 1);
1130 if (rc)
1131 goto out;
1132
1133 /* CCID R */
1134 rc = __feat_register_sp(&dp->dccps_featneg, DCCPF_CCID, 0, 0,
1135 &dmsk->dccpms_rx_ccid, 1);
1136 if (rc)
1137 goto out;
1138
1139 /* Ack ratio */ 1127 /* Ack ratio */
1140 rc = __feat_register_nn(&dp->dccps_featneg, DCCPF_ACK_RATIO, 0, 1128 rc = __feat_register_nn(&dp->dccps_featneg, DCCPF_ACK_RATIO, 0,
1141 dp->dccps_l_ack_ratio); 1129 dp->dccps_l_ack_ratio);
1142out:
1143 return rc; 1130 return rc;
1144} 1131}
1145 1132
diff --git a/net/dccp/minisocks.c b/net/dccp/minisocks.c
index 308b6b928c3d..210c346899ba 100644
--- a/net/dccp/minisocks.c
+++ b/net/dccp/minisocks.c
@@ -45,8 +45,6 @@ EXPORT_SYMBOL_GPL(dccp_death_row);
45void dccp_minisock_init(struct dccp_minisock *dmsk) 45void dccp_minisock_init(struct dccp_minisock *dmsk)
46{ 46{
47 dmsk->dccpms_sequence_window = sysctl_dccp_feat_sequence_window; 47 dmsk->dccpms_sequence_window = sysctl_dccp_feat_sequence_window;
48 dmsk->dccpms_rx_ccid = sysctl_dccp_feat_rx_ccid;
49 dmsk->dccpms_tx_ccid = sysctl_dccp_feat_tx_ccid;
50 dmsk->dccpms_send_ack_vector = sysctl_dccp_feat_send_ack_vector; 48 dmsk->dccpms_send_ack_vector = sysctl_dccp_feat_send_ack_vector;
51 dmsk->dccpms_send_ndp_count = sysctl_dccp_feat_send_ndp_count; 49 dmsk->dccpms_send_ndp_count = sysctl_dccp_feat_send_ndp_count;
52} 50}