- zatm-always-clear-pcr-in-alloc_shaper.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled

     zatm: always clear *pcr in alloc_shaper()

has been removed from the -mm tree.  Its filename is

     zatm-always-clear-pcr-in-alloc_shaper.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
Subject: zatm: always clear *pcr in alloc_shaper()
From: "chas williams - CONTRACTOR" <chas@xxxxxxxxxxxxxxxx>

Jeff Garzik writes:
>If alloc_shaper() argument 'unlimited' is true, then pcr is never
>assigned a value.  However, the caller of alloc_shaper() always tests
>the pcr value, regardless of whether or not 'unlimited' is true.

When unlimited is true, this means ubr.  alloc_shaper() creates a queue to
use for all ubr (best effort) traffic.  ubr doesnt count against tx_bw so
its handled a bit differently.  alloc_shaper() should return a 0 for the
pcr since this gets assigned to the vcc's qos parameters.  min_pcr = 0 and
max_pcr = 0 means "best effort".

still generates a warning from gcc though.

Signed-off-by: Chas Williams <chas@xxxxxxxxxxxxxxxx>
Cc: Jeff Garzik <jeff@xxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 drivers/atm/zatm.c |    1 +
 1 file changed, 1 insertion(+)

diff -puN drivers/atm/zatm.c~zatm-always-clear-pcr-in-alloc_shaper drivers/atm/zatm.c
--- a/drivers/atm/zatm.c~zatm-always-clear-pcr-in-alloc_shaper
+++ a/drivers/atm/zatm.c
@@ -801,6 +801,7 @@ static int alloc_shaper(struct atm_dev *
 		i = m = 1;
 		zatm_dev->ubr_ref_cnt++;
 		zatm_dev->ubr = shaper;
+		*pcr = 0;
 	}
 	else {
 		if (min) {
_

Patches currently in -mm which might be from chas@xxxxxxxxxxxxxxxx are

origin.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux