net: backport Adaptive RED Net Scheduler from 3.4 kernel

(cherry picked from commit 15d05bcea512bafa59fc6e9e5d929523d56e76bd)

Change-Id: Ied175f688b02a4dbafb47ab67d82cb1f1fbdcf5a