ipv6: Calculate multipath hash inside switch statement