net/i40e: fix Rx data segment buffer length
authorQi Zhang <qi.z.zhang@intel.com>
Wed, 2 Aug 2017 07:22:09 +0000 (15:22 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 3 Aug 2017 20:45:52 +0000 (22:45 +0200)
commit1ff8e79591a6cc99c475a50e87adb30d9b20569a
tree0592cfa44fe6166f6ea83dc1ef8d4f404813d785
parent79da7b914d310fa5a9649a0aa3e3537be39b7efc
net/i40e: fix Rx data segment buffer length

Buffer length be configured for each data segment should not exceed
the requested value, or device may fill data that exceed the boundary
of memory that be reserved.

Fixes: 4861cde46116 ("i40e: new poll mode driver")
Cc: stable@dpdk.org
Signed-off-by: Jianfeng Tan <jianfeng.tan@intel.com>
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Reviewed-by: Mark Kavanagh <mark.b.kavanagh@intel.com>
Tested-by: Mark Kavanagh <mark.b.kavanagh@intel.com>
drivers/net/i40e/i40e_rxtx.c