[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1355933675.21834.7.camel@edumazet-glaptop>
Date: Wed, 19 Dec 2012 08:14:35 -0800
From: Eric Dumazet <erdnetdev@...il.com>
To: roy.qing.li@...il.com
Cc: netdev@...r.kernel.org
Subject: Re: [RFC PATCH] fix IP_ECN_set_ce
On Wed, 2012-12-19 at 14:21 +0800, roy.qing.li@...il.com wrote:
> From: Li RongQing <roy.qing.li@...il.com>
>
> 1. ECN uses the two least significant (right-most) bits of the DiffServ
> field in the IPv4, so it should be in iph->tos, not in (iph->tos+1)
>
> 2. When setting CE, we should check if ECN Capable Transport supports,
> both 10 and 01 mean ECN Capable Transport, so only check 10 is not enough
> 00: Non ECN-Capable Transport — Non-ECT
> 10: ECN Capable Transport — ECT(0)
> 01: ECN Capable Transport — ECT(1)
> 11: Congestion Encountered — CE
>
> 3. Remove the misunderstand comment
>
> 4. fix the checksum computation
>
> Signed-off-by: Li RongQing <roy.qing.li@...il.com>
This is total crap.
Its perfectly clear to me and compiler generates fast code.
If you don't understand this code, please don't touch it.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists