<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, May 5, 2024 at 7:21 PM Stephen Hemminger <<a href="mailto:stephen@networkplumber.org">stephen@networkplumber.org</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">On Sat,  4 May 2024 19:18:37 +0000<br>
Abdullah Ömer Yamaç <<a href="mailto:aomeryamac@gmail.com" target="_blank">aomeryamac@gmail.com</a>> wrote:<br>
<br>
> clang-format is a tool to format C/C++/Objective-C code. It can be used<br>
> to reformat code to match a given coding style, or to ensure that code<br>
> adheres to a specific coding style. It helps to maintain a consistent<br>
> coding style across the DPDK codebase.<br>
> <br>
> .clang-format file overrides the default style options provided by<br>
> clang-format and large set of IDEs and text editors support it.<br>
> <br>
> Signed-off-by: Abdullah Ömer Yamaç <<a href="mailto:aomeryamac@gmail.com" target="_blank">aomeryamac@gmail.com</a>><br>
<br>
Also, this looks wrong.  The initialized arrays looked better before.<br>
<br>
<br>
-static const char *tuntap_types[ETH_TUNTAP_TYPE_MAX] = {<br>
-       "UNKNOWN", "TUN", "TAP"<br>
-};<br>
+static const char *tuntap_types[ETH_TUNTAP_TYPE_MAX] = {"UNKNOWN", "TUN", "TAP"};<br>
<br>
-static const char *valid_arguments[] = {<br>
-       ETH_TAP_IFACE_ARG,<br>
-       ETH_TAP_REMOTE_ARG,<br>
-       ETH_TAP_MAC_ARG,<br>
-       ETH_TAP_PERSIST_ARG,<br>
-       NULL<br>
-};<br>
+static const char *valid_arguments[] = {ETH_TAP_IFACE_ARG, ETH_TAP_REMOTE_ARG, ETH_TAP_MAC_ARG,<br>
+                                       ETH_TAP_PERSIST_ARG, NULL};<br></blockquote><div><br>I am confused about these variables.  tuntap_types list values in a single line, but valid_arguments' values are listed separately.</div><div>So, it is getting more complex to handle both of them. What should we do, do you have any idea?</div></div></div>