net/enic: fix max packet length check
authorJohn Daley <johndale@cisco.com>
Tue, 1 Nov 2016 18:08:28 +0000 (11:08 -0700)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 7 Nov 2016 17:01:11 +0000 (18:01 +0100)
commitf201fd0585fa8bdc2c3005c2f363460e487cda2d
treed3e572d1960944c81dea7b997ad6e3aa7e7b3f17
parentb66b6e72bb4db64994fea4ecf77b3b3e7307d5d7
net/enic: fix max packet length check

When the device was configured with an explicit maximum packet length,
it would fail if the value was greater than MTU configured in CIMC/UCSM
(plus L2 header length). It should have been compared against maximum
allowed by the device.

Fixes: bb34ffb848a0 ("net/enic: determine max egress packet size and max MTU")

Signed-off-by: John Daley <johndale@cisco.com>
drivers/net/enic/enic_ethdev.c