Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Kirill Smelkov
neo
Commits
fc58c089
Commit
fc58c089
authored
May 29, 2020
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stress: add support for old nftables
parent
f21cdd86
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
tools/stress
tools/stress
+3
-2
No files found.
tools/stress
View file @
fc58c089
...
...
@@ -47,7 +47,8 @@ NFT_TEMPLATE = """\
policy accept
meta l4proto tcp %s dscp 1 mark 1 counter reject with tcp reset
}
}"""
}
"""
SocketConnector
.
KEEPALIVE
=
5
,
1
,
1
...
...
@@ -400,7 +401,7 @@ class Application(StressApplication):
p
.
start
()
ruleset
=
NFT_TEMPLATE
%
(
nft_family
,
self
.
_nft_table
,
nft_family
,
'
\
n
'
.
join
(
queue
),
nft_family
)
p
=
subprocess
.
Popen
((
'nft'
,
'-f'
,
'
-
'
),
stdin
=
subprocess
.
PIPE
,
p
=
subprocess
.
Popen
((
'nft'
,
'-f'
,
'
/dev/stdin
'
),
stdin
=
subprocess
.
PIPE
,
stdout
=
subprocess
.
PIPE
,
stderr
=
subprocess
.
STDOUT
)
err
=
p
.
communicate
(
ruleset
)[
0
].
rstrip
()
if
p
.
poll
():
...
...
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