net/af_xdp: fix integer overflow in umem size calculation
authorMartin Weiser <martin.weiser@allegro-packets.com>
Thu, 29 Oct 2020 11:25:42 +0000 (12:25 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 3 Nov 2020 22:35:06 +0000 (23:35 +0100)
commit97671617ec36f45ea8600fe9b1d88cc4bf4bb12b
tree1bc8e1bd5087e83152719e38887e4076e5aaaa1f
parent7e608a971dc0112d4044f1a83d41f4866983ea04
net/af_xdp: fix integer overflow in umem size calculation

The multiplication of two u32 integers may cause an overflow with large
mempool sizes.

Fixes: 74b46340e2d4 ("net/af_xdp: support shared UMEM")

Signed-off-by: Martin Weiser <martin.weiser@allegro-packets.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/af_xdp/rte_eth_af_xdp.c