[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20191029.174111.1326267225443351642.davem@davemloft.net>
Date: Tue, 29 Oct 2019 17:41:11 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: yangchun@...gle.com
Cc: netdev@...r.kernel.org, csully@...gle.com
Subject: Re: [PATCH net] gve: Fixes DMA synchronization.
From: Yangchun Fu <yangchun@...gle.com>
Date: Mon, 28 Oct 2019 11:23:09 -0700
> diff --git a/drivers/net/ethernet/google/gve/gve_tx.c b/drivers/net/ethernet/google/gve/gve_tx.c
> index 778b87b5a06c..d8342b7b9764 100644
> --- a/drivers/net/ethernet/google/gve/gve_tx.c
> +++ b/drivers/net/ethernet/google/gve/gve_tx.c
> @@ -390,7 +390,23 @@ static void gve_tx_fill_seg_desc(union gve_tx_desc *seg_desc,
> seg_desc->seg.seg_addr = cpu_to_be64(addr);
> }
>
> -static int gve_tx_add_skb(struct gve_tx_ring *tx, struct sk_buff *skb)
> +static inline void gve_dma_sync_for_device(struct gve_priv *priv,
> + dma_addr_t *page_buses,
> + u64 iov_offset, u64 iov_len)
Never use the inline keyword in foo.c files, let the compiler device.
Powered by blists - more mailing lists