Skip to content

Commit c856376

Browse files
committed
Increase pcn-router ARP table dimension
The pcn-router ARP table dimension was not sufficient to handle a number of client pods greater than 32 in the Polykube network provider use case. Update the dimension of the ARP table to a reasonably high value. Signed-off-by: Leonardo Di Giovanna <[email protected]>
1 parent 577bf22 commit c856376

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/pcn-router/src/Router_dp.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
#define CHECK_MAC_DST
3131
#define ROUTING_TABLE_DIM 256
3232
#define ROUTER_PORT_N 32
33-
#define ARP_TABLE_DIM 32
33+
#define ARP_TABLE_DIM 1024
3434
#define MAX_SECONDARY_ADDRESSES 5 // also defined in Ports.h
3535
#define TYPE_NOLOCALINTERFACE 0 // used to compare the 'type' field in the rt_v
3636
#define TYPE_LOCALINTERFACE 1

0 commit comments

Comments
 (0)