• Benjamin Herrenschmidt's avatar
    ftgmac100: Directly receive into sk_buffs · 7b49cd1c
    Benjamin Herrenschmidt authored
    The current driver receive path allocates pages and stashes
    them into SKB fragments. This is not particularly useful as
    we don't support jumbo frames (which wouldn't be great with
    the small FIFOs on all the known implementations) anyway.
    
    It also makes us flush the caches and allocate more memory
    for RX than necessary.
    
    So set our RX buf to our max packet size instead (which we
    bump to 1536 bytes to account for packets with vlan tags
    etc...) like most other ethernet drivers.
    
    Then allocate skbs when populating the receive ring and DMA
    directly into them.
    
    This simplifies the RX path further.
    Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    7b49cd1c
ftgmac100.c 38.4 KB