diff mbox series

[ovs-dev,v3,1/3] id_pool: expose id_node for external use

Message ID 20230130164256.764534-2-simon.horman@corigine.com
State Changes Requested
Headers show
Series dpif-netlink: add revalidator for offload of meters | expand

Checks

Context Check Description
ovsrobot/apply-robot warning apply and check: warning
ovsrobot/github-robot-_Build_and_Test success github build: passed

Commit Message

Simon Horman Jan. 30, 2023, 4:42 p.m. UTC
From: Tianyu Yuan <tianyu.yuan@corigine.com>

Expose id_node structure for external use. F.e., the
hash_node could be directly accessed by this structure.

Signed-off-by: Tianyu Yuan <tianyu.yuan@corigine.com>
Signed-off-by: Simon Horman <simon.horman@corigine.com>
---
 lib/id-pool.c | 7 -------
 lib/id-pool.h | 7 +++++++
 2 files changed, 7 insertions(+), 7 deletions(-)

Comments

0-day Robot Jan. 30, 2023, 4:59 p.m. UTC | #1
References:  <20230130164256.764534-2-simon.horman@corigine.com>
 

Bleep bloop.  Greetings Simon Horman, I am a robot and I have tried out your patch.
Thanks for your contribution.

I encountered some error that I wasn't expecting.  See the details below.


checkpatch:
WARNING: Unexpected sign-offs from developers who are not authors or co-authors or committers: Simon Horman <simon.horman@corigine.com>
Lines checked: 55, Warnings: 1, Errors: 0


Please check this out.  If you feel there has been an error, please email aconole@redhat.com

Thanks,
0-day Robot
diff mbox series

Patch

diff --git a/lib/id-pool.c b/lib/id-pool.c
index 69910ad08e83..97b7185ed538 100644
--- a/lib/id-pool.c
+++ b/lib/id-pool.c
@@ -17,13 +17,6 @@ 
 
 #include <config.h>
 #include "id-pool.h"
-#include "openvswitch/hmap.h"
-#include "hash.h"
-
-struct id_node {
-    struct hmap_node node;
-    uint32_t id;
-};
 
 struct id_pool {
     struct hmap map;
diff --git a/lib/id-pool.h b/lib/id-pool.h
index 8721f87934bb..f71cc570f104 100644
--- a/lib/id-pool.h
+++ b/lib/id-pool.h
@@ -21,6 +21,13 @@ 
 #include <stdbool.h>
 #include <stddef.h>
 #include <stdint.h>
+#include "openvswitch/hmap.h"
+#include "hash.h"
+
+struct id_node {
+    struct hmap_node node;
+    uint32_t id;
+};
 
 struct id_pool;