This commit backports patches from OpenWrt's master branch which increase cache performance, reduce NAPI weight and fix bugs.