libcli/smb/smb_transport_direct.c debug hacks
authorStefan Metzmacher <metze@samba.org>
Wed, 28 Sep 2016 11:44:57 +0000 (13:44 +0200)
committerStefan Metzmacher <metze@samba.org>
Fri, 1 Jun 2018 12:35:05 +0000 (14:35 +0200)
libcli/smb/smb_transport_direct.c

index 33298e2d6d230d7d0fc01eaf21025dd2f19b977d..3481a3d027aec104c4b4a5efc5ae90a7a493208d 100644 (file)
@@ -1163,7 +1163,7 @@ static void smb_transport_direct_data_ibv_handler(struct tevent_context *ev,
                return;
 
        case IBV_WC_RECV:
-               DEBUG(0,("%s:%s: ret[%d] errno[%d]\n",
+               DEBUG(0,("%s:%s: GOT WC_RECV ret[%d] errno[%d]\n",
                        __location__, __FUNCTION__, ret, errno));
                if (wc.byte_len < 0x14) {
                        status = NT_STATUS_INVALID_NETWORK_RESPONSE;
@@ -1289,6 +1289,8 @@ static void smb_transport_direct_data_ibv_handler(struct tevent_context *ev,
 
 repost_receive:
                errno = 0;
+                       DEBUG(0,("%s:%s: REPOST_RECV...\n",
+                               __location__, __FUNCTION__));
                ret = ibv_post_recv(t->ibv.qp, &t->inbuf.wr, &bad_recv_wr);
                if (ret != 0) {
                        status = map_nt_error_from_unix_common(errno);
@@ -1664,7 +1666,7 @@ NTSTATUS _smb_transport_direct_create(TALLOC_CTX *mem_ctx,
        t->state.max_receive_size    = 8192;
        t->state.max_fragmented_size = 1048576;
        t->state.max_read_write_size = 0;
-       t->state.receive_credit_max  = 1;
+       t->state.receive_credit_max  = 2;
        t->state.send_credit_target  = 255;
        t->state.keep_alive_internal = 5;