Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Simple PCIe FMC carrier SPEC - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
Simple PCIe FMC carrier SPEC - Software
Commits
03c83c39
Commit
03c83c39
authored
Nov 18, 2013
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
backport: remove timestamps, which changed in 2.6.37
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
bc1026a3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
20 deletions
+2
-20
nic-core.c
kernel/wr_nic/nic-core.c
+2
-20
No files found.
kernel/wr_nic/nic-core.c
View file @
03c83c39
...
...
@@ -158,7 +158,6 @@ static int wrn_start_xmit(struct sk_buff *skb, struct net_device *dev)
{
struct
wrn_ep
*
ep
=
netdev_priv
(
dev
);
struct
wrn_dev
*
wrn
=
ep
->
wrn
;
struct
skb_shared_info
*
info
=
skb_shinfo
(
skb
);
//unsigned long flags;
int
desc
;
int
id
;
...
...
@@ -197,12 +196,6 @@ static int wrn_start_xmit(struct sk_buff *skb, struct net_device *dev)
//netif_stop_queue(dev); /* Queue stopped until tx is over (FIXME?) */
/* FIXME: check the WRN_EP_STAMPING_TX flag and its meaning */
if
(
info
->
tx_flags
&
SKBTX_HW_TSTAMP
)
{
/* hardware timestamping is enabled */
do_stamp
=
1
;
}
/* This both copies the data to the descriptr and fires tx */
__wrn_tx_desc
(
ep
,
desc
,
data
,
len
,
id
,
do_stamp
);
...
...
@@ -451,7 +444,6 @@ static void wrn_tx_interrupt(struct wrn_dev *wrn)
{
struct
wrn_txd
*
tx
;
struct
sk_buff
*
skb
;
struct
skb_shared_info
*
info
;
u32
reg
;
int
i
;
...
...
@@ -469,18 +461,8 @@ static void wrn_tx_interrupt(struct wrn_dev *wrn)
pr_err
(
"no socket in descriptor %i
\n
"
,
i
);
return
;
}
info
=
skb_shinfo
(
skb
);
if
(
info
->
tx_flags
&
SKBTX_HW_TSTAMP
)
{
/* hardware timestamping is enabled */
info
->
tx_flags
|=
SKBTX_IN_PROGRESS
;
pr_debug
(
"%s: %i -- in progress
\n
"
,
__func__
,
__LINE__
);
wrn_tx_tstamp_skb
(
wrn
,
i
);
/* It has been freed if found; otherwise keep it */
}
else
{
dev_kfree_skb_irq
(
skb
);
wrn
->
skb_desc
[
i
].
skb
=
0
;
}
dev_kfree_skb_irq
(
skb
);
wrn
->
skb_desc
[
i
].
skb
=
0
;
wrn
->
next_tx_tail
=
__wrn_next_desc
(
i
);
}
}
...
...
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