• Mintz, Yuval's avatar
    qede: Correct XDP forward unmapping · 89e1afc4
    Mintz, Yuval authored
    Driver is currently using dma_unmap_single() with the address it
    passed to device for the purpose of forwarding, but the XDP
    transmission buffer was originally a page allocated for the rx-queue.
    The mapped address is likely to differ from the original mapped
    address due to the placement offset.
    
    This difference is going to get even bigger once we support headroom.
    
    Cache the original mapped address of the page, and use it for unmapping
    of the buffer when completion arrives for the XDP forwarded packet.
    Signed-off-by: default avatarYuval Mintz <Yuval.Mintz@cavium.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    89e1afc4
qede_main.c 52.9 KB