ethdev: fix size of flow type mask array
authorHelin Zhang <helin.zhang@intel.com>
Wed, 4 Feb 2015 07:16:30 +0000 (15:16 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Sun, 22 Feb 2015 22:56:20 +0000 (23:56 +0100)
commitea4c89aeee8383bc5771127ae4bb385bab12983b
tree24d4e7bcf3052b88351e7c20b7fdb0c38f91ac02
parent38eef41d6ce7a8f9519d4e678bf9e494c6bca3d5
ethdev: fix size of flow type mask array

It wrongly calculates the size of the flow type mask array. The fix
is to align the flow type maximum index ID with the number of
element bit width, and then divide the number of element bit width.

Signed-off-by: Helin Zhang <helin.zhang@intel.com>
Acked-by: Jingjing Wu <jingjing.wu@intel.com>
lib/librte_ether/rte_eth_ctrl.h