Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
86
Issues
86
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
White Rabbit Switch - Software
Commits
8dc9ba27
Commit
8dc9ba27
authored
Apr 11, 2011
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nic/nic-core.c: better (and less) printk messages
parent
04dbd450
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
nic-core.c
nic/nic-core.c
+4
-7
No files found.
nic/nic-core.c
View file @
8dc9ba27
...
...
@@ -122,9 +122,9 @@ static void __wrn_tx_desc(struct wrn_ep *ep, int desc,
struct
wrn_txd
__iomem
*
tx
=
wrn
->
txd
+
desc
;
/* data */
pr
intk
(
"%s: %i -- data %p, len %i "
,
__func__
,
__LINE__
,
pr
_debug
(
"%s: %i -- data %p, len %i "
,
__func__
,
__LINE__
,
data
,
len
);
pr
intk
(
"-- desc %i (tx %p)
\n
"
,
desc
,
tx
);
pr
_debug
(
"-- desc %i (tx %p)
\n
"
,
desc
,
tx
);
__wrn_copy_out
(
ptr
,
data
,
len
);
...
...
@@ -191,9 +191,7 @@ static int wrn_start_xmit(struct sk_buff *skb, struct net_device *dev)
}
/* This both copies the data to the descriptr and fires tx */
printk
(
"%s: %i
\n
"
,
__func__
,
__LINE__
);
__wrn_tx_desc
(
ep
,
desc
,
data
,
len
,
id
,
do_stamp
);
printk
(
"%s: %i
\n
"
,
__func__
,
__LINE__
);
/* We are done, this is trivial maiintainance*/
ep
->
stats
.
tx_packets
++
;
...
...
@@ -295,7 +293,7 @@ static void __wrn_rx_descriptor(struct wrn_dev *wrn, int desc)
ts_r
=
NIC_RX1_D2_TS_R_R
(
r2
);
ts_f
=
NIC_RX1_D2_TS_F_R
(
r2
);
}
else
{
pr
intk
(
"No RX OOB? Something's seriously fkd....
\n
"
);
pr
_err
(
"No RX OOB? Something's seriously fkd....
\n
"
);
writel
(
(
2000
<<
16
)
|
offset
,
&
rx
->
rx3
);
writel
(
NIC_RX1_D1_EMPTY
,
&
rx
->
rx1
);
/* FIXME: count as error */
...
...
@@ -347,7 +345,6 @@ static void __wrn_rx_descriptor(struct wrn_dev *wrn, int desc)
dev
->
last_rx
=
jiffies
;
dev
->
stats
.
rx_packets
++
;
dev
->
stats
.
rx_bytes
+=
len
;
printk
(
"%i
\n
"
,
__LINE__
);
netif_receive_skb
(
skb
);
}
...
...
@@ -390,7 +387,7 @@ static void wrn_tx_interrupt(struct wrn_dev *wrn)
if
(
shtx
->
hardware
)
{
/* hardware timestamping is enabled */
shtx
->
in_progress
=
1
;
pr
intk
(
"%s: %i -- in progress
\n
"
,
__func__
,
__LINE__
);
pr
_debug
(
"%s: %i -- in progress
\n
"
,
__func__
,
__LINE__
);
wrn_tstamp_find_skb
(
wrn
,
i
);
/* It has been freed if found; otherwise keep it */
}
else
{
...
...
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