Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangjie
OpenXG-RAN
Commits
34b4c19c
Commit
34b4c19c
authored
Feb 14, 2020
by
masayuki.harada
Committed by
Haruki NAOI
Feb 14, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delete minor adjust by p7 message.
(cherry picked from commit 11485a6f7b76288e3db58435717afb4e5e63b0eb)
parent
c1a032ff
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
44 deletions
+44
-44
nfapi/open-nFAPI/vnf/src/vnf_p7.c
nfapi/open-nFAPI/vnf/src/vnf_p7.c
+44
-44
No files found.
nfapi/open-nFAPI/vnf/src/vnf_p7.c
View file @
34b4c19c
...
...
@@ -1170,19 +1170,19 @@ void vnf_handle_ul_node_sync(void *pRecvMsg, int recvMsgLen, vnf_p7_t* vnf_p7)
if
(
phy
->
in_sync
)
{
// in sync
if
(
phy
->
sf_offset_filtered
>
250
)
{
// VNF is slow
phy
->
insync_minor_adjustment
=
insync_minor_adjustment_1
;
//25;
phy
->
insync_minor_adjustment_duration
=
((
phy
->
sf_offset_filtered
)
/
insync_minor_adjustment_1
);
}
else
if
(
phy
->
sf_offset_filtered
<
-
250
)
{
// VNF is fast
phy
->
insync_minor_adjustment
=
-
(
insync_minor_adjustment_1
);
//25;
phy
->
insync_minor_adjustment_duration
=
(((
phy
->
sf_offset_filtered
)
/
-
(
insync_minor_adjustment_1
)));
}
else
//
if(phy->sf_offset_filtered > 250)
//
{
//
// VNF is slow
//
phy->insync_minor_adjustment = insync_minor_adjustment_1; //25;
//
phy->insync_minor_adjustment_duration = ((phy->sf_offset_filtered) / insync_minor_adjustment_1);
//
}
//
else if(phy->sf_offset_filtered < -250)
//
{
//
// VNF is fast
//
phy->insync_minor_adjustment = -(insync_minor_adjustment_1); //25;
//
phy->insync_minor_adjustment_duration = (((phy->sf_offset_filtered) / -(insync_minor_adjustment_1)));
//
}
//
else
{
phy
->
insync_minor_adjustment
=
0
;
}
...
...
@@ -1211,22 +1211,22 @@ void vnf_handle_ul_node_sync(void *pRecvMsg, int recvMsgLen, vnf_p7_t* vnf_p7)
{
// VNF is slow
//if(phy->adjustment == 1)
{
//
{
//
if
(
phy
->
sf_offset_filtered
>
250
)
{
// VNF is slow
phy
->
insync_minor_adjustment
=
insync_minor_adjustment_2
;
phy
->
insync_minor_adjustment_duration
=
2
*
((
phy
->
sf_offset_filtered
-
250
)
/
insync_minor_adjustment_2
);
}
else
if
(
phy
->
sf_offset_filtered
<
-
250
)
{
// VNF is fast
phy
->
insync_minor_adjustment
=
-
(
insync_minor_adjustment_2
);
phy
->
insync_minor_adjustment_duration
=
2
*
((
phy
->
sf_offset_filtered
+
250
)
/
-
(
insync_minor_adjustment_2
));
}
}
//
if(phy->sf_offset_filtered > 250)
//
{
//
// VNF is slow
//
phy->insync_minor_adjustment = insync_minor_adjustment_2;
//
phy->insync_minor_adjustment_duration = 2 * ((phy->sf_offset_filtered - 250) / insync_minor_adjustment_2);
//
}
//
else if(phy->sf_offset_filtered < -250)
//
{
//
// VNF is fast
//
phy->insync_minor_adjustment = -(insync_minor_adjustment_2);
//
phy->insync_minor_adjustment_duration = 2 * ((phy->sf_offset_filtered + 250) / -(insync_minor_adjustment_2));
//
}
//
//
}
//else
{
// out of sync?
...
...
@@ -1245,21 +1245,21 @@ void vnf_handle_ul_node_sync(void *pRecvMsg, int recvMsgLen, vnf_p7_t* vnf_p7)
{
// VNF is fast
//if(phy->adjustment == -1)
{
//
if
(
phy
->
sf_offset_filtered
>
250
)
{
// VNF is slow
phy
->
insync_minor_adjustment
=
insync_minor_adjustment_2
;
phy
->
insync_minor_adjustment_duration
=
2
*
((
phy
->
sf_offset_filtered
-
250
)
/
insync_minor_adjustment_2
);
}
else
if
(
phy
->
sf_offset_filtered
<
-
250
)
{
// VNF is fast
phy
->
insync_minor_adjustment
=
-
(
insync_minor_adjustment_2
);
phy
->
insync_minor_adjustment_duration
=
2
*
((
phy
->
sf_offset_filtered
+
250
)
/
-
(
insync_minor_adjustment_2
));
}
}
//
{
//
//
//
if(phy->sf_offset_filtered > 250)
//
{
//
// VNF is slow
//
phy->insync_minor_adjustment = insync_minor_adjustment_2;
//
phy->insync_minor_adjustment_duration = 2 * ((phy->sf_offset_filtered - 250) / insync_minor_adjustment_2);
//
}
//
else if(phy->sf_offset_filtered < -250)
//
{
//
// VNF is fast
//
phy->insync_minor_adjustment = -(insync_minor_adjustment_2);
//
phy->insync_minor_adjustment_duration = 2 * ((phy->sf_offset_filtered + 250) / -(insync_minor_adjustment_2));
//
}
//
}
//else
{
// out of sync?
...
...
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