[ovs-dev] 答复: ipf question
diff mbox series

Message ID 3dbc3d0ee8974be78bb4e71725a4ec87@baidu.com
State New
Headers show
Series
  • [ovs-dev] 答复: ipf question
Related show

Commit Message

Li RongQing Nov. 16, 2019, 2:12 a.m. UTC

Patch
diff mbox series

--- a/lib/dp-packet.h
+++ b/lib/dp-packet.h
@@ -704,7 +704,7 @@  dp_packet_has_flow_mark(struct dp_packet *p OVS_UNUSED,
     return false;
 }

-enum { NETDEV_MAX_BURST = 32 }; /* Maximum number packets in a batch. */
+enum { NETDEV_MAX_BURST = 64 }; /* Maximum number packets in a batch. */

 struct dp_packet_batch {
     size_t count;
diff --git a/lib/dpif-netdev.c b/lib/dpif-netdev.c
index dd26298..0c6e9dd 100644
--- a/lib/dpif-netdev.c
+++ b/lib/dpif-netdev.c
@@ -6650,7 +6650,7 @@  dpcls_lookup(struct dpcls *cls, const struct netdev_flow_key keys[],
     /* The received 'cnt' miniflows are the search-keys that will be processed
      * to find a matching entry into the available subtables.
      * The number of bits in map_type is equal to NETDEV_MAX_BURST. */
-    typedef uint32_t map_type;
+    typedef uint64_t map_type;
 #define MAP_BITS (sizeof(map_type) * CHAR_BIT)
     BUILD_ASSERT_DECL(MAP_BITS >= NETDEV_MAX_BURST);