Wire the shared code mailbox-overflow detector into the VF lifecycleice: Isolate VFs after malicious-driver detection
and virtchnl dispatcher. E830 controllers use their per-VF hardwareConsume the per-function MDD latches to attribute transmit and receive
in-flight-message watermarkevents to the offending VF. On older controllers, attribute aTreat the global debug registers only as
congested mailbox snapshot to its sender and isolate the offending VF sothe last-cause diagnostic, add the missing Tx data-protection cause, and
that it cannot continue to fill the shared queue. A physical VFLR, PFselect the E830 TCLAN register addresses when required.
Block every virtchnl request from an offending VF, resett it, or IOV recreation releases it.and leave
its queues and interrupt mappings unconfigured. Most MDD classes stop a
queue, but Tx data protection only drops the offending packet; the reset
makes the reported blocked state an actual DMA fence for every class.
Complete VFR without restoring resources so a later physical FLR can
create a new reset edge and recover the function.
Process at most one initially full mailbox immediatelyComplete VFR before restoring queue and interrupt mappings. If producersE810 does
keep it nonempty,not retain mapping writes while VFSWR remains asserted; leave its interrupt masked and let the periodic adminretaining the
timer schedule bounded drain work. This prevents sustained mailboxoriginal hardware order prevents an immediate post-attach VFR from
traffic from monopolizing the iflib admin taskleaving queue-map enable clear.
Report software isolation and cumulative overflowE810 also sets a parent PF_MDET latch for an events in thet attributed by a
driver.ice VF status extension, document both protection models, and addVP_MDET latch to one of its VFs. Do not reinitialize the PF for those
failure-injection points for the isolationevent classes. This prevents a hostile VF from flapping PF and scheduibling paths.
traffic while retaining recovery for an unattributed PF queue event.
OnProvide an E810-XXV with two host-attached iavf VFs, injected overflow onopt-in auto-reset policy for operators who prefer
VF 0 disabled only that VF while VF 1 completed 60 of 60 pingsavailability to persistent isolation. AClear reset induced anti-spoof
physical VFLR and a PF reset eachlatches before released VF 0; IOV recreation alsoing a rebuilt VF.
reset its cumulative count. Forced persistent mailbox-pending stateThis follows the MDD attribution and reset semantics in section
produced 20 admin and control-queue passes in five seconds, remained9.2.2.2.1 of the Intel E810 Datasheet. The per-VF register coverage and
timer-pacedE830 TCLAN selection match the Intel ICE driver, and did not interrupt sibling traffic.while the default
fail-closed policy follows ixl(4).
Validated on E810 with four four-queue FreeBSD iavf VFs. An invalid
tail write blocked only the offender, incremented its Tx MDD counter,
caused no PF reinitialization, and left a sibling at 50/50 successful
pings. Physical FLR restored the offender and a PF reset rebuilt it
without a spurious anti-spoof block. With auto-reset enabled, the
offender resumed after the reset while its sibling completed 60/60
pings; all queue-map enable bits remained set after the second VFR.
MFC after: 2 weeks
Sponsored by: BBOX.io