net/liquidio: fix MTU calculation from port configuration
authorShijith Thotton <shijith.thotton@caviumnetworks.com>
Tue, 6 Jun 2017 11:04:34 +0000 (16:34 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 12 Jun 2017 09:41:29 +0000 (10:41 +0100)
commitdc7037ba73f84c8bc5923813e0398f3c1c28de9d
tree288ee1aefeeee67397519e03e81befb7837c07d0
parent9f05a4b81809c9e701f5af99bb37a006307c3879
net/liquidio: fix MTU calculation from port configuration

max_rx_pkt_len member of port RX configuration indicates max frame
length. Ethernet header and CRC length should be subtracted from it to
find MTU.

Fixes: 605164c8e79d ("net/liquidio: add API to validate VF MTU")
Cc: stable@dpdk.org
Signed-off-by: Shijith Thotton <shijith.thotton@caviumnetworks.com>
drivers/net/liquidio/lio_ethdev.c