
Solarflare
Server
Adapter
User
Guide
Solarflare
Adapters
on
Linux
Issue
20
©
Solarflare
Communications
2017
134
NOTE:
The
adapter
will
double
count
packets
less
that
64bytes
(
port_rx_lt64
)
as
also
being
a
CRC
error.
This
can
result
in
port_rx_bad
=>
rx_eth_crc_err
counter.
The
difference
should
be
equal
to
the
port_rx_lt64
counter.
3.29
Driver
Logging
Levels
For
the
Solarflare
net
driver,
two
settings
affect
the
verbosity
of
log
messages
appearing
in
dmesg
output
and
/var/log/messages
:
•
The
kernel
console
log
level
•
The
netif
message
per
network
log
level
The
kernel
console
log
level
controls
the
overall
log
message
verbosity
and
can
be
set
with
the
command
dmesg
‐
n
or
through
the
/proc/sys/kernel/printk
file:
echo
6
>
/proc/sys/kernel/printk
Refer
to
‘man
2
syslog’
for
log
levels
and
Documentation/sysctl/kernel.txt
for
a
description
of
the
values
in
/proc/sys/kernel/printk
.
The
netif
message
level
provides
additional
logging
control
for
a
specified
interface.
These
message
levels
are
documented
in
Documentation/networking/netif
‐
msg.txt
.
A
message
will
only
appear
on
the
terminal
console
if
both
the
kernel
console
log
level
and
netif
message
level
requirements
are
met.
The
current
netif
message
level
can
be
viewed
using
the
following
command:
ethtool
<iface>
|
grep
‐
A
1
'message
level:'
Current
message
level:
0x000020f7
(8439)
drv
probe
link
ifdown
ifup
rx_err
tx_err
hw
Changes
to
the
netif
message
level
can
be
made
with
ethtool.
Either
by
name:
ethtool
‐
s
<iface>
msglvl
rx_status
on
or
by
bit
mask:
ethtool
‐
s
<iface>
msglvl
0x7fff
The
initial
setting
of
the
netif
msg
level
for
all
interfaces
is
configured
using
the
debug
module
parameter
e.g.
modprobe
sfc
debug=0x7fff
ptp_filter_matches
Number
of
PTP
packets
hitting
the
PTP
filter.
ptp_non_filter_matches
Number
of
PTP
packets
which
did
not
match
the
PTP
filter.
Table
28:
Ethtool
‐
S
output
Field
Description