Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Software for White Rabbit PTP Core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
31
Issues
31
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
Software for White Rabbit PTP Core
Commits
f15802c0
Commit
f15802c0
authored
Oct 08, 2015
by
Grzegorz Daniluk
Committed by
Alessandro Rubini
Oct 13, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
marking rx timestamps invalid, when spll is still shifting phase
parent
6504322e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
net.c
lib/net.c
+3
-1
No files found.
lib/net.c
View file @
f15802c0
...
...
@@ -228,6 +228,7 @@ int ptpd_netif_recvfrom(wr_socket_t * sock, wr_sockaddr_t * from, void *data,
uint16_t
size
;
struct
ethhdr
hdr
;
struct
hw_timestamp
hwts
;
uint8_t
spll_busy
;
/*check if there is something to fetch */
if
(
!
q
->
n
)
...
...
@@ -247,12 +248,13 @@ int ptpd_netif_recvfrom(wr_socket_t * sock, wr_sockaddr_t * from, void *data,
if
(
rx_timestamp
)
{
rx_timestamp
->
raw_nsec
=
hwts
.
nsec
;
rx_timestamp
->
raw_ahead
=
hwts
.
ahead
;
spll_busy
=
(
uint8_t
)
spll_shifter_busy
(
0
);
spll_read_ptracker
(
0
,
&
rx_timestamp
->
raw_phase
,
NULL
);
rx_timestamp
->
sec
=
hwts
.
sec
;
rx_timestamp
->
nsec
=
hwts
.
nsec
;
rx_timestamp
->
phase
=
0
;
rx_timestamp
->
correct
=
hwts
.
valid
;
rx_timestamp
->
correct
=
hwts
.
valid
&
(
!
spll_busy
)
;
ptpd_netif_linearize_rx_timestamp
(
rx_timestamp
,
rx_timestamp
->
raw_phase
,
...
...
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