Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Levin Zimmermann
neoppod
Commits
9888f047
Commit
9888f047
authored
Oct 19, 2017
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
X neotest: Do not crash if kernel is too old to support gro_flush_timeout
parent
352cd100
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
go/neo/t/neotest
go/neo/t/neotest
+7
-3
No files found.
go/neo/t/neotest
View file @
9888f047
...
...
@@ -694,11 +694,15 @@ system_info() {
s+
=
", speed=
$speed
"
s+
=
", mtu=
`
cat
$nic
/mtu
`
"
s+
=
", txqlen=
`
cat
$nic
/tx_queue_len
`
"
tgroflush_ns
=
`
cat
$nic
/gro_flush_timeout
`
s+
=
", gro_flush_timeout=
`
python
-c
"print '%.3f' % (
$tgroflush_ns
/ 1E3)"
`
µs"
if
test
-e
$nic
/gro_flush_timeout
;
then
tgroflush_ns
=
`
cat
$nic
/gro_flush_timeout
`
s+
=
", gro_flush_timeout=
`
python
-c
"print '%.3f' % (
$tgroflush_ns
/ 1E3)"
`
µs"
else
s+
=
", !gro_flush_timeout"
fi
echo
"
$s
"
# XXX warn if gro_flush_timeout=0 ?
# XXX warn if gro_flush_timeout=0
or unsupported
?
# emit NIC warnings
...
...
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