Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

net: reduce indent of struct netdev_queue_mgmt_ops members

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>

authored by

Jakub Kicinski and committed by
Pavel Begunkov
92d76cf9 7073bb4b

+14 -14
+14 -14
include/net/netdev_queues.h
··· 135 135 * be called for an interface which is open. 136 136 */ 137 137 struct netdev_queue_mgmt_ops { 138 - size_t ndo_queue_mem_size; 139 - int (*ndo_queue_mem_alloc)(struct net_device *dev, 140 - void *per_queue_mem, 141 - int idx); 142 - void (*ndo_queue_mem_free)(struct net_device *dev, 143 - void *per_queue_mem); 144 - int (*ndo_queue_start)(struct net_device *dev, 145 - void *per_queue_mem, 146 - int idx); 147 - int (*ndo_queue_stop)(struct net_device *dev, 148 - void *per_queue_mem, 149 - int idx); 150 - struct device * (*ndo_queue_get_dma_dev)(struct net_device *dev, 151 - int idx); 138 + size_t ndo_queue_mem_size; 139 + int (*ndo_queue_mem_alloc)(struct net_device *dev, 140 + void *per_queue_mem, 141 + int idx); 142 + void (*ndo_queue_mem_free)(struct net_device *dev, 143 + void *per_queue_mem); 144 + int (*ndo_queue_start)(struct net_device *dev, 145 + void *per_queue_mem, 146 + int idx); 147 + int (*ndo_queue_stop)(struct net_device *dev, 148 + void *per_queue_mem, 149 + int idx); 150 + struct device * (*ndo_queue_get_dma_dev)(struct net_device *dev, 151 + int idx); 152 152 }; 153 153 154 154 bool netif_rxq_has_unreadable_mp(struct net_device *dev, int idx);