提交 db69264f 编写于 作者: Z Zhengchao Shao 提交者: Andrii Nakryiko

samples/bpf: Reduce the sampling interval in xdp1_user

If interval is 2, and sum - prev[key] = 1, the result = 0. This will
mislead the tester that the port has no traffic right now. So reduce the
sampling interval to 1.
Signed-off-by: NZhengchao Shao <shaozhengchao@huawei.com>
Signed-off-by: NAndrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20220419114746.291613-1-shaozhengchao@huawei.com
上级 127e7dca
......@@ -160,7 +160,7 @@ int main(int argc, char **argv)
}
prog_id = info.id;
poll_stats(map_fd, 2);
poll_stats(map_fd, 1);
return 0;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册