<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:10.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
{mso-style-priority:99;
mso-style-link:"Plain Text Char";
margin:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-ligatures:standardcontextual;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:Consolas;}
span.EmailStyle23
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.PlainTextChar
{mso-style-name:"Plain Text Char";
mso-style-priority:99;
mso-style-link:"Plain Text";
font-family:"Calibri",sans-serif;
mso-ligatures:standardcontextual;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;
mso-ligatures:none;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoPlainText"><font size="2" face="Calibri"><span style="font-size:11.0pt">From discussion with Thomas in previous versions of this patch, we agreed to omit both markers.<br>
<br>
</span>> From: Thomas Monjalon <<a href="mailto:thomas@monjalon.net">thomas@monjalon.net</a>><o:p></o:p></font></p>
<p class="MsoPlainText"><font size="2" face="Calibri"><span style="font-size:11.0pt">> Sent: Monday, July 3, 2023 2:17 PM<o:p></o:p></span></font></p>
<p class="MsoPlainText"><font size="2" face="Calibri"><span style="font-size:11.0pt">> To: Dumitrescu, Cristian; Volodymyr Fialko<o:p></o:p></span></font></p>
<p class="MsoPlainText"><font size="2" face="Calibri"><span style="font-size:11.0pt">> Cc:
<a href="mailto:dev@dpdk.org">dev@dpdk.org</a>; Jerin Jacob Kollanukkaran; Anoob Joseph<o:p></o:p></span></font></p>
<p class="MsoPlainText"><font size="2" face="Calibri"><span style="font-size:11.0pt">> Subject: Re: [PATCH v3] bitmap: add scan from offset function<o:p></o:p></span></font></p>
<p class="MsoPlainText"><font size="2" face="Calibri"><span style="font-size:11.0pt">>
<o:p></o:p></span></font></p>
<p class="MsoPlainText"><font size="2" face="Calibri"><span style="font-size:11.0pt">> > --------------------------------------------------------------------<o:p></o:p></span></font></p>
<p class="MsoPlainText"><font size="2" face="Calibri"><span style="font-size:11.0pt">> > --<o:p></o:p></span></font></p>
<p class="MsoPlainText"><font size="2" face="Calibri"><span style="font-size:11.0pt">> > 03/07/2023 12:56, Volodymyr Fialko:<o:p></o:p></span></font></p>
<p class="MsoPlainText"><font size="2" face="Calibri"><span style="font-size:11.0pt">> > > Since it's header-only library, there is issue with using __rte_intenal (appeared in v4).<br>
> > > Even if the function itself is not used directly, it get's included to the other public files.<br>
> > > </span>It explains why other functions in this library does not have the rte_internal prefix, but the double underscores.<o:p></o:p></font></p>
<p class="MsoPlainText"><font size="2" face="Calibri"><span style="font-size:11.0pt">> >
<o:p></o:p></span></font></p>
<p class="MsoPlainText"><font size="2" face="Calibri"><span style="font-size:11.0pt">> > What is the issue?<o:p></o:p></span></font></p>
<p class="MsoPlainText"><font size="2" face="Calibri"><span style="font-size:11.0pt">>
<o:p></o:p></span></font></p>
<p class="MsoPlainText"><font size="2" face="Calibri"><span style="font-size:11.0pt">> From V4 ci build failure(<a href="http://mails.dpdk.org/archives/test-report/2023-July/421235.html">http://mails.dpdk.org/archives/test-report/2023-July/421235.html</a>):<o:p></o:p></span></font></p>
<p class="MsoPlainText"><font size="2" face="Calibri"><span style="font-size:11.0pt">> In file included from ../examples/ipsec-secgw/event_helper.c:6:<o:p></o:p></span></font></p>
<p class="MsoPlainText"><font size="2" face="Calibri"><span style="font-size:11.0pt">> ../lib/eal/include/rte_bitmap.h:645:2: error: Symbol is not public ABI<o:p></o:p></span></font></p>
<p class="MsoPlainText"><font size="2" face="Calibri"><span style="font-size:11.0pt">> __rte_bitmap_scan_init_at(bmp, offset);<o:p></o:p></span></font></p>
<p class="MsoPlainText"><font size="2" face="Calibri"><span style="font-size:11.0pt">> ^<o:p></o:p></span></font></p>
<p class="MsoPlainText"><font size="2" face="Calibri"><span style="font-size:11.0pt">> ../lib/eal/include/rte_bitmap.h:150:1: note: from 'diagnose_if' attribute on '__rte_bitmap_scan_init_at':<o:p></o:p></span></font></p>
<p class="MsoPlainText"><font size="2" face="Calibri"><span style="font-size:11.0pt">> __rte_internal<o:p></o:p></span></font></p>
<p class="MsoPlainText"><font size="2" face="Calibri"><span style="font-size:11.0pt">> ^~~~~~~~~~~~~~<o:p></o:p></span></font></p>
<p class="MsoPlainText"><font size="2" face="Calibri"><span style="font-size:11.0pt">> ../lib/eal/include/rte_compat.h:42:16: note: expanded from macro '__rte_internal'
<o:p></o:p></span></font></p>
<p class="MsoPlainText"><font size="2" face="Calibri"><span style="font-size:11.0pt">> __attribute__((diagnose_if(1, "Symbol is not public ABI", "error"), \<o:p></o:p></span></font></p>
<p class="MsoPlainText"><font size="2" face="Calibri"><span style="font-size:11.0pt">> ^ ~<o:p></o:p></span></font></p>
<p class="MsoPlainText"><font size="2" face="Calibri"><span style="font-size:11.0pt">> 1 error generated.<o:p></o:p></span></font></p>
<p class="MsoPlainText"><font size="2" face="Calibri"><o:p> </o:p></font></p>
<p class="MsoPlainText"><font size="2" face="Calibri"><span style="font-size:11.0pt">> OK I see.<o:p></o:p></span></font></p>
<p class="MsoPlainText"><font size="2" face="Calibri"><span style="font-size:11.0pt">> So we should give up with __rte_internal for inline functions.<o:p></o:p></span></font></p>
<p class="MsoPlainText"><font size="2" face="Calibri"><span style="font-size:11.0pt">> As it is not supposed to be exposed to the applications, I think we
<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Calibri"><span style="font-size:10.0pt">> can skip the __rte_experimental flag.</span></font><font size="2"><span style="font-size:11.0pt"><br>
<br>
<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Calibri"><span style="font-size:11.0pt"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Calibri"><span style="font-size:11.0pt">/Volodymyr</span></font><font size="2"><span style="font-size:11.0pt"><o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Calibri"><span style="font-size:11.0pt"><o:p> </o:p></span></font></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><font size="2" face="Calibri"><span style="font-size:11.0pt;font-weight:bold">From:</span></font></b><font size="2"><span style="font-size:11.0pt"> Stephen Hemminger <stephen@networkplumber.org>
<br>
<b><span style="font-weight:bold">Sent:</span></b> Friday, October 4, 2024 5:04 AM<br>
<b><span style="font-weight:bold">To:</span></b> Volodymyr Fialko <vfialko@marvell.com><br>
<b><span style="font-weight:bold">Cc:</span></b> dev@dpdk.org; cristian.dumitrescu@intel.com; Jerin Jacob <jerinj@marvell.com>; Anoob Joseph <anoobj@marvell.com>; thomas@monjalon.net<br>
<b><span style="font-weight:bold">Subject:</span></b> [EXTERNAL] Re: [PATCH v5] bitmap: add scan from offset function<o:p></o:p></span></font></p>
</div>
</div>
<div>
<p class="MsoNormal" style="mso-line-height-alt:.75pt"><font size="1" color="#262626" face="Calibri"><span style="font-size:1.0pt;color:white">Mon, 3 Jul 2023 14: 39: 08 +0200 Volodymyr Fialko <vfialko@ marvell. com> wrote: > +/** > + * Bitmap initialize internal
scan pointers at the given position for the scan function. > + * > + * Note: for private/internal use,<o:p></o:p></span></font></p>
</div>
<div>
<p class="MsoNormal" style="mso-line-height-alt:.75pt"><font size="1" color="#262626" face="Calibri"><span style="font-size:1.0pt;color:white">ZjQcmQRYFpfptBannerStart<o:p></o:p></span></font></p>
</div>
<div>
<p class="MsoNormal" style="mso-line-height-alt:.75pt"><font size="1" face="Calibri"><span style="font-size:1.0pt">
</span></font><font size="2" face="Arial"><span style="font-size:11.0pt;font-family:"Arial",sans-serif">On Mon, 3 Jul 2023 14:39:08 +0200</span></font><font size="1"><span style="font-size:1.0pt"><o:p></o:p></span></font></p>
</div>
<div>
<pre><font size="2" face="Arial"><span style="font-size:11.0pt;font-family:"Arial",sans-serif">Volodymyr Fialko <<a href="mailto:vfialko@marvell.com">vfialko@marvell.com</a>> wrote:<o:p></o:p></span></font></pre>
<pre><font size="2" face="Arial"><span style="font-size:11.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></font></pre>
<pre><font size="2" face="Arial"><span style="font-size:11.0pt;font-family:"Arial",sans-serif">> +/**<o:p></o:p></span></font></pre>
<pre><font size="2" face="Arial"><span style="font-size:11.0pt;font-family:"Arial",sans-serif">> + * Bitmap initialize internal scan pointers at the given position for the scan function.<o:p></o:p></span></font></pre>
<pre><font size="2" face="Arial"><span style="font-size:11.0pt;font-family:"Arial",sans-serif">> + *<o:p></o:p></span></font></pre>
<pre><font size="2" face="Arial"><span style="font-size:11.0pt;font-family:"Arial",sans-serif">> + * Note: for private/internal use, for public:<o:p></o:p></span></font></pre>
<pre><font size="2" face="Arial"><span style="font-size:11.0pt;font-family:"Arial",sans-serif">> + * @see rte_bitmap_scan_from_offset()<o:p></o:p></span></font></pre>
<pre><font size="2" face="Arial"><span style="font-size:11.0pt;font-family:"Arial",sans-serif">> + *<o:p></o:p></span></font></pre>
<pre><font size="2" face="Arial"><span style="font-size:11.0pt;font-family:"Arial",sans-serif">> + * @param bmp<o:p></o:p></span></font></pre>
<pre><font size="2" face="Arial"><span style="font-size:11.0pt;font-family:"Arial",sans-serif">> + * Handle to bitmap instance<o:p></o:p></span></font></pre>
<pre><font size="2" face="Arial"><span style="font-size:11.0pt;font-family:"Arial",sans-serif">> + * @param pos<o:p></o:p></span></font></pre>
<pre><font size="2" face="Arial"><span style="font-size:11.0pt;font-family:"Arial",sans-serif">> + * Bit position to start scan<o:p></o:p></span></font></pre>
<pre><font size="2" face="Arial"><span style="font-size:11.0pt;font-family:"Arial",sans-serif">> + */<o:p></o:p></span></font></pre>
<pre><font size="2" face="Arial"><span style="font-size:11.0pt;font-family:"Arial",sans-serif">> +static inline void<o:p></o:p></span></font></pre>
<pre><font size="2" face="Arial"><span style="font-size:11.0pt;font-family:"Arial",sans-serif">> +__rte_bitmap_scan_init_at(struct rte_bitmap *bmp, uint32_t pos)<o:p></o:p></span></font></pre>
<pre><font size="2" face="Arial"><span style="font-size:11.0pt;font-family:"Arial",sans-serif">> +{<o:p></o:p></span></font></pre>
<pre><font size="2" face="Arial"><span style="font-size:11.0pt;font-family:"Arial",sans-serif">> + uint64_t *slab1;<o:p></o:p></span></font></pre>
<pre><font size="2" face="Arial"><span style="font-size:11.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></font></pre>
<pre><font size="2" face="Arial"><span style="font-size:11.0pt;font-family:"Arial",sans-serif">Since this exposed in a header file, needs to be internal or experimental.<o:p></o:p></span></font></pre>
</div>
</div>
</div>
</body>
</html>