[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <a965aadc-6e82-4d2d-8cf9-fc8da0f2817d@lunn.ch>
Date: Wed, 18 Dec 2024 20:47:31 +0100
From: Andrew Lunn <andrew@...n.ch>
To: Xin Tian <tianx@...silicon.com>
Cc: netdev@...r.kernel.org, andrew+netdev@...n.ch, kuba@...nel.org,
pabeni@...hat.com, edumazet@...gle.com, davem@...emloft.net,
jeff.johnson@....qualcomm.com, przemyslaw.kitszel@...el.com,
weihg@...silicon.com, wanry@...silicon.com
Subject: Re: [PATCH v1 13/16] net-next/yunsilicon: Add eth rx
> +++ b/drivers/net/ethernet/yunsilicon/xsc/net/xsc_eth_rx.c
> @@ -33,10 +33,572 @@
> * SOFTWARE.
> */
>
> +#include <linux/net_tstamp.h>
> +#include "xsc_eth.h"
> #include "xsc_eth_txrx.h"
> +#include "xsc_eth_common.h"
> +#include <linux/device.h>
> +#include "common/xsc_pp.h"
> +#include "xsc_pph.h"
> +
> +#define PAGE_REF_ELEV (U16_MAX)
> +/* Upper bound on number of packets that share a single page */
> +#define PAGE_REF_THRSD (PAGE_SIZE / 64)
> +
> +static inline void xsc_rq_notify_hw(struct xsc_rq *rq)
> +{
Please don't use inline functions in .c files. Let the compiler
decide.
Andrew
Powered by blists - more mailing lists