net/sfc/base: simplify loopback type checking