net/i40e: fix integer overflow
authorXiao Zhang <xiao.zhang@intel.com>
Tue, 15 Oct 2019 05:29:19 +0000 (13:29 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 23 Oct 2019 14:43:09 +0000 (16:43 +0200)
commit01c12d247e699887926d0b92a102201019b8cd1e
tree6472d940b34bc054ea566e1f6d6fcc0be1d39b56
parent83665e492f9daf13aad5647f378df29c3922dc2a
net/i40e: fix integer overflow

When configuring i40e rx queue, the temporary variable to store max
packet length is not big enough which leads to integer overflow issue.
This patch fixes the issue by removing the variable and using the
expression directly since the variable is only used once.

Fixes: 4861cde46116 ("i40e: new poll mode driver")
Cc: stable@dpdk.org
Signed-off-by: Xiao Zhang <xiao.zhang@intel.com>
Reviewed-by: Xiaolong Ye <xiaolong.ye@intel.com>
drivers/net/i40e/i40e_rxtx.c