Transforming a Traditional Home Gateway into a Hardware-accelerated SDN Switch