X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fodp-util.h;h=5cdb204109e16d394cf94841f3e35ee776c79659;hb=568e23fc2772235204dcabb61e1425b312070da2;hp=358096e731aee24744ff49d5113b2574df07bde4;hpb=ddbfda846297ab9e89ed9c3f844a8eff86692275;p=openvswitch diff --git a/lib/odp-util.h b/lib/odp-util.h index 358096e7..5cdb2041 100644 --- a/lib/odp-util.h +++ b/lib/odp-util.h @@ -34,33 +34,6 @@ struct simap; #define OVSP_NONE UINT32_MAX -static inline uint32_t -ofp_port_to_odp_port(uint16_t ofp_port) -{ - switch (ofp_port) { - case OFPP_LOCAL: - return OVSP_LOCAL; - case OFPP_NONE: - case OFPP_CONTROLLER: - return OVSP_NONE; - default: - return ofp_port; - } -} - -static inline uint16_t -odp_port_to_ofp_port(uint32_t odp_port) -{ - switch (odp_port) { - case OVSP_LOCAL: - return OFPP_LOCAL; - case OVSP_NONE: - return OFPP_NONE; - default: - return odp_port; - } -} - void format_odp_actions(struct ds *, const struct nlattr *odp_actions, size_t actions_len); int odp_actions_from_string(const char *, const struct simap *port_names,