Skip to content

Commit

Permalink
usm: http2: Remove redundant telemetry fetching
Browse files Browse the repository at this point in the history
The telemetry is not used or modified in the function 'handle_first_frame', hence it is redundant and wasteful operation
  • Loading branch information
guyarb committed Dec 25, 2024
1 parent 561fc3e commit 9d78bcb
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions pkg/network/ebpf/c/protocols/http2/decoding.h
Original file line number Diff line number Diff line change
Expand Up @@ -625,11 +625,6 @@ static __always_inline void handle_first_frame(pktbuf_t pkt, __u32 *external_dat
return;
}

http2_telemetry_t *http2_tel = get_telemetry(pkt);
if (http2_tel == NULL) {
return;
}

incomplete_frame_t *incomplete_frame = bpf_map_lookup_elem(&http2_incomplete_frames, tup);
bool has_valid_first_frame = pktbuf_get_first_frame(pkt, incomplete_frame, &current_frame);
// If we have a state and we consumed it, then delete it.
Expand Down

0 comments on commit 9d78bcb

Please sign in to comment.