[PATCH openEuler-1.0-LTS 07/16] ipv4: prevent potential spectre v1 gadget in ip_metrics_convert()