linux/drivers/net
Breno Leitao b0a9e2c9a9 netconsole: Create a allocation helper
De-duplicate the initialization and allocation code for struct
netconsole_target.

The same allocation and initialization code is duplicated in two
different places in the netconsole subsystem, when the netconsole target
is initialized by command line parameters (alloc_param_target()), and
dynamically by sysfs (make_netconsole_target()).

Create a helper function, and call it from the two different functions.

Suggested-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Breno Leitao <leitao@debian.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://lore.kernel.org/r/20230811093158.1678322-2-leitao@debian.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2023-08-17 19:25:42 -07:00
..
appletalk
arcnet
bonding bonding: remove unnecessary NULL check in bond_destructor 2023-08-11 11:10:55 +01:00
caif
can
dsa net: dsa: rzn1-a5psw: Remove redundant of_match_ptr() 2023-08-16 09:59:40 +01:00
ethernet net: ena: Use pci_dev_id() to simplify the code 2023-08-17 19:13:09 -07:00
fddi
fjes
hamradio
hippi
hyperv eth: add missing xdp.h includes in drivers 2023-08-03 08:38:07 -07:00
ieee802154
ipa
ipvlan
mctp
mdio net: mdio: fix -Wvoid-pointer-to-enum-cast warning 2023-08-17 19:25:40 -07:00
netdevsim net: netdevsim: mimic tc-taprio offload 2023-08-09 15:59:21 -07:00
pcs net: pcs: lynx: fix lynx_pcs_link_up_sgmii() not doing anything in fixed-link mode 2023-08-13 12:32:44 +01:00
phy net: phy: mediatek-ge-soc: support PHY LEDs 2023-08-15 18:57:59 -07:00
plip
ppp
pse-pd
slip
team team: remove unused input parameters in lb_htpm_select_tx_port and lb_hash_select_tx_port 2023-08-08 15:04:05 -07:00
thunderbolt
usb eth: r8152: try to use a normal budget 2023-08-15 19:07:12 -07:00
vmxnet3 vmxnet3: Add XDP support. 2023-08-14 08:03:52 +01:00
vxlan vxlan: Use helper functions to update stats 2023-08-14 08:06:24 +01:00
wan
wireguard genetlink: use attrs from struct genl_info 2023-08-15 15:00:45 -07:00
wireless wlcore: spi: Remove redundant of_match_ptr() 2023-08-16 09:59:40 +01:00
wwan
xen-netback
amt.c
bareudp.c
dummy.c
eql.c
geneve.c
gtp.c
ifb.c
Kconfig vmxnet3: Add XDP support. 2023-08-14 08:03:52 +01:00
LICENSE.SRC
loopback.c
macsec.c net: macsec: Use helper functions to update stats 2023-08-14 08:06:24 +01:00
macvlan.c
macvtap.c
Makefile
mdio.c
mhi_net.c net: mhi: Remove redundant initialization owner in mhi_net_driver 2023-08-10 17:29:42 -07:00
mii.c
net_failover.c
netconsole.c netconsole: Create a allocation helper 2023-08-17 19:25:42 -07:00
nlmon.c
ntb_netdev.c
rionet.c
sb1000.c
Space.c
sungem_phy.c
tap.c pull-request: bpf-next 2023-08-03 2023-08-03 15:34:36 -07:00
tun.c tun: add __exit annotations to module exit func tun_cleanup() 2023-08-17 19:11:10 -07:00
veth.c page_pool: split types and declarations from page_pool.h 2023-08-07 13:05:19 -07:00
virtio_net.c pull-request: bpf-next 2023-08-03 2023-08-03 15:34:36 -07:00
vrf.c
vsockmon.c
xen-netfront.c page_pool: split types and declarations from page_pool.h 2023-08-07 13:05:19 -07:00