[Codel] [PATCH net-next] fq_codel: report congestion notification at enqueue time

Eric Dumazet eric.dumazet at gmail.com
Fri Jun 29 01:50:08 EDT 2012

On Thu, 2012-06-28 at 22:29 -0700, David Miller wrote:

> I am pretty sure the behavior in RED is intentional.
> It's a soft push back on TCP.

tcp_enter_cwr() is called the same for DROP and CN

> We're taking this path when we are unable to sucessfully ECN mark a
> packet.  But our intention was to do so.

Hmm, problem is the sender thinks the packet was queued for

        ret = macvlan_queue_xmit(skb, dev);
        if (likely(ret == NET_XMIT_SUCCESS || ret == NET_XMIT_CN)) {
                struct macvlan_pcpu_stats *pcpu_stats;

                pcpu_stats = this_cpu_ptr(vlan->pcpu_stats);
                pcpu_stats->tx_bytes += len;
        } else {

NET_XMIT_CN has a lazy semantic it seems.

I will just dont rely on it.

More information about the Codel mailing list