Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
3a1bbf18
Commit
3a1bbf18
authored
Feb 04, 2011
by
Simon Horman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
IPVS: ip_vs_todrop() becomes a noop when CONFIG_SYSCTL is undefined
Signed-off-by:
Simon Horman
<
horms@verge.net.au
>
parent
b27d777e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
include/net/ip_vs.h
include/net/ip_vs.h
+4
-0
No files found.
include/net/ip_vs.h
View file @
3a1bbf18
...
...
@@ -1253,6 +1253,7 @@ extern int ip_vs_icmp_xmit_v6
int
offset
);
#endif
#ifdef CONFIG_SYSCTL
/*
* This is a simple mechanism to ignore packets when
* we are loaded. Just set ip_vs_drop_rate to 'n' and
...
...
@@ -1268,6 +1269,9 @@ static inline int ip_vs_todrop(struct netns_ipvs *ipvs)
ipvs
->
drop_counter
=
ipvs
->
drop_rate
;
return
1
;
}
#else
static
inline
int
ip_vs_todrop
(
struct
netns_ipvs
*
ipvs
)
{
return
0
;
}
#endif
/*
* ip_vs_fwd_tag returns the forwarding tag of the connection
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment