]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - net/core/rtnetlink.c
net: set name_assign_type in alloc_netdev()
authorTom Gundersen <teg@jklm.no>
Mon, 14 Jul 2014 14:37:24 +0000 (16:37 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 15 Jul 2014 23:12:48 +0000 (16:12 -0700)
commitc835a677331495cf137a7f8a023463afd9f032f8
treeca1b7c3aa3c2404f7912388e70f7e0cb9cf37043
parent238fa3623a5709d29673ed78ff8e714d040fbb89
net: set name_assign_type in alloc_netdev()

Extend alloc_netdev{,_mq{,s}}() to take name_assign_type as argument, and convert
all users to pass NET_NAME_UNKNOWN.

Coccinelle patch:

@@
expression sizeof_priv, name, setup, txqs, rxqs, count;
@@

(
-alloc_netdev_mqs(sizeof_priv, name, setup, txqs, rxqs)
+alloc_netdev_mqs(sizeof_priv, name, NET_NAME_UNKNOWN, setup, txqs, rxqs)
|
-alloc_netdev_mq(sizeof_priv, name, setup, count)
+alloc_netdev_mq(sizeof_priv, name, NET_NAME_UNKNOWN, setup, count)
|
-alloc_netdev(sizeof_priv, name, setup)
+alloc_netdev(sizeof_priv, name, NET_NAME_UNKNOWN, setup)
)

v9: move comments here from the wrong commit

Signed-off-by: Tom Gundersen <teg@jklm.no>
Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
97 files changed:
drivers/firewire/net.c
drivers/hsi/clients/ssi_protocol.c
drivers/infiniband/hw/amso1100/c2_provider.c
drivers/infiniband/ulp/ipoib/ipoib_main.c
drivers/isdn/i4l/isdn_net.c
drivers/media/dvb-core/dvb_net.c
drivers/misc/sgi-xp/xpnet.c
drivers/net/arcnet/arcnet.c
drivers/net/bonding/bond_main.c
drivers/net/caif/caif_serial.c
drivers/net/caif/caif_spi.c
drivers/net/caif/caif_virtio.c
drivers/net/can/dev.c
drivers/net/can/slcan.c
drivers/net/dummy.c
drivers/net/eql.c
drivers/net/ethernet/8390/lib8390.c
drivers/net/ethernet/tile/tilegx.c
drivers/net/ethernet/tile/tilepro.c
drivers/net/hamradio/6pack.c
drivers/net/hamradio/baycom_epp.c
drivers/net/hamradio/bpqether.c
drivers/net/hamradio/dmascc.c
drivers/net/hamradio/hdlcdrv.c
drivers/net/hamradio/mkiss.c
drivers/net/hamradio/scc.c
drivers/net/hamradio/yam.c
drivers/net/ieee802154/fakehard.c
drivers/net/ifb.c
drivers/net/loopback.c
drivers/net/ppp/ppp_generic.c
drivers/net/slip/slip.c
drivers/net/tun.c
drivers/net/usb/cdc-phonet.c
drivers/net/usb/hso.c
drivers/net/wan/dlci.c
drivers/net/wan/hdlc.c
drivers/net/wan/hdlc_fr.c
drivers/net/wan/lapbether.c
drivers/net/wan/sbni.c
drivers/net/wan/sdla.c
drivers/net/wan/x25_asy.c
drivers/net/wimax/i2400m/usb.c
drivers/net/wireless/airo.c
drivers/net/wireless/ath/ath6kl/cfg80211.c
drivers/net/wireless/ath/wil6210/netdev.c
drivers/net/wireless/brcm80211/brcmfmac/dhd_linux.c
drivers/net/wireless/libertas/main.c
drivers/net/wireless/libertas/mesh.c
drivers/net/wireless/mac80211_hwsim.c
drivers/net/wireless/mwifiex/cfg80211.c
drivers/net/xen-netback/interface.c
drivers/s390/net/claw.c
drivers/s390/net/ctcm_main.c
drivers/s390/net/netiucv.c
drivers/s390/net/qeth_l2_main.c
drivers/s390/net/qeth_l3_main.c
drivers/staging/cxt1e1/linux.c
drivers/staging/gdm724x/gdm_lte.c
drivers/staging/gdm72xx/gdm_wimax.c
drivers/staging/vt6655/wpactl.c
drivers/staging/wlan-ng/p80211netdev.c
drivers/tty/n_gsm.c
drivers/usb/gadget/f_phonet.c
include/linux/netdevice.h
net/802/fc.c
net/802/fddi.c
net/802/hippi.c
net/8021q/vlan.c
net/appletalk/dev.c
net/atm/br2684.c
net/atm/clip.c
net/batman-adv/soft-interface.c
net/bluetooth/6lowpan.c
net/bluetooth/bnep/core.c
net/bridge/br_if.c
net/core/dev.c
net/core/rtnetlink.c
net/dsa/slave.c
net/ethernet/eth.c
net/ipv4/ip_tunnel.c
net/ipv4/ipmr.c
net/ipv6/ip6_gre.c
net/ipv6/ip6_tunnel.c
net/ipv6/ip6_vti.c
net/ipv6/ip6mr.c
net/ipv6/sit.c
net/irda/irda_device.c
net/irda/irlan/irlan_eth.c
net/l2tp/l2tp_eth.c
net/mac80211/iface.c
net/mac802154/ieee802154_dev.c
net/netrom/af_netrom.c
net/openvswitch/vport-internal_dev.c
net/phonet/pep-gprs.c
net/rose/af_rose.c
net/sched/sch_teql.c