All devices implemented as vports have a common interface, so pull out ioctl code from the GRE netdev so it can be used in other places as well.