@@ -196,15 +196,15 @@ FilterResult GoFilter::Instance::onIo(bool reply, Buffer::Instance& data, bool e
196
196
dir.need_bytes_ = 0 ;
197
197
198
198
const int max_ops = 16 ; // Make shorter for testing purposes
199
- FilterOp ops_ [max_ops];
200
- GoFilterOpSlice ops (ops_ , max_ops);
199
+ FilterOp ops [max_ops];
200
+ GoFilterOpSlice op_slice (ops , max_ops);
201
201
202
202
FilterResult res;
203
203
bool terminal_op_seen = false ;
204
204
bool inject_buf_exhausted = false ;
205
205
206
206
do {
207
- ops .reset ();
207
+ op_slice .reset ();
208
208
Buffer::RawSliceVector raw_slices = input.getRawSlices ();
209
209
210
210
int64_t total_length = 0 ;
@@ -221,14 +221,14 @@ FilterResult GoFilter::Instance::onIo(bool reply, Buffer::Instance& data, bool e
221
221
222
222
ENVOY_CONN_LOG (trace, " Cilium Network::OnIO: Calling go module with {} bytes of data" , conn_,
223
223
total_length);
224
- res = (*parent_.go_on_data_ )(connection_id_, reply, end_stream, &input_slices, &ops );
224
+ res = (*parent_.go_on_data_ )(connection_id_, reply, end_stream, &input_slices, &op_slice );
225
225
ENVOY_CONN_LOG (trace, " Cilium Network::OnIO: \' go_on_data\' returned {}, ops({})" , conn_,
226
- toString (res), ops .len ());
226
+ toString (res), op_slice .len ());
227
227
if (res == FILTER_OK) {
228
228
// Process all returned filter operations.
229
- for (int i = 0 ; i < ops .len (); i++) {
230
- auto op = ops_ [i].op ;
231
- auto n_bytes = ops_ [i].n_bytes ;
229
+ for (int i = 0 ; i < op_slice .len (); i++) {
230
+ auto op = ops [i].op ;
231
+ auto n_bytes = ops [i].n_bytes ;
232
232
233
233
if (n_bytes == 0 ) {
234
234
ENVOY_CONN_LOG (warn, " Cilium Network::OnIO: INVALID op ({}) length: {} bytes" , conn_, op,
@@ -317,7 +317,7 @@ FilterResult GoFilter::Instance::onIo(bool reply, Buffer::Instance& data, bool e
317
317
dir.inject_slice_ .reset ();
318
318
319
319
// Loop back if ops or inject buffer was exhausted
320
- } while (!terminal_op_seen && (ops .len () == max_ops || inject_buf_exhausted));
320
+ } while (!terminal_op_seen && (op_slice .len () == max_ops || inject_buf_exhausted));
321
321
322
322
if (output.length () < 100 ) {
323
323
ENVOY_CONN_LOG (debug, " Cilium Network::OnIO: Output on return: {}" , conn_, output.toString ());
0 commit comments