Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
TAS-OPT
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
5
Issues
5
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
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
Guruprasad Hegde
TAS-OPT
Commits
12bcce8d
Commit
12bcce8d
authored
Oct 24, 2019
by
guruhegde
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update test case and test file
parent
d957cce9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
test/unittests/batchMaker_test.cpp
test/unittests/batchMaker_test.cpp
+1
-1
test/unittests/inputs/batchmaker_test6_main.c
test/unittests/inputs/batchmaker_test6_main.c
+1
-1
test/unittests/inputs/fast_flows.c
test/unittests/inputs/fast_flows.c
+5
-5
No files found.
test/unittests/batchMaker_test.cpp
View file @
12bcce8d
...
...
@@ -252,7 +252,7 @@ TEST_CASE("input parameter struct type") {
TEST_CASE
(
"make fast_flows_packet fn as batched form"
)
{
std
::
string
filePrefix
=
"fast_flows"
;
auto
M
=
parseIR
(
filePrefix
+
string
(
".ll"
),
input_dir
);
auto
M
=
parseIR
(
generateIR
(
filePrefix
+
string
(
".c"
),
input_dir
,
true
),
input_dir
);
REQUIRE
(
M
!=
nullptr
);
M
->
setSourceFileName
(
filePrefix
+
string
(
"_batch.ll"
));
{
...
...
test/unittests/inputs/batchmaker_test6_main.c
View file @
12bcce8d
...
...
@@ -70,7 +70,7 @@ int main() {
for
(
int
i
=
0
;
i
<
batch_size
;
++
i
)
{
if
(
aptr
[
i
]
->
field1
!=
1
&&
aptr
[
i
]
->
field2
!=
2
)
{
rc
--
;
return
rc
;
rc
--
;
break
;
}
}
for
(
int
i
=
0
;
i
<
batch_size
;
++
i
)
{
...
...
test/unittests/inputs/fast_flows.c
View file @
12bcce8d
...
...
@@ -281,7 +281,7 @@ void fast_flows_packet_pfbufs(struct dataplane_context *ctx,
/* Received packet */
int
fast_flows_packet
(
struct
dataplane_context
*
ctx
,
struct
network_buf_handle
*
nbh
BATCH_ARG
,
void
*
fsp
BATCH_ARG
,
struct
tcp_opts
*
opts
BATCH_ARG
,
struct
network_buf_handle
*
nbh
BATCH_ARG
,
void
*
fsp
BATCH_ARG
,
struct
tcp_opts
opts
BATCH_ARG
,
uint32_t
ts
)
TAS_BLOCK_PREDICATION
{
struct
pkt_tcp
*
p
;
...
...
@@ -493,11 +493,11 @@ int fast_flows_packet(struct dataplane_context *ctx,
#endif
/* update rtt estimate */
fs
->
tx_next_ts
=
f_beui32
(
opts
->
ts
->
ts_val
);
fs
->
tx_next_ts
=
f_beui32
(
opts
.
ts
->
ts_val
);
if
(
LIKELY
((
TCPH_FLAGS
(
&
p
->
tcp
)
&
TCP_ACK
)
==
TCP_ACK
&&
f_beui32
(
opts
->
ts
->
ts_ecr
)
!=
0
))
f_beui32
(
opts
.
ts
->
ts_ecr
)
!=
0
))
{
rtt
=
ts
-
f_beui32
(
opts
->
ts
->
ts_ecr
);
rtt
=
ts
-
f_beui32
(
opts
.
ts
->
ts_ecr
);
if
(
rtt
<
TCP_MAX_RTT
)
{
if
(
LIKELY
(
fs
->
rtt_est
!=
0
))
{
fs
->
rtt_est
=
(
fs
->
rtt_est
*
7
+
rtt
)
/
8
;
...
...
@@ -635,7 +635,7 @@ unlock:
/* if we need to send an ack, also send packet to TX pipeline to do so */
if
(
trigger_ack
)
{
flow_tx_ack
(
ctx
,
fs
->
tx_next_seq
,
fs
->
rx_next_seq
,
fs
->
rx_avail
,
fs
->
tx_next_ts
,
ts
,
nbh
,
opts
->
ts
);
fs
->
tx_next_ts
,
ts
,
nbh
,
opts
.
ts
);
}
fs_unlock
(
fs
);
...
...
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