• Horatiu Vultur's avatar
    net: lan966x: Stop using packing library · fd762783
    Horatiu Vultur authored
    When a frame is injected from CPU, it is required to create an IFH(Inter
    frame header) which sits in front of the frame that is transmitted.
    This IFH, contains different fields like destination port, to bypass the
    analyzer, priotity, etc. Lan966x it is using packing library to set and
    get the fields of this IFH. But this seems to be an expensive
    operations.
    If this is changed with a simpler implementation, the RX will be
    improved with ~5Mbit while on the TX is a much bigger improvement as it
    is required to set more fields. Below are the numbers for TX.
    
    Before:
    [  5]   0.00-10.02  sec   439 MBytes   367 Mbits/sec    0 sender
    
    After:
    [  5]   0.00-10.00  sec   578 MBytes   485 Mbits/sec    0 sender
    Signed-off-by: default avatarHoratiu Vultur <horatiu.vultur@microchip.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    fd762783
lan966x_main.c 32.4 KB