git: 89918a2375cb - main - mlx5en: idiomatic use of preprocessor, in particular paths

From: Konstantin Belousov <kib_at_FreeBSD.org>
Date: Tue, 01 Feb 2022 14:46:19 UTC
The branch main has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=89918a2375cb27964d143aba6c40d22b41dbe520

commit 89918a2375cb27964d143aba6c40d22b41dbe520
Author:     Konstantin Belousov <konstantinb@nvidia.com>
AuthorDate: 2021-06-14 10:43:44 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2022-02-01 12:45:57 +0000

    mlx5en: idiomatic use of preprocessor, in particular paths
    
    MFC after:      1 week
    Sponsored by:   NVIDIA Networking
---
 sys/dev/mlx5/mlx5_en/en.h                  | 4 ++--
 sys/dev/mlx5/mlx5_en/mlx5_en_dim.c         | 2 +-
 sys/dev/mlx5/mlx5_en/mlx5_en_ethtool.c     | 4 ++--
 sys/dev/mlx5/mlx5_en/mlx5_en_flow_table.c  | 2 +-
 sys/dev/mlx5/mlx5_en/mlx5_en_hw_tls.c      | 2 +-
 sys/dev/mlx5/mlx5_en/mlx5_en_main.c        | 2 +-
 sys/dev/mlx5/mlx5_en/mlx5_en_port_buffer.c | 2 +-
 sys/dev/mlx5/mlx5_en/mlx5_en_rl.c          | 2 +-
 sys/dev/mlx5/mlx5_en/mlx5_en_rx.c          | 2 +-
 sys/dev/mlx5/mlx5_en/mlx5_en_tx.c          | 2 +-
 sys/dev/mlx5/mlx5_en/mlx5_en_txrx.c        | 2 +-
 sys/dev/mlx5/mlx5_en/port_buffer.h         | 2 +-
 12 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/sys/dev/mlx5/mlx5_en/en.h b/sys/dev/mlx5/mlx5_en/en.h
index 26d92827406c..af6cd8371506 100644
--- a/sys/dev/mlx5/mlx5_en/en.h
+++ b/sys/dev/mlx5/mlx5_en/en.h
@@ -982,8 +982,8 @@ struct mlx5e_xmit_args {
 	u16 ihs;
 };
 
-#include "en_rl.h"
-#include "en_hw_tls.h"
+#include <dev/mlx5/mlx5_en/en_rl.h>
+#include <dev/mlx5/mlx5_en/en_hw_tls.h>
 
 #define	MLX5E_TSTMP_PREC 10
 
diff --git a/sys/dev/mlx5/mlx5_en/mlx5_en_dim.c b/sys/dev/mlx5/mlx5_en/mlx5_en_dim.c
index cb8ffe098095..57ca04848bd2 100644
--- a/sys/dev/mlx5/mlx5_en/mlx5_en_dim.c
+++ b/sys/dev/mlx5/mlx5_en/mlx5_en_dim.c
@@ -28,7 +28,7 @@
 #include "opt_rss.h"
 #include "opt_ratelimit.h"
 
-#include "en.h"
+#include <dev/mlx5/mlx5_en/en.h>
 
 void
 mlx5e_dim_build_cq_param(struct mlx5e_priv *priv,
diff --git a/sys/dev/mlx5/mlx5_en/mlx5_en_ethtool.c b/sys/dev/mlx5/mlx5_en/mlx5_en_ethtool.c
index ab6392fa5fd6..11f47e3f8aa3 100644
--- a/sys/dev/mlx5/mlx5_en/mlx5_en_ethtool.c
+++ b/sys/dev/mlx5/mlx5_en/mlx5_en_ethtool.c
@@ -28,8 +28,8 @@
 #include "opt_rss.h"
 #include "opt_ratelimit.h"
 
-#include "en.h"
-#include "port_buffer.h"
+#include <dev/mlx5/mlx5_en/en.h>
+#include <dev/mlx5/mlx5_en/port_buffer.h>
 
 void
 mlx5e_create_stats(struct sysctl_ctx_list *ctx,
diff --git a/sys/dev/mlx5/mlx5_en/mlx5_en_flow_table.c b/sys/dev/mlx5/mlx5_en/mlx5_en_flow_table.c
index 5b139974c76f..da4b1cbb676d 100644
--- a/sys/dev/mlx5/mlx5_en/mlx5_en_flow_table.c
+++ b/sys/dev/mlx5/mlx5_en/mlx5_en_flow_table.c
@@ -28,7 +28,7 @@
 #include "opt_rss.h"
 #include "opt_ratelimit.h"
 
-#include "en.h"
+#include <dev/mlx5/mlx5_en/en.h>
 
 #include <linux/list.h>
 #include <dev/mlx5/fs.h>
diff --git a/sys/dev/mlx5/mlx5_en/mlx5_en_hw_tls.c b/sys/dev/mlx5/mlx5_en/mlx5_en_hw_tls.c
index d269b7fae64b..059703b28ce4 100644
--- a/sys/dev/mlx5/mlx5_en/mlx5_en_hw_tls.c
+++ b/sys/dev/mlx5/mlx5_en/mlx5_en_hw_tls.c
@@ -29,7 +29,7 @@
 #include "opt_rss.h"
 #include "opt_ratelimit.h"
 
-#include "en.h"
+#include <dev/mlx5/mlx5_en/en.h>
 
 #include <dev/mlx5/tls.h>
 
diff --git a/sys/dev/mlx5/mlx5_en/mlx5_en_main.c b/sys/dev/mlx5/mlx5_en/mlx5_en_main.c
index 92aae3180b5e..e8d9d26efc6f 100644
--- a/sys/dev/mlx5/mlx5_en/mlx5_en_main.c
+++ b/sys/dev/mlx5/mlx5_en/mlx5_en_main.c
@@ -29,7 +29,7 @@
 #include "opt_rss.h"
 #include "opt_ratelimit.h"
 
-#include "en.h"
+#include <dev/mlx5/mlx5_en/en.h>
 
 #include <sys/eventhandler.h>
 #include <sys/sockio.h>
diff --git a/sys/dev/mlx5/mlx5_en/mlx5_en_port_buffer.c b/sys/dev/mlx5/mlx5_en/mlx5_en_port_buffer.c
index 6c7ae5a297cc..078e31cf1949 100644
--- a/sys/dev/mlx5/mlx5_en/mlx5_en_port_buffer.c
+++ b/sys/dev/mlx5/mlx5_en/mlx5_en_port_buffer.c
@@ -28,7 +28,7 @@
 #include "opt_rss.h"
 #include "opt_ratelimit.h"
 
-#include "port_buffer.h"
+#include <dev/mlx5/mlx5_en/port_buffer.h>
 
 #define MLX5E_MAX_PORT_MTU  9216
 
diff --git a/sys/dev/mlx5/mlx5_en/mlx5_en_rl.c b/sys/dev/mlx5/mlx5_en/mlx5_en_rl.c
index ede6b5019cff..09a894608e6d 100644
--- a/sys/dev/mlx5/mlx5_en/mlx5_en_rl.c
+++ b/sys/dev/mlx5/mlx5_en/mlx5_en_rl.c
@@ -28,7 +28,7 @@
 #include "opt_rss.h"
 #include "opt_ratelimit.h"
 
-#include "en.h"
+#include <dev/mlx5/mlx5_en/en.h>
 
 #ifdef RATELIMIT
 
diff --git a/sys/dev/mlx5/mlx5_en/mlx5_en_rx.c b/sys/dev/mlx5/mlx5_en/mlx5_en_rx.c
index d4a175bf0988..e943a65709cf 100644
--- a/sys/dev/mlx5/mlx5_en/mlx5_en_rx.c
+++ b/sys/dev/mlx5/mlx5_en/mlx5_en_rx.c
@@ -28,7 +28,7 @@
 #include "opt_rss.h"
 #include "opt_ratelimit.h"
 
-#include "en.h"
+#include <dev/mlx5/mlx5_en/en.h>
 #include <machine/in_cksum.h>
 
 static inline int
diff --git a/sys/dev/mlx5/mlx5_en/mlx5_en_tx.c b/sys/dev/mlx5/mlx5_en/mlx5_en_tx.c
index 69b7d904f36f..7bb12d7b5b8a 100644
--- a/sys/dev/mlx5/mlx5_en/mlx5_en_tx.c
+++ b/sys/dev/mlx5/mlx5_en/mlx5_en_tx.c
@@ -29,7 +29,7 @@
 #include "opt_rss.h"
 #include "opt_ratelimit.h"
 
-#include "en.h"
+#include <dev/mlx5/mlx5_en/en.h>
 #include <machine/atomic.h>
 
 static inline bool
diff --git a/sys/dev/mlx5/mlx5_en/mlx5_en_txrx.c b/sys/dev/mlx5/mlx5_en/mlx5_en_txrx.c
index c0f71c3fde86..9f5e17ad864e 100644
--- a/sys/dev/mlx5/mlx5_en/mlx5_en_txrx.c
+++ b/sys/dev/mlx5/mlx5_en/mlx5_en_txrx.c
@@ -28,7 +28,7 @@
 #include "opt_rss.h"
 #include "opt_ratelimit.h"
 
-#include "en.h"
+#include <dev/mlx5/mlx5_en/en.h>
 
 struct mlx5_cqe64 *
 mlx5e_get_cqe(struct mlx5e_cq *cq)
diff --git a/sys/dev/mlx5/mlx5_en/port_buffer.h b/sys/dev/mlx5/mlx5_en/port_buffer.h
index d16347f31a62..d5e2b1c9bd35 100644
--- a/sys/dev/mlx5/mlx5_en/port_buffer.h
+++ b/sys/dev/mlx5/mlx5_en/port_buffer.h
@@ -28,7 +28,7 @@
 #ifndef __MLX5_EN_PORT_BUFFER_H__
 #define __MLX5_EN_PORT_BUFFER_H__
 
-#include "en.h"
+#include <dev/mlx5/mlx5_en/en.h>
 #include <dev/mlx5/port.h>
 
 #define MLX5E_MAX_BUFFER 8