sunvnet: fix rx packet length check to allow for TSO
authorDavid L Stevens <david.stevens@oracle.com>
Tue, 13 Jan 2015 17:45:05 +0000 (12:45 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Jan 2015 22:24:21 +0000 (17:24 -0500)
commit86cfeab6b510a2fe94683bf71f9b96b686e2e0ce
tree47158b07586febd9b5ed7acfe9f7e420c3b07fde
parent3e7a8716e20b759eec0ad88145255bb33174f0c8
sunvnet: fix rx packet length check to allow for TSO

This patch fixes the rx packet length check in the sunvnet driver to allow
for a TSO max packet length greater than the LDC channel negotiated MTU.
These are negotiated separately and there is no requirement that
port->tsolen be less than port->rmtu, but if it isn't, it'll drop packets
with rx length errors.

Signed-off-by: David L Stevens <david.stevens@oracle.com>
Acked-by: Sowmini Varadhan <sowmini.varadhan@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sun/sunvnet.c