]> www.infradead.org Git - users/hch/misc.git/commit
net: remove init_dummy_netdev()
authorJakub Kicinski <kuba@kernel.org>
Mon, 13 Jan 2025 00:34:55 +0000 (16:34 -0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 14 Jan 2025 03:06:51 +0000 (19:06 -0800)
commitf835bdae716751fa20451508150e5fdd5f5b2be3
tree3b3cfd0daa11563b9a5c718ccd1d579ec5ebcb22
parentb1b62d6d332e09a2125c830c809c2622164ec35b
net: remove init_dummy_netdev()

init_dummy_netdev() can initialize statically declared or embedded
net_devices. Such netdevs did not come from alloc_netdev_mqs().
After recent work by Breno, there are the only two cases where
we have do that.

Switch those cases to alloc_netdev_mqs() and delete init_dummy_netdev().
Dealing with static netdevs is not worth the maintenance burden.

Reviewed-by: Alexander Lobakin <aleksander.lobakin@intel.com>
Reviewed-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Reviewed-by: Joe Damato <jdamato@fastly.com>
Link: https://patch.msgid.link/20250113003456.3904110-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/netdevice.h
net/core/dev.c
net/mptcp/protocol.c
net/xfrm/xfrm_input.c