Skip to content

Commit

Permalink
usm: Reverted #14925
Browse files Browse the repository at this point in the history
  • Loading branch information
guyarb committed Jan 4, 2023
1 parent 2de7e88 commit 40b76d4
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pkg/ebpf/bytecode/runtime/conntrack.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pkg/ebpf/bytecode/runtime/http.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pkg/ebpf/bytecode/runtime/tracer.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions pkg/network/ebpf/c/protocols/protocol-classification-defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@
#include "mongo-defs.h"
#include "redis-defs.h"

// Represents the max buffer size required to classify protocols.
// ATM, it is HTTP2_MARKER_SIZE.
#define CLASSIFICATION_MAX_BUFFER (HTTP2_MARKER_SIZE)
// Represents the max buffer size required to classify protocols .
// We need to round it to be multiplication of 16 since we are reading blocks of 16 bytes in read_into_buffer_skb_all_kernels.
// ATM, it is HTTP2_MARKER_SIZE + 8 bytes for padding,
#define CLASSIFICATION_MAX_BUFFER (HTTP2_MARKER_SIZE + 8)

// The enum below represents all different protocols we know to classify.
// We set the size of the enum to be 8 bits, by adding max value (max uint8 which is 255) and
Expand Down

0 comments on commit 40b76d4

Please sign in to comment.