kni: calculate MTU from mbuf size
authorLiron Himi <lironh@marvell.com>
Tue, 26 Mar 2019 18:40:10 +0000 (20:40 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 29 Mar 2019 23:59:59 +0000 (00:59 +0100)
commitff1e35fb5f8330f89d13f58c9fb767b5bd188940
treee848cbfe43222159104d43ccd6c807ad0af67ee1
parent23d5455517568966ca8cac216941128ed3d3a455
kni: calculate MTU from mbuf size

- mbuf_size and mtu are now being calculated according
to the given mb-pool.

- max_mtu is now being set according to the given mtu

the above two changes provide the ability to work with jumbo frames

Signed-off-by: Liron Himi <lironh@marvell.com>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
doc/guides/nics/kni.rst
doc/guides/prog_guide/kernel_nic_interface.rst
doc/guides/rel_notes/release_19_05.rst
drivers/net/kni/rte_eth_kni.c
kernel/linux/kni/compat.h
kernel/linux/kni/kni_misc.c