* [PATCH 1/1] Drivers: hv: vmbus: Include the limit on the number of pfns we can handle
@ 2014-03-07 7:15 K. Y. Srinivasan
2014-03-07 6:48 ` Greg KH
2014-03-07 8:16 ` Dan Carpenter
0 siblings, 2 replies; 7+ messages in thread
From: K. Y. Srinivasan @ 2014-03-07 7:15 UTC (permalink / raw)
To: gregkh, linux-kernel, devel, olaf, apw, jasowang; +Cc: K. Y. Srinivasan
Increase the maximum number of pfns we can handle is a single vmbus packet.
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
---
include/linux/hyperv.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/include/linux/hyperv.h b/include/linux/hyperv.h
index 330ec44..ab7359f 100644
--- a/include/linux/hyperv.h
+++ b/include/linux/hyperv.h
@@ -37,7 +37,7 @@
#include <linux/mod_devicetable.h>
-#define MAX_PAGE_BUFFER_COUNT 19
+#define MAX_PAGE_BUFFER_COUNT 32
#define MAX_MULTIPAGE_BUFFER_COUNT 32 /* 128K */
#pragma pack(push, 1)
--
1.7.4.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 1/1] Drivers: hv: vmbus: Include the limit on the number of pfns we can handle
2014-03-07 7:15 [PATCH 1/1] Drivers: hv: vmbus: Include the limit on the number of pfns we can handle K. Y. Srinivasan
@ 2014-03-07 6:48 ` Greg KH
2014-03-07 6:58 ` KY Srinivasan
2014-03-07 8:16 ` Dan Carpenter
1 sibling, 1 reply; 7+ messages in thread
From: Greg KH @ 2014-03-07 6:48 UTC (permalink / raw)
To: K. Y. Srinivasan; +Cc: linux-kernel, devel, olaf, apw, jasowang
On Thu, Mar 06, 2014 at 11:15:08PM -0800, K. Y. Srinivasan wrote:
> Increase the maximum number of pfns we can handle is a single vmbus packet.
Is that a correct sentance?
>
> Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
> ---
> include/linux/hyperv.h | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/include/linux/hyperv.h b/include/linux/hyperv.h
> index 330ec44..ab7359f 100644
> --- a/include/linux/hyperv.h
> +++ b/include/linux/hyperv.h
> @@ -37,7 +37,7 @@
> #include <linux/mod_devicetable.h>
>
>
> -#define MAX_PAGE_BUFFER_COUNT 19
> +#define MAX_PAGE_BUFFER_COUNT 32
What is the problem if this number isn't changed?
Again, I'm going to have to ask you, what kernel is this for?
Please remember this when sending patches that look like they might be
fixing a bug, you don't want me to guess, as my "guess" usually is
"delete the patch".
greg k-h
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: [PATCH 1/1] Drivers: hv: vmbus: Include the limit on the number of pfns we can handle
2014-03-07 6:48 ` Greg KH
@ 2014-03-07 6:58 ` KY Srinivasan
0 siblings, 0 replies; 7+ messages in thread
From: KY Srinivasan @ 2014-03-07 6:58 UTC (permalink / raw)
To: Greg KH
Cc: linux-kernel@vger.kernel.org, devel@linuxdriverproject.org,
olaf@aepfle.de, apw@canonical.com, jasowang@redhat.com
> -----Original Message-----
> From: Greg KH [mailto:gregkh@linuxfoundation.org]
> Sent: Friday, March 7, 2014 12:19 PM
> To: KY Srinivasan
> Cc: linux-kernel@vger.kernel.org; devel@linuxdriverproject.org;
> olaf@aepfle.de; apw@canonical.com; jasowang@redhat.com
> Subject: Re: [PATCH 1/1] Drivers: hv: vmbus: Include the limit on the number
> of pfns we can handle
>
> On Thu, Mar 06, 2014 at 11:15:08PM -0800, K. Y. Srinivasan wrote:
> > Increase the maximum number of pfns we can handle is a single vmbus
> packet.
>
> Is that a correct sentance?
I will fix the typo in the sentence.
>
>
> >
> > Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
> > ---
> > include/linux/hyperv.h | 2 +-
> > 1 files changed, 1 insertions(+), 1 deletions(-)
> >
> > diff --git a/include/linux/hyperv.h b/include/linux/hyperv.h index
> > 330ec44..ab7359f 100644
> > --- a/include/linux/hyperv.h
> > +++ b/include/linux/hyperv.h
> > @@ -37,7 +37,7 @@
> > #include <linux/mod_devicetable.h>
> >
> >
> > -#define MAX_PAGE_BUFFER_COUNT 19
> > +#define MAX_PAGE_BUFFER_COUNT 32
>
> What is the problem if this number isn't changed?
On the networking side we may send frames that require more than 19 PFN entries.
Number 32 is imposed by some limitations by the vmbus data structures. For some reason
MAX_PAGE_BUFFER_COUNT was set to a lower value and I want to bump this up to what vmbus
can support.
>
> Again, I'm going to have to ask you, what kernel is this for?
>
> Please remember this when sending patches that look like they might be
> fixing a bug, you don't want me to guess, as my "guess" usually is "delete the
> patch".
Sorry Greg; this is not a bug fix and can go into the *next kernel.
I will resend this patch after fixing the changelog comment.
Regards,
K. Y
>
> greg k-h
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/1] Drivers: hv: vmbus: Include the limit on the number of pfns we can handle
2014-03-07 7:15 [PATCH 1/1] Drivers: hv: vmbus: Include the limit on the number of pfns we can handle K. Y. Srinivasan
2014-03-07 6:48 ` Greg KH
@ 2014-03-07 8:16 ` Dan Carpenter
2014-03-07 9:07 ` KY Srinivasan
1 sibling, 1 reply; 7+ messages in thread
From: Dan Carpenter @ 2014-03-07 8:16 UTC (permalink / raw)
To: K. Y. Srinivasan; +Cc: gregkh, linux-kernel, devel, olaf, apw, jasowang
On Thu, Mar 06, 2014 at 11:15:08PM -0800, K. Y. Srinivasan wrote:
> Increase the maximum number of pfns we can handle is a single vmbus packet.
^^ in
>
What are the user visible effects of this patch?
regards,
dan carpenter
^ permalink raw reply [flat|nested] 7+ messages in thread* RE: [PATCH 1/1] Drivers: hv: vmbus: Include the limit on the number of pfns we can handle
2014-03-07 8:16 ` Dan Carpenter
@ 2014-03-07 9:07 ` KY Srinivasan
2014-03-07 9:20 ` Dan Carpenter
0 siblings, 1 reply; 7+ messages in thread
From: KY Srinivasan @ 2014-03-07 9:07 UTC (permalink / raw)
To: Dan Carpenter
Cc: gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org,
devel@linuxdriverproject.org, olaf@aepfle.de, apw@canonical.com,
jasowang@redhat.com
> -----Original Message-----
> From: Dan Carpenter [mailto:dan.carpenter@oracle.com]
> Sent: Friday, March 7, 2014 1:46 PM
> To: KY Srinivasan
> Cc: gregkh@linuxfoundation.org; linux-kernel@vger.kernel.org;
> devel@linuxdriverproject.org; olaf@aepfle.de; apw@canonical.com;
> jasowang@redhat.com
> Subject: Re: [PATCH 1/1] Drivers: hv: vmbus: Include the limit on the number
> of pfns we can handle
>
> On Thu, Mar 06, 2014 at 11:15:08PM -0800, K. Y. Srinivasan wrote:
> > Increase the maximum number of pfns we can handle is a single vmbus
> packet.
> ^^ in
Thanks Dan. I am traveling in India and it shows. I have already sent a corrected patch.
> >
>
> What are the user visible effects of this patch?
The current code will drop these packets that have more PFNs than the limit.
Upping the limit will mitigate this problem.
Regards,
K. Y
>
> regards,
> dan carpenter
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/1] Drivers: hv: vmbus: Include the limit on the number of pfns we can handle
2014-03-07 9:07 ` KY Srinivasan
@ 2014-03-07 9:20 ` Dan Carpenter
2014-03-07 15:50 ` KY Srinivasan
0 siblings, 1 reply; 7+ messages in thread
From: Dan Carpenter @ 2014-03-07 9:20 UTC (permalink / raw)
To: KY Srinivasan
Cc: gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org,
devel@linuxdriverproject.org, olaf@aepfle.de, apw@canonical.com,
jasowang@redhat.com
On Fri, Mar 07, 2014 at 09:07:42AM +0000, KY Srinivasan wrote:
>
>
> > -----Original Message-----
> > From: Dan Carpenter [mailto:dan.carpenter@oracle.com]
> > Sent: Friday, March 7, 2014 1:46 PM
> > To: KY Srinivasan
> > Cc: gregkh@linuxfoundation.org; linux-kernel@vger.kernel.org;
> > devel@linuxdriverproject.org; olaf@aepfle.de; apw@canonical.com;
> > jasowang@redhat.com
> > Subject: Re: [PATCH 1/1] Drivers: hv: vmbus: Include the limit on the number
> > of pfns we can handle
> >
> > On Thu, Mar 06, 2014 at 11:15:08PM -0800, K. Y. Srinivasan wrote:
> > > Increase the maximum number of pfns we can handle is a single vmbus
> > packet.
> > ^^ in
>
> Thanks Dan. I am traveling in India and it shows. I have already sent a corrected patch.
>
Yeah. I saw that. Thanks.
> > >
> >
> > What are the user visible effects of this patch?
> The current code will drop these packets that have more PFNs than the limit.
> Upping the limit will mitigate this problem.
>
Meanwhile, the revised patch says that it is not a bugfix. It sort of
sounds like upping the limit does improve performance for some people?
I am confused now.
regards,
dan carpenter
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: [PATCH 1/1] Drivers: hv: vmbus: Include the limit on the number of pfns we can handle
2014-03-07 9:20 ` Dan Carpenter
@ 2014-03-07 15:50 ` KY Srinivasan
0 siblings, 0 replies; 7+ messages in thread
From: KY Srinivasan @ 2014-03-07 15:50 UTC (permalink / raw)
To: Dan Carpenter
Cc: gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org,
devel@linuxdriverproject.org, olaf@aepfle.de, apw@canonical.com,
jasowang@redhat.com
> -----Original Message-----
> From: Dan Carpenter [mailto:dan.carpenter@oracle.com]
> Sent: Friday, March 7, 2014 2:51 PM
> To: KY Srinivasan
> Cc: gregkh@linuxfoundation.org; linux-kernel@vger.kernel.org;
> devel@linuxdriverproject.org; olaf@aepfle.de; apw@canonical.com;
> jasowang@redhat.com
> Subject: Re: [PATCH 1/1] Drivers: hv: vmbus: Include the limit on the number
> of pfns we can handle
>
> On Fri, Mar 07, 2014 at 09:07:42AM +0000, KY Srinivasan wrote:
> >
> >
> > > -----Original Message-----
> > > From: Dan Carpenter [mailto:dan.carpenter@oracle.com]
> > > Sent: Friday, March 7, 2014 1:46 PM
> > > To: KY Srinivasan
> > > Cc: gregkh@linuxfoundation.org; linux-kernel@vger.kernel.org;
> > > devel@linuxdriverproject.org; olaf@aepfle.de; apw@canonical.com;
> > > jasowang@redhat.com
> > > Subject: Re: [PATCH 1/1] Drivers: hv: vmbus: Include the limit on
> > > the number of pfns we can handle
> > >
> > > On Thu, Mar 06, 2014 at 11:15:08PM -0800, K. Y. Srinivasan wrote:
> > > > Increase the maximum number of pfns we can handle is a single
> > > > vmbus
> > > packet.
> > > ^^ in
> >
> > Thanks Dan. I am traveling in India and it shows. I have already sent a
> corrected patch.
> >
>
> Yeah. I saw that. Thanks.
>
> > > >
> > >
> > > What are the user visible effects of this patch?
> > The current code will drop these packets that have more PFNs than the
> limit.
> > Upping the limit will mitigate this problem.
> >
>
> Meanwhile, the revised patch says that it is not a bugfix. It sort of sounds like
> upping the limit does improve performance for some people?
>
> I am confused now.
With the current network code this condition cannot occur since we neither support scatter/gather I/O
nor segmentation offload. I have submitted patches that enable these features for our network driver.
Once TSO is turned on, the network stack can send packets that may need more than the current limit of
PFNs in a packet.
Hope this helps,
K. Y
>
> regards,
> dan carpenter
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2014-03-07 15:51 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-07 7:15 [PATCH 1/1] Drivers: hv: vmbus: Include the limit on the number of pfns we can handle K. Y. Srinivasan
2014-03-07 6:48 ` Greg KH
2014-03-07 6:58 ` KY Srinivasan
2014-03-07 8:16 ` Dan Carpenter
2014-03-07 9:07 ` KY Srinivasan
2014-03-07 9:20 ` Dan Carpenter
2014-03-07 15:50 ` KY Srinivasan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox