linux_dsm_epyc7002/net
Eric Dumazet e57a784d8c pkt_sched: set root qdisc before change() in attach_default_qdiscs()
After commit 95dc19299f ("pkt_sched: give visibility to mq slave
qdiscs") we call disc_list_add() while the device qdisc might be
the noop_qdisc one.

This shows up as duplicates in "tc qdisc show", as all inactive devices
point to noop_qdisc.

Fix this by setting dev->qdisc to the new qdisc before calling
ops->change() in attach_default_qdiscs()

Add a WARN_ON_ONCE() to catch any future similar problem.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2013-12-14 01:20:06 -05:00
..
9p
802 neigh: convert parms to an array 2013-12-09 20:56:12 -05:00
8021q
appletalk
atm
ax25
batman-adv batadv: Slight optimization of batadv_compare_eth 2013-12-09 20:58:11 -05:00
bluetooth
bridge net: more spelling fixes 2013-12-10 21:57:11 -05:00
caif
can
ceph
core net-gro: Prepare GRO stack for the upcoming tunneling support 2013-12-12 13:47:53 -05:00
dcb
dccp
decnet dn_dev: add support for IFA_FLAGS nl attribute 2013-12-10 21:50:00 -05:00
dns_resolver
dsa
ethernet
hsr
ieee802154
ipv4 netconf: add proxy-arp support 2013-12-14 00:58:22 -05:00
ipv6 ipv6: fix incorrect type in declaration 2013-12-12 16:14:09 -05:00
ipx
irda
iucv
key
l2tp
lapb
llc
mac80211
mac802154
mpls
netfilter
netlabel
netlink
netrom
nfc
openvswitch
packet packet: fix using smp_processor_id() in preemptible code 2013-12-14 01:04:13 -05:00
phonet
rds
rfkill
rose
rxrpc
sched pkt_sched: set root qdisc before change() in attach_default_qdiscs() 2013-12-14 01:20:06 -05:00
sctp sctp: remove redundant null check on asoc 2013-12-11 15:39:34 -05:00
sunrpc
tipc tipc: remove unused 'blocked' flag from tipc_link struct 2013-12-11 00:17:43 -05:00
unix
vmw_vsock
wimax
wireless
x25 x25: convert printks to pr_<level> 2013-12-09 20:24:18 -05:00
xfrm
compat.c
Kconfig
Makefile
nonet.c
socket.c net: handle error more gracefully in socketpair() 2013-12-10 22:24:13 -05:00
sysctl_net.c