• Sean Anderson's avatar
    net: dpaa: Adjust queue depth on rate change · ef2a8d54
    Sean Anderson authored
    Instead of setting the queue depth once during probe, adjust it on the
    fly whenever we configure the link. This is a bit unusal, since usually
    the DPAA driver calls into the FMAN driver, but here we do the opposite.
    We need to add a netdev to struct mac_device for this, but it will soon
    live in the phylink config.
    
    I haven't tested this extensively, but it doesn't seem to break
    anything. We could possibly optimize this a bit by keeping track of the
    last rate, but for now we just update every time. 10GEC probably doesn't
    need to call into this at all, but I've added it for consistency.
    Signed-off-by: default avatarSean Anderson <sean.anderson@seco.com>
    Acked-by: default avatarCamelia Groza <camelia.groza@nxp.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    ef2a8d54
dpaa_eth.c 94.6 KB