Skip to content

Commit

Permalink
use struct for EquivalenceKey
Browse files Browse the repository at this point in the history
Signed-off-by: Elazar Gershuni <[email protected]>
  • Loading branch information
elazarg committed Nov 6, 2024
1 parent 3919d41 commit 83dfee5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/spec_type_descriptors.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,13 @@ struct EbpfProgramType {

void print_map_descriptors(const std::vector<EbpfMapDescriptor>& descriptors, std::ostream& o);

using EquivalenceKey = std::tuple<EbpfMapValueType /* value_type */, uint32_t /* key_size */, uint32_t /* value_size */,
uint32_t /* max_entries */>;
struct EquivalenceKey {
EbpfMapValueType value_type;
uint32_t key_size;
uint32_t value_size;
uint32_t max_entries;
std::strong_ordering operator<=>(const EquivalenceKey&) const = default;
};

struct program_info {
const struct ebpf_platform_t* platform{};
Expand Down

0 comments on commit 83dfee5

Please sign in to comment.