> -----Original Message----- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Yeddula, Avinash > Sent: Friday, June 29, 2018 1:11 AM > To: dev@dpdk.org; dev <dev-boun...@dpdk.org>; us...@dpdk.org > Cc: Bly, Mike <m...@ciena.com> > Subject: [dpdk-dev] 17.05 --> 17.11, minimum hash table key size > > Hello, > > We are in process of migrating our design from DPDK 17.05 to 17.11 and we > ran into a small problem. Within our design, we have some hash tables with > 4-byte keys. While going through the changes done in 17.11, we have found > there was an added key_size check, which now requires key_size >= 8 bytes > (see check_params_create() in rte_table_hash_ext.c). Not seeing any other > options, so I was hoping someone could advise on how to support a 4-byte > hash key size in 17.11 and on a go forward basis. > > Regards, > Avinash
Hi Avinash, Simply declare you key size to be 8 bytes for any key size less or equal to 8 bytes and set the key mask parameter appropriately so that the additional bytes are masked out. Regards, Cristian