• A
    ixgbevf: Fix coexistence of malicious driver detection with XDP · 4be87727
    Alexander Duyck 提交于
    In the case of the VF driver it is supposed to provide a context descriptor
    that allows us to provide information about the header offsets inside of
    the frame. However in the case of XDP we don't really have any of that
    information since the data is minimally processed. As a result we were
    seeing malicious driver detection (MDD) events being triggered when the PF
    had that functionality enabled.
    
    To address this I have added a bit of new code that will "prime" the XDP
    ring by providing one context descriptor that assumes the minimal setup of
    an Ethernet frame which is an L2 header length of 14. With just that we can
    provide enough information to make the hardware happy so that we don't
    trigger MDD events.
    Signed-off-by: NAlexander Duyck <alexander.h.duyck@intel.com>
    Tested-by: NAndrew Bowers <andrewx.bowers@intel.com>
    Signed-off-by: NJeff Kirsher <jeffrey.t.kirsher@intel.com>
    4be87727
ixgbevf.h 13.3 KB