Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d398a37

Browse files
committedFeb 11, 2019
sample_plugin: Follow recent API changes
1 parent 43bebd3 commit d398a37

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎sample_plugin/modules/sequential_update.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ CommandResponse SequentialUpdate::CommandClear(const bess::pb::EmptyArg &) {
116116
return CommandSuccess();
117117
}
118118

119-
void SequentialUpdate::ProcessBatch(bess::PacketBatch *batch) {
119+
void SequentialUpdate::ProcessBatch(Context *ctx, bess::PacketBatch *batch) {
120120
int cnt = batch->cnt();
121121

122122
for (size_t i = 0; i < num_vars_; i++) {
@@ -143,7 +143,7 @@ void SequentialUpdate::ProcessBatch(bess::PacketBatch *batch) {
143143
var->cur = cur;
144144
}
145145

146-
RunNextModule(batch);
146+
RunNextModule(ctx, batch);
147147
}
148148

149149
ADD_MODULE(SequentialUpdate, "supdate",

‎sample_plugin/modules/sequential_update.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class SequentialUpdate final : public Module {
4646

4747
CommandResponse Init(const sample::supdate::pb::SequentialUpdateArg &arg);
4848

49-
void ProcessBatch(bess::PacketBatch *batch) override;
49+
void ProcessBatch(Context *ctx, bess::PacketBatch *batch) override;
5050

5151
CommandResponse
5252
CommandAdd(const sample::supdate::pb::SequentialUpdateArg &arg);

0 commit comments

Comments
 (0)
Please sign in to comment.