Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion include/bpftune/bpftune.bpf.h
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ unsigned int tuner_id;
unsigned int strategy_id;
unsigned int bpftune_pid;
/* init_net value used for older kernels since __ksym does not work */
unsigned long bpftune_init_net;
unsigned long long bpftune_init_net;

/* TCP buffer tuning */
#ifndef SO_SNDBUF
Expand Down
2 changes: 1 addition & 1 deletion src/tcp_buffer_tuner.bpf.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ int kernel_page_size;
int kernel_page_shift;
int sk_mem_quantum;
int sk_mem_quantum_shift;
unsigned long nr_free_buffer_pages;
unsigned long long nr_free_buffer_pages;

#define tcp_tunable_corr(__id, __cookie, __newval, __tp, __field_type, __field)\
{ \
Expand Down
2 changes: 1 addition & 1 deletion src/tcp_buffer_tuner.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ int get_from_file(FILE *fp, const char *fmt, ...)
return ret;
}

long nr_free_buffer_pages(bool initial)
long long nr_free_buffer_pages(bool initial)
{
unsigned long nr_pages = 0;
char *mzone = "Normal";
Expand Down