Re: [PATCH net-next] net/rds: Use DMA memory pool allocation for rds_header

2019-10-02 Thread David Miller
From: Ka-Cheong Poon Date: Wed, 2 Oct 2019 13:20:22 +0800 > And the i_{recv|send|_hdrs_dma array dereferencing is done > at send/receive ring initialization and refill. It is not > done at every access of the header. Ok, please add this info to the commit message and resubmit. Thanks.

Re: [PATCH net-next] net/rds: Use DMA memory pool allocation for rds_header

2019-10-02 Thread HÃ¥kon Bugge
> On 2 Oct 2019, at 07:20, Ka-Cheong Poon wrote: > > On 10/2/19 1:16 AM, David Miller wrote: >> From: Ka-Cheong Poon >> Date: Mon, 30 Sep 2019 02:08:00 -0700 >>> Currently, RDS calls ib_dma_alloc_coherent() to allocate a large piece >>> of contiguous DMA coherent memory to store struct rds_he

Re: [PATCH net-next] net/rds: Use DMA memory pool allocation for rds_header

2019-10-01 Thread Ka-Cheong Poon
On 10/2/19 1:16 AM, David Miller wrote: From: Ka-Cheong Poon Date: Mon, 30 Sep 2019 02:08:00 -0700 Currently, RDS calls ib_dma_alloc_coherent() to allocate a large piece of contiguous DMA coherent memory to store struct rds_header for sending/receiving packets. The memory allocated is then pa

Re: [PATCH net-next] net/rds: Use DMA memory pool allocation for rds_header

2019-10-01 Thread David Miller
From: Ka-Cheong Poon Date: Mon, 30 Sep 2019 02:08:00 -0700 > Currently, RDS calls ib_dma_alloc_coherent() to allocate a large piece > of contiguous DMA coherent memory to store struct rds_header for > sending/receiving packets. The memory allocated is then partitioned > into struct rds_header.

Re: [PATCH net-next] net/rds: Use DMA memory pool allocation for rds_header

2019-09-30 Thread santosh . shilimkar
On 9/30/19 2:08 AM, Ka-Cheong Poon wrote: Currently, RDS calls ib_dma_alloc_coherent() to allocate a large piece of contiguous DMA coherent memory to store struct rds_header for sending/receiving packets. The memory allocated is then partitioned into struct rds_header. This is not necessary and

[PATCH net-next] net/rds: Use DMA memory pool allocation for rds_header

2019-09-30 Thread Ka-Cheong Poon
Currently, RDS calls ib_dma_alloc_coherent() to allocate a large piece of contiguous DMA coherent memory to store struct rds_header for sending/receiving packets. The memory allocated is then partitioned into struct rds_header. This is not necessary and can be costly at times when memory is fragm