nova tentativa de fix do ebpf-sockmap
This commit is contained in:
1 parent
f0d697f7e5
commit
9eb4d843e4
1 file changed
+3
@@ -296,6 +296,9 @@ int bpf_msg_redirect(struct sk_msg_md *msg)
|
|||||||
|
|
||||||
// Tenta redirecionar diretamente para o socket par.
|
// Tenta redirecionar diretamente para o socket par.
|
||||||
int ret = bpf_msg_redirect_hash(msg, &sock_hash, &key, BPF_F_INGRESS);
|
int ret = bpf_msg_redirect_hash(msg, &sock_hash, &key, BPF_F_INGRESS);
|
||||||
|
// DEBUG TEMPORÁRIO — pra achar o bug de transferência grande.
|
||||||
|
if (msg->size > 8192)
|
||||||
|
bpf_printk("MSG grande dip=%x dport=%u size=%u ret=%d", key.dip4, key.dport, msg->size, ret);
|
||||||
if (ret == SK_PASS) {
|
if (ret == SK_PASS) {
|
||||||
stats_inc(1); // Redirecionamento OK — caminho acelerado
|
stats_inc(1); // Redirecionamento OK — caminho acelerado
|
||||||
return SK_PASS;
|
return SK_PASS;
|
||||||
|
|||||||
Reference in new issue
Block a user