X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fnetdev.c;fp=lib%2Fnetdev.c;h=b3cafe295a0468d04d96b14a1697e2c880951823;hb=fe383d9687f3023d463d70991a0a482cb1ee4e51;hp=64dfda528848737363582b8f168404b014f6f71f;hpb=43a2283f8a7e22de1b1237b7a5eb8c321ea12c77;p=sliver-openvswitch.git diff --git a/lib/netdev.c b/lib/netdev.c index 64dfda528..b3cafe295 100644 --- a/lib/netdev.c +++ b/lib/netdev.c @@ -1222,7 +1222,11 @@ netdev_get_queue_stats(const struct netdev *netdev, unsigned int queue_id, * Calling this function may be more efficient than calling netdev_get_queue() * for every queue. * - * 'cb' must not modify or free the 'details' argument passed in. + * 'cb' must not modify or free the 'details' argument passed in. It may + * delete or modify the queue passed in as its 'queue_id' argument. It may + * modify but must not delete any other queue within 'netdev'. 'cb' should not + * add new queues because this may cause some queues to be visited twice or not + * at all. * * Returns 0 if successful, otherwise a positive errno value. On error, some * configured queues may not have been included in the iteration. */