diff options
author | Daniel Borkmann <dborkman@redhat.com> | 2013-08-06 15:18:12 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-08-09 14:33:02 -0400 |
commit | cda5f98e36576596b9230483ec52bff3cc97eb21 (patch) | |
tree | b828a60d8b6000704d91e35d10247f322a8d3ef8 /include | |
parent | 2690048c01f32bf45d1c1e1ab3079bc10ad2aea7 (diff) |
net: sctp: convert sctp_checksum_disable module param into sctp sysctl
Get rid of the last module parameter for SCTP and make this
configurable via sysctl for SCTP like all the rest of SCTP's
configuration knobs.
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/netns/sctp.h | 3 | ||||
-rw-r--r-- | include/net/sctp/structs.h | 5 |
2 files changed, 3 insertions, 5 deletions
diff --git a/include/net/netns/sctp.h b/include/net/netns/sctp.h index 3573a81815ad..ebfdf1e7d402 100644 --- a/include/net/netns/sctp.h +++ b/include/net/netns/sctp.h | |||
@@ -129,6 +129,9 @@ struct netns_sctp { | |||
129 | 129 | ||
130 | /* Threshold for autoclose timeout, in seconds. */ | 130 | /* Threshold for autoclose timeout, in seconds. */ |
131 | unsigned long max_autoclose; | 131 | unsigned long max_autoclose; |
132 | |||
133 | /* Flag to disable SCTP checksumming. */ | ||
134 | int checksum_disable; | ||
132 | }; | 135 | }; |
133 | 136 | ||
134 | #endif /* __NETNS_SCTP_H__ */ | 137 | #endif /* __NETNS_SCTP_H__ */ |
diff --git a/include/net/sctp/structs.h b/include/net/sctp/structs.h index d9c93a77b1a9..06ebeaaaa9aa 100644 --- a/include/net/sctp/structs.h +++ b/include/net/sctp/structs.h | |||
@@ -141,10 +141,6 @@ extern struct sctp_globals { | |||
141 | /* This is the sctp port control hash. */ | 141 | /* This is the sctp port control hash. */ |
142 | int port_hashsize; | 142 | int port_hashsize; |
143 | struct sctp_bind_hashbucket *port_hashtable; | 143 | struct sctp_bind_hashbucket *port_hashtable; |
144 | |||
145 | /* Flag to indicate whether computing and verifying checksum | ||
146 | * is disabled. */ | ||
147 | bool checksum_disable; | ||
148 | } sctp_globals; | 144 | } sctp_globals; |
149 | 145 | ||
150 | #define sctp_max_instreams (sctp_globals.max_instreams) | 146 | #define sctp_max_instreams (sctp_globals.max_instreams) |
@@ -156,7 +152,6 @@ extern struct sctp_globals { | |||
156 | #define sctp_assoc_hashtable (sctp_globals.assoc_hashtable) | 152 | #define sctp_assoc_hashtable (sctp_globals.assoc_hashtable) |
157 | #define sctp_port_hashsize (sctp_globals.port_hashsize) | 153 | #define sctp_port_hashsize (sctp_globals.port_hashsize) |
158 | #define sctp_port_hashtable (sctp_globals.port_hashtable) | 154 | #define sctp_port_hashtable (sctp_globals.port_hashtable) |
159 | #define sctp_checksum_disable (sctp_globals.checksum_disable) | ||
160 | 155 | ||
161 | /* SCTP Socket type: UDP or TCP style. */ | 156 | /* SCTP Socket type: UDP or TCP style. */ |
162 | typedef enum { | 157 | typedef enum { |