net/qede/base: fix division by zero
authorRasesh Mody <rasesh.mody@cavium.com>
Tue, 7 Nov 2017 08:34:24 +0000 (00:34 -0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 7 Nov 2017 23:49:59 +0000 (00:49 +0100)
commit5b5f9675d332f192388a9e89a779b0285139e0e2
treec7f7f6472a9c1251d964a069d522c57eecbc6d15
parentfac6b33a5e1970ce44b6a33258ff31d2552fd63f
net/qede/base: fix division by zero

Fix division by zero in calculating the regpair elements per page
Remove unused API ecore_cxt_free_proto_ilt()

Coverity issue: 13794231379428
Fixes: 22d07d939c3c ("net/qede/base: update")
Cc: stable@dpdk.org
Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com>
drivers/net/qede/base/ecore_cxt.c