Re: [PATCH net-next v2] net: octeontx2: Fix the confusion in buffer alloc failure path

2021-02-10 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net-next.git (refs/heads/master): On Tue, 9 Feb 2021 18:15:16 +0800 you wrote: > Pavel pointed that the return of dma_addr_t in > otx2_alloc_rbuf/__otx2_alloc_rbuf() seem suspicious because a negative > error code may be returned in some cases. For a dma_a

Re: [PATCH net-next v2] net: octeontx2: Fix the confusion in buffer alloc failure path

2021-02-10 Thread Alexander Duyck
On Tue, Feb 9, 2021 at 2:23 AM Kevin Hao wrote: > > Pavel pointed that the return of dma_addr_t in > otx2_alloc_rbuf/__otx2_alloc_rbuf() seem suspicious because a negative > error code may be returned in some cases. For a dma_addr_t, the error > code such as -ENOMEM does seem a valid value, so we

[PATCH net-next v2] net: octeontx2: Fix the confusion in buffer alloc failure path

2021-02-09 Thread Kevin Hao
Pavel pointed that the return of dma_addr_t in otx2_alloc_rbuf/__otx2_alloc_rbuf() seem suspicious because a negative error code may be returned in some cases. For a dma_addr_t, the error code such as -ENOMEM does seem a valid value, so we can't judge if the buffer allocation fail or not based on t