HomeFreeBSD

ixv: Dynamically size the receive packet size

Description

ixv: Dynamically size the receive packet size

If MTU of the if_ixv VF driver is configured between 1501 and 2030, and
if a peer box have bigger MTU and sends a packet bigger than MTU into
this guest, kernel could crash.

Dynamically calculate the receive packet size on rx_mbuf_sz as ix(4)
does.

PR: 268092
Reported by: Kumara Babu <nkumarababu@gmail.com>
Sponsored by: BBOX.io

(cherry picked from commit cdbe3de5383706da0f6d3c29f1ec2dcfed366bf1)

Details

Provenance
Kevin Bowling <kbowling@FreeBSD.org>Authored on Sat, Oct 26, 9:34 PM
Parents
rGa8308a15f48e: ixgbe.4: Add flow director CAVEAT
Branches
Unknown
Tags
Unknown

Event Timeline

Kevin Bowling <kbowling@FreeBSD.org> committed rG9679df8eea14: ixv: Dynamically size the receive packet size (authored by Kevin Bowling <kbowling@FreeBSD.org>).Tue, Oct 29, 12:29 AM