• Alexander Duyck's avatar
    ixgbevf: Fix coexistence of malicious driver detection with XDP · 4be87727
    Alexander Duyck authored
    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: default avatarAlexander Duyck <alexander.h.duyck@intel.com>
    Tested-by: default avatarAndrew Bowers <andrewx.bowers@intel.com>
    Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
    4be87727
ixgbevf_main.c 131 KB