Hi,

The hash_create and hash_get use u64 as key in 64-bit system.
In 32-bit system the key will be casting to uword, the high 32 bits of 
information will be dropped.

gm->tunnel_by_key4 = hash_create (0, sizeof (uword));

hash_set (gm->tunnel_by_key4, key4, t - gm->tunnels);

p = hash_get (gm->tunnel_by_key4, key4);

How should we prevent the loss of information?

Thanks,
xyxue


_______________________________________________
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

Reply via email to