]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
net: reduce indent of struct netdev_queue_mgmt_ops members
authorJakub Kicinski <kuba@kernel.org>
Mon, 21 Apr 2025 22:28:15 +0000 (15:28 -0700)
committerPavel Begunkov <asml.silence@gmail.com>
Wed, 14 Jan 2026 02:13:36 +0000 (02:13 +0000)
Trivial change, reduce the indent. I think the original is copied
from real NDOs. It's unnecessarily deep, makes passing struct args
problematic.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Mina Almasry <almasrymina@google.com>
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
include/net/netdev_queues.h

index cd00e0406cf46f72f9a732371c232e073bd40c1d..541e7d9853b1bc6710e9708a4b84cc8eb2914d22 100644 (file)
@@ -135,20 +135,20 @@ void netdev_stat_queue_sum(struct net_device *netdev,
  * be called for an interface which is open.
  */
 struct netdev_queue_mgmt_ops {
-       size_t                  ndo_queue_mem_size;
-       int                     (*ndo_queue_mem_alloc)(struct net_device *dev,
-                                                      void *per_queue_mem,
-                                                      int idx);
-       void                    (*ndo_queue_mem_free)(struct net_device *dev,
-                                                     void *per_queue_mem);
-       int                     (*ndo_queue_start)(struct net_device *dev,
-                                                  void *per_queue_mem,
-                                                  int idx);
-       int                     (*ndo_queue_stop)(struct net_device *dev,
-                                                 void *per_queue_mem,
-                                                 int idx);
-       struct device *         (*ndo_queue_get_dma_dev)(struct net_device *dev,
-                                                        int idx);
+       size_t  ndo_queue_mem_size;
+       int     (*ndo_queue_mem_alloc)(struct net_device *dev,
+                                      void *per_queue_mem,
+                                      int idx);
+       void    (*ndo_queue_mem_free)(struct net_device *dev,
+                                     void *per_queue_mem);
+       int     (*ndo_queue_start)(struct net_device *dev,
+                                  void *per_queue_mem,
+                                  int idx);
+       int     (*ndo_queue_stop)(struct net_device *dev,
+                                 void *per_queue_mem,
+                                 int idx);
+       struct device * (*ndo_queue_get_dma_dev)(struct net_device *dev,
+                                                int idx);
 };
 
 bool netif_rxq_has_unreadable_mp(struct net_device *dev, int idx);