Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
wr-switch-sw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
white-rabbit
wr-switch-sw
Commits
dc68faa0
Commit
dc68faa0
authored
Aug 24, 2015
by
Adam Wujek
💬
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'rubi-fix_send'
Fix problem with hanging send in PPSI
parents
425fe06d
8c3baabe
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
nic-core.c
kernel/wr_nic/nic-core.c
+3
-2
ppsi
userspace/ppsi
+1
-1
No files found.
kernel/wr_nic/nic-core.c
View file @
dc68faa0
...
...
@@ -188,7 +188,7 @@ static int wrn_start_xmit(struct sk_buff *skb, struct net_device *dev)
desc
=
__wrn_alloc_tx_desc
(
wrn
);
id
=
(
wrn
->
id
++
)
&
0xffff
;
if
(
id
==
0
)
/* 0 cannot be used in the SPEC; irrelevant in WRS */
id
=
wrn
->
id
++
;
id
=
(
wrn
->
id
++
)
&
0xffff
;
spin_unlock_irqrestore
(
&
wrn
->
lock
,
flags
);
if
(
desc
<
0
)
/* error */
...
...
@@ -200,8 +200,9 @@ static int wrn_start_xmit(struct sk_buff *skb, struct net_device *dev)
//spin_lock_irqsave(&ep->lock, flags);
if
(
wrn
->
skb_desc
[
desc
].
skb
)
{
pr_
err
(
"%s: descriptor overflow: tx timestamp pending
\n
"
,
pr_
warn
(
"%s: discarding tx frame that got no timestamp
\n
"
,
__func__
);
dev_kfree_skb_irq
(
wrn
->
skb_desc
[
desc
].
skb
);
}
wrn
->
skb_desc
[
desc
].
skb
=
skb
;
/* Save for tx irq and stamping */
wrn
->
skb_desc
[
desc
].
frame_id
=
id
;
/* Save for tx irq and stamping */
...
...
ppsi
@
b9f3fde4
Subproject commit
ed2122f4b55dc3eaed1f5c446c71ae0d4d89afe4
Subproject commit
b9f3fde488e31464343af53ca74f99f57e2ba4f9
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