diff mbox

[ovs-dev] dpif: Remove duplicated word in comment for dpif_recv()

Message ID 1503714458-20380-1-git-send-email-fukaige@huawei.com
State Accepted
Headers show

Commit Message

fukaige Aug. 26, 2017, 2:27 a.m. UTC
From: Kaige Fu <fukaige@huawei.com>

Signed-off-by: Kaige Fu <fukaige@huawei.com>
---
 lib/dpif.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

Comments

Gregory Rose Aug. 29, 2017, 3:25 p.m. UTC | #1
On 08/25/2017 07:27 PM, fukaige wrote:
> From: Kaige Fu <fukaige@huawei.com>
>
> Signed-off-by: Kaige Fu <fukaige@huawei.com>
> ---
>   lib/dpif.c | 10 +++++-----
>   1 file changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/lib/dpif.c b/lib/dpif.c
> index 79b2e6c..a4471d5 100644
> --- a/lib/dpif.c
> +++ b/lib/dpif.c
> @@ -1547,11 +1547,11 @@ dpif_set_config(struct dpif *dpif, const struct smap *cfg)
>       return error;
>   }
>
> -/* Polls for an upcall from 'dpif' for an upcall handler.  Since there
> - * there can be multiple poll loops, 'handler_id' is needed as index to
> - * identify the corresponding poll loop.  If successful, stores the upcall
> - * into '*upcall', using 'buf' for storage.  Should only be called if
> - * 'recv_set' has been used to enable receiving packets from 'dpif'.
> +/* Polls for an upcall from 'dpif' for an upcall handler.  Since there can
> + * be multiple poll loops, 'handler_id' is needed as index to identify the
> + * corresponding poll loop.  If successful, stores the upcall into '*upcall',
> + * using 'buf' for storage.  Should only be called if 'recv_set' has been used
> + * to enable receiving packets from 'dpif'.
>    *
>    * 'upcall->key' and 'upcall->userdata' point into data in the caller-provided
>    * 'buf', so their memory cannot be freed separately from 'buf'.
>
LGTM

Reviewed-by: Greg Rose <gvrose8192@gmail.com>
Ben Pfaff Oct. 30, 2017, 11:47 p.m. UTC | #2
On Tue, Aug 29, 2017 at 08:25:28AM -0700, Greg Rose wrote:
> On 08/25/2017 07:27 PM, fukaige wrote:
> >From: Kaige Fu <fukaige@huawei.com>
> >
> >Signed-off-by: Kaige Fu <fukaige@huawei.com>
> >---
> >  lib/dpif.c | 10 +++++-----
> >  1 file changed, 5 insertions(+), 5 deletions(-)
> >
> >diff --git a/lib/dpif.c b/lib/dpif.c
> >index 79b2e6c..a4471d5 100644
> >--- a/lib/dpif.c
> >+++ b/lib/dpif.c
> >@@ -1547,11 +1547,11 @@ dpif_set_config(struct dpif *dpif, const struct smap *cfg)
> >      return error;
> >  }
> >
> >-/* Polls for an upcall from 'dpif' for an upcall handler.  Since there
> >- * there can be multiple poll loops, 'handler_id' is needed as index to
> >- * identify the corresponding poll loop.  If successful, stores the upcall
> >- * into '*upcall', using 'buf' for storage.  Should only be called if
> >- * 'recv_set' has been used to enable receiving packets from 'dpif'.
> >+/* Polls for an upcall from 'dpif' for an upcall handler.  Since there can
> >+ * be multiple poll loops, 'handler_id' is needed as index to identify the
> >+ * corresponding poll loop.  If successful, stores the upcall into '*upcall',
> >+ * using 'buf' for storage.  Should only be called if 'recv_set' has been used
> >+ * to enable receiving packets from 'dpif'.
> >   *
> >   * 'upcall->key' and 'upcall->userdata' point into data in the caller-provided
> >   * 'buf', so their memory cannot be freed separately from 'buf'.
> >
> LGTM
> 
> Reviewed-by: Greg Rose <gvrose8192@gmail.com>

Thanks fukaige and Greg, I applied this to master.
diff mbox

Patch

diff --git a/lib/dpif.c b/lib/dpif.c
index 79b2e6c..a4471d5 100644
--- a/lib/dpif.c
+++ b/lib/dpif.c
@@ -1547,11 +1547,11 @@  dpif_set_config(struct dpif *dpif, const struct smap *cfg)
     return error;
 }
 
-/* Polls for an upcall from 'dpif' for an upcall handler.  Since there
- * there can be multiple poll loops, 'handler_id' is needed as index to
- * identify the corresponding poll loop.  If successful, stores the upcall
- * into '*upcall', using 'buf' for storage.  Should only be called if
- * 'recv_set' has been used to enable receiving packets from 'dpif'.
+/* Polls for an upcall from 'dpif' for an upcall handler.  Since there can
+ * be multiple poll loops, 'handler_id' is needed as index to identify the
+ * corresponding poll loop.  If successful, stores the upcall into '*upcall',
+ * using 'buf' for storage.  Should only be called if 'recv_set' has been used
+ * to enable receiving packets from 'dpif'.
  *
  * 'upcall->key' and 'upcall->userdata' point into data in the caller-provided
  * 'buf', so their memory cannot be freed separately from 'buf'.