This repository was archived by the owner on Dec 20, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 25
25
static int zero = 0 ;
26
26
static int one = 1 ;
27
27
static int ushort_max = USHRT_MAX ;
28
+ static int min_sndbuf = SOCK_MIN_SNDBUF ;
29
+ static int min_rcvbuf = SOCK_MIN_RCVBUF ;
28
30
29
31
#ifdef CONFIG_RPS
30
32
static int rps_sock_flow_sysctl (struct ctl_table * table , int write ,
@@ -223,31 +225,31 @@ static struct ctl_table net_core_table[] = {
223
225
.maxlen = sizeof (int ),
224
226
.mode = 0644 ,
225
227
.proc_handler = proc_dointvec_minmax ,
226
- .extra1 = & one ,
228
+ .extra1 = & min_sndbuf ,
227
229
},
228
230
{
229
231
.procname = "rmem_max" ,
230
232
.data = & sysctl_rmem_max ,
231
233
.maxlen = sizeof (int ),
232
234
.mode = 0644 ,
233
235
.proc_handler = proc_dointvec_minmax ,
234
- .extra1 = & one ,
236
+ .extra1 = & min_rcvbuf ,
235
237
},
236
238
{
237
239
.procname = "wmem_default" ,
238
240
.data = & sysctl_wmem_default ,
239
241
.maxlen = sizeof (int ),
240
242
.mode = 0644 ,
241
243
.proc_handler = proc_dointvec_minmax ,
242
- .extra1 = & one ,
244
+ .extra1 = & min_sndbuf ,
243
245
},
244
246
{
245
247
.procname = "rmem_default" ,
246
248
.data = & sysctl_rmem_default ,
247
249
.maxlen = sizeof (int ),
248
250
.mode = 0644 ,
249
251
.proc_handler = proc_dointvec_minmax ,
250
- .extra1 = & one ,
252
+ .extra1 = & min_rcvbuf ,
251
253
},
252
254
{
253
255
.procname = "dev_weight" ,
You can’t perform that action at this time.
0 commit comments