<div dir="ltr"><div dir="ltr">Hi Maryam,<br></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Mon, Jan 20, 2025 at 4:28 PM Maryam Tahhan <<a href="mailto:mtahhan@redhat.com">mtahhan@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
On 16/01/2025 17:51, Ariel Otilibili wrote: <br></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
This ends up duplicating the if condition `if (mbuf->pool == <br>
umem->mb_pool) {` twice in `af_xdp_tx_zc`. Which is messy to read tbh...<br>
<br>
I think it would be better to create an inline function for the <br>
duplicate code that setting desc, addr and offset. These three things <br>
could be pointers passed to the new inline function and that way their <br>
values can be used in `af_xdp_tx_zc()` after they are set. I think that <br>
would cleanup the `af_xdp_tx_zc()` function in a neater way.<br> </blockquote><div>Thanks for having looked into this patch. I'll improve the series on your feedback. <br></div></div></div>