net/ring: use calloc style where appropriate
authorStephen Hemminger <stephen@networkplumber.org>
Tue, 23 Apr 2019 16:53:34 +0000 (09:53 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 3 May 2019 16:45:23 +0000 (18:45 +0200)
commit42a665a3227462c97222f623779a82c8d4f8c54e
tree383fc659d9e2ccdacce88281cf24f4ea3d4a6b5d
parent1af59f5ddacaf9287f81e20b49207f28ecbb0e56
net/ring: use calloc style where appropriate

Use rte_calloc_socket instead of computing size.

Fixes: 651c505af862 ("ring: enhance device setup from rings")
Cc: stable@dpdk.org
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/ring/rte_eth_ring.c