Bug 2931

Summary: Queue Disc drops the CE marked packets
Product: ns-3 Reporter: Vivek Jain <jain.vivek.anand>
Component: internetAssignee: Tommaso Pecorella <tommaso.pecorella>
Status: RESOLVED FIXED    
Severity: normal CC: ns-bugs, stavallo, tahiliani.nitk, tomh
Priority: P3    
Version: ns-3-dev   
Hardware: All   
OS: All   
Attachments: Modified Mark method to return true when a packet has CE.

Description Vivek Jain 2018-06-19 01:43:18 UTC
Created attachment 3114 [details]
Modified Mark method to return true when a packet has CE.

Mark () method currently returns false for a packet that is already marked. This means that a queue disc would drop a marked packet (since it is not able to mark it).

The attached patch resolves this issue.

Mark () method has been modified to return true when a packet is already marked.
Comment 1 Stefano Avallone 2018-06-19 16:57:18 UTC
After looking at what Linux does:

https://elixir.bootlin.com/linux/latest/source/include/net/inet_ecn.h#L75

I agree with the proposed patch.

Do you want me to push this patch on your behalf?

Thanks.
Comment 2 Tom Henderson 2018-06-19 17:15:04 UTC
(In reply to Stefano Avallone from comment #1)
> After looking at what Linux does:
> 
> https://elixir.bootlin.com/linux/latest/source/include/net/inet_ecn.h#L75
> 
> I agree with the proposed patch.
> 
> Do you want me to push this patch on your behalf?

I agree to push this now; you can find Vivek's authorstring in the mercurial log.
Comment 3 Stefano Avallone 2018-06-19 17:46:25 UTC
Pushed with changeset 13657:23cfc99011a6, thanks.