ofproto: Improve abstraction by adding function ofproto_parse_name().