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
9888f047
Commit
9888f047
authored
Oct 19, 2017
by
Kirill Smelkov
1
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() {
...
@@ -694,11 +694,15 @@ system_info() {
s+
=
", speed=
$speed
"
s+
=
", speed=
$speed
"
s+
=
", mtu=
`
cat
$nic
/mtu
`
"
s+
=
", mtu=
`
cat
$nic
/mtu
`
"
s+
=
", txqlen=
`
cat
$nic
/tx_queue_len
`
"
s+
=
", txqlen=
`
cat
$nic
/tx_queue_len
`
"
tgroflush_ns
=
`
cat
$nic
/gro_flush_timeout
`
if
test
-e
$nic
/gro_flush_timeout
;
then
s+
=
", gro_flush_timeout=
`
python
-c
"print '%.3f' % (
$tgroflush_ns
/ 1E3)"
`
µs"
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
"
echo
"
$s
"
# XXX warn if gro_flush_timeout=0 ?
# XXX warn if gro_flush_timeout=0
or unsupported
?
# emit NIC warnings
# emit NIC warnings
...
...
Kirill Smelkov
@kirr
mentioned in commit
26006d7e
·
Jul 12, 2018
mentioned in commit
26006d7e
mentioned in commit 26006d7ece004407f1f255316b5ac355cf3473fb
Toggle commit list
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