Re: [PATCH net] net: lantiq_xrx200: increase buffer reservation

From: Andrew Lunn
Date: Sun Dec 05 2021 - 21:10:25 EST


> +static inline int xrx200_max_frame_len(int mtu)
> +{
> + return VLAN_ETH_HLEN + mtu + ETH_FCS_LEN;
> +}
> +
> +static inline int xrx200_buffer_size(int mtu)
> +{
> + return round_up(xrx200_max_frame_len(mtu) - 1, 4 * XRX200_DMA_BURST_LEN);
> +}

Please don't use inline in .c files. Let the compiler decide.

Andrew