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
88102c10
Commit
88102c10
authored
Oct 25, 2019
by
guruhegde
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update fast_flows.c
* Add check for flow state NULL
parent
43210d6d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
src/BatchMaker.cpp
src/BatchMaker.cpp
+1
-1
test/unittests/inputs/fast_flows.c
test/unittests/inputs/fast_flows.c
+3
-0
No files found.
src/BatchMaker.cpp
View file @
88102c10
...
...
@@ -79,7 +79,6 @@ void BatchMaker::createBatchedFormFnPrototype(vector<TASArgAttr> & BatchFuncArgL
void
BatchMaker
::
replaceOldArgUsesWithBatchArgs
(
vector
<
TASArgAttr
>
&
BatchFuncArgList
,
AllocaInst
*
IdxPtr
)
{
auto
EntryBB
=
&
BatchFunc
->
front
();
Builder
.
SetInsertPoint
(
&
EntryBB
->
front
());
SmallVector
<
Value
*
,
4
>
BatchArgs
;
for_each
(
BatchFuncArgList
.
begin
(),
BatchFuncArgList
.
end
(),
...
...
@@ -87,6 +86,7 @@ void BatchMaker::replaceOldArgUsesWithBatchArgs(vector<TASArgAttr> & BatchFuncAr
if
(
Attr
.
IsBatch
)
BatchArgs
.
push_back
(
Attr
.
Val
);
});
for
(
auto
&
BatchArg
:
BatchArgs
)
{
Builder
.
SetInsertPoint
(
&
EntryBB
->
front
());
auto
BatchArgAlloca
=
Builder
.
CreateAlloca
(
BatchArg
->
getType
());
auto
StoreI
=
findFirstUseInStoreInst
(
BatchArg
);
...
...
test/unittests/inputs/fast_flows.c
View file @
88102c10
...
...
@@ -303,6 +303,9 @@ int fast_flows_packet(struct dataplane_context *ctx,
flow_id
=
fs
-
fp_state
->
flowst
;
trigger_ack
=
0
,
fin_bump
=
0
;
if
(
fs
==
NULL
)
return
-
1
;
tcp_extra_hlen
=
(
TCPH_HDRLEN
(
&
p
->
tcp
)
-
5
)
*
4
;
payload_off
=
sizeof
(
*
p
)
+
tcp_extra_hlen
;
payload_bytes
=
...
...
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