The Samba-Bugzilla – Attachment 15072 Details for
Bug 13863
Our SMB2 credit handling should match Windows Server 2016
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Patch for v4-9-test
tmp49.diff.txt (text/plain), 2.83 KB, created by
Stefan Metzmacher
on 2019-04-15 14:00:55 UTC
(
hide
)
Description:
Patch for v4-9-test
Filename:
MIME Type:
Creator:
Stefan Metzmacher
Created:
2019-04-15 14:00:55 UTC
Size:
2.83 KB
patch
obsolete
>From 40677a591ec9810b01325ae7ca47e6efe2f12ba9 Mon Sep 17 00:00:00 2001 >From: Stefan Metzmacher <metze@samba.org> >Date: Wed, 16 Jan 2019 12:24:04 +0100 >Subject: [PATCH] smb2_server: grant all 8192 credits to clients > >This seems to match Windows Server 2016. > >BUG: https://bugzilla.samba.org/show_bug.cgi?id=13863 > >Signed-off-by: Stefan Metzmacher <metze@samba.org> >Reviewed-by: Ralph Boehme <slow@samba.org> >Reviewed-by: Jeremy Allison <jra@samba.org> >(cherry picked from commit 829f692fb1552e56c6a9726036a995b4328731dd) >--- > selftest/knownfail | 3 --- > source3/smbd/smb2_server.c | 17 ++++++++++++----- > 2 files changed, 12 insertions(+), 8 deletions(-) > >diff --git a/selftest/knownfail b/selftest/knownfail >index baf3d57a31a0..f850d9e1a871 100644 >--- a/selftest/knownfail >+++ b/selftest/knownfail >@@ -327,9 +327,6 @@ > ^samba.tests.dcerpc.dnsserver.samba.tests.dcerpc.dnsserver.DnsserverTests.test_add_duplicate_different_type.* > ^samba.tests.dcerpc.dnsserver.samba.tests.dcerpc.dnsserver.DnsserverTests.test_rank_none.* > ^samba.tests.dcerpc.dnsserver.samba.tests.dcerpc.dnsserver.DnsserverTests.test_security_descriptor.* >-^samba3.smb2.credits.session_setup_credits_granted.* >-^samba3.smb2.credits.single_req_credits_granted.* >-^samba3.smb2.credits.skipped_mid.* > ^samba4.blackbox.dbcheck-links.release-4-5-0-pre1.dbcheck_dangling_multi_valued_clean > ^samba4.blackbox.dbcheck-links.release-4-5-0-pre1.dangling_multi_valued_check_missing > # >diff --git a/source3/smbd/smb2_server.c b/source3/smbd/smb2_server.c >index f59b94c11050..cfcc5c135437 100644 >--- a/source3/smbd/smb2_server.c >+++ b/source3/smbd/smb2_server.c >@@ -829,8 +829,11 @@ static void smb2_set_operation_credit(struct smbXsrv_connection *xconn, > * of requests and the used sequence number. > * Which means we would grant more credits > * for client which use multi credit requests. >+ * >+ * The above is what Windows Server < 2016 is doing, >+ * but new servers use all credits (8192 by default). > */ >- current_max_credits = xconn->smb2.credits.max / 16; >+ current_max_credits = xconn->smb2.credits.max; > current_max_credits = MAX(current_max_credits, 1); > > if (xconn->smb2.credits.multicredit) { >@@ -875,15 +878,19 @@ static void smb2_set_operation_credit(struct smbXsrv_connection *xconn, > * with a successful session setup > */ > if (NT_STATUS_IS_OK(out_status)) { >- additional_max = 32; >+ additional_max = xconn->smb2.credits.max; > } > break; > default: > /* >- * We match windows and only grant additional credits >- * in chunks of 32. >+ * Windows Server < 2016 and older Samba versions >+ * used to only grant additional credits in >+ * chunks of 32 credits. >+ * >+ * But we match Windows Server 2016 and grant >+ * all credits as requested. > */ >- additional_max = 32; >+ additional_max = xconn->smb2.credits.max; > break; > } > >-- >2.17.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Flags:
jra
:
review+
Actions:
View
Attachments on
bug 13863
:
15071
| 15072 |
15073