Re: [vpp-dev] some information loss in 32-bit system

2017-06-22 Thread Luke, Chris
compatibility, we would have to do the same in the IPv4 case too. Chris. From: vpp-dev-boun...@lists.fd.io [mailto:vpp-dev-boun...@lists.fd.io] On Behalf Of ??? Sent: Thursday, June 22, 2017 8:10 To: vpp-dev Subject: [vpp-dev] some information loss in 32-bit system Hi, The hash_create and hash_get use

[vpp-dev] some information loss in 32-bit system

2017-06-22 Thread 薛欣颖
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->t