X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Freplication.h;h=42ec69a43ffdb8ce1fab86fa47472cb4e5db1cb4;hb=57b5860f013953ce161d05302e05370db9cd6ee2;hp=5dc554c97b34f47984f896b1e7e49891234fa1fb;hpb=7cd468a3d7dee7d6c92f69a0bb7061ae208ec727;p=vpp.git diff --git a/src/vnet/replication.h b/src/vnet/replication.h index 5dc554c97b3..42ec69a43ff 100644 --- a/src/vnet/replication.h +++ b/src/vnet/replication.h @@ -27,8 +27,8 @@ typedef struct { /* The entire vnet buffer header restored for each replica */ - u8 vnet_buffer[32]; /* 16B aligned to allow vector unit copy */ - u8 reserved[32]; /* space for future expansion of vnet buffer header */ + u8 vnet_buffer[40]; /* 16B aligned to allow vector unit copy */ + u8 reserved[24]; /* space for future expansion of vnet buffer header */ /* feature state used during this replication */ u64 feature_replicas; /* feature's id for its set of replicas */ @@ -100,7 +100,7 @@ replication_get_ctx (vlib_buffer_t * b0) replication_main_t *rm = &replication_main; return replication_is_recycled (b0) ? - pool_elt_at_index (rm->contexts[os_get_cpu_number ()], + pool_elt_at_index (rm->contexts[vlib_get_thread_index ()], b0->recycle_count) : 0; }