net/af_packet: set default block size to page size
authorKrzysztof Kanas <kkanas@marvell.com>
Mon, 24 Jun 2019 14:32:00 +0000 (16:32 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 4 Jul 2019 23:52:01 +0000 (01:52 +0200)
commit4f538fa249cfdd84f4be412e035f3d4f2e38d0a8
tree942ca8a52422418be59c63e033658d1faeacfd3c
parent585b99fb4a36d2df1ee23b38e91e677e15b26e2f
net/af_packet: set default block size to page size

Kernel validates block size to be aligned to page size. Code works on
platforms with page size 4k, but on others e.g. Arm64 fails with default
parameters.

Signed-off-by: Krzysztof Kanas <kkanas@marvell.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/af_packet/rte_eth_af_packet.c