• L
    amd-xgbe: Rework the Rx path SKB allocation · 7d9ca345
    Lendacky, Thomas 提交于
    Rework the SKB allocation so that all of the buffers of the first
    descriptor are handled in the SKB allocation routine. After copying the
    data in the header buffer (which can be just the header if split header
    processing succeeded for header plus data if split header processing did
    not succeed) into the SKB, check for remaining data in the receive
    buffer. If there is data remaining in the receive buffer, add that as a
    frag to the SKB. Once an SKB has been allocated, all other descriptors
    are added as frags to the SKB.
    Signed-off-by: NTom Lendacky <thomas.lendacky@amd.com>
    Signed-off-by: NDavid S. Miller <davem@davemloft.net>
    7d9ca345
xgbe-desc.c 18.7 KB