wdp: Correct comment describing wdp_port_query_by_name() semantics.
authorBen Pfaff <blp@nicira.com>
Wed, 25 Aug 2010 20:17:01 +0000 (13:17 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 25 Aug 2010 20:17:01 +0000 (13:17 -0700)
Reported-by: Tsvi Slonim <tsvi@toroki.com>
ofproto/wdp.c

index 5f8078b..c48b2d7 100644 (file)
@@ -625,8 +625,8 @@ wdp_port_del(struct wdp *wdp, uint16_t port_no)
  * initializes 'port' with port details.  On failure, returns a positive errno
  * value and clears the contents of 'port' (with wdp_port_clear()).
  *
- * The caller must not modify or free the returned wdp_port.  Calling
- * wdp_run() or wdp_port_poll() may free the returned wdp_port.
+ * The caller takes ownership of everything in '*portp' and will eventually
+ * free it with, e.g., wdp_port_free().
  *
  * Possible error return values include:
  *