Eric Dumazet
ac3d9dd034
netpoll: make ndo_poll_controller() optional
...
As diagnosed by Song Liu, ndo_poll_controller() can
be very dangerous on loaded hosts, since the cpu
calling ndo_poll_controller() might steal all NAPI
contexts (for all RX/TX queues of the NIC). This capture
can last for unlimited amount of time, since one
cpu is generally not able to drain all the queues under load.
It seems that all networking drivers that do use NAPI
for their TX completions, should not provide a ndo_poll_controller().
NAPI drivers have netpoll support already handled
in core networking stack, since netpoll_poll_dev()
uses poll_napi(dev) to iterate through registered
NAPI contexts for a device.
This patch allows netpoll_poll_dev() to process NAPI
contexts even for drivers not providing ndo_poll_controller(),
allowing for following patches in NAPI drivers.
Also we export netpoll_poll_dev() so that it can be called
by bonding/team drivers in following patches.
Reported-by: Song Liu <[email protected] >
Signed-off-by: Eric Dumazet <[email protected] >
Tested-by: Song Liu <[email protected] >
Signed-off-by: David S. Miller <[email protected] >
2018-09-23 21:55:24 -07:00
..
6lowpan
9p
Pull request for inclusion in 4.19, take two
2018-08-17 17:27:58 -07:00
802
8021q
net: remove blank lines at end of file
2018-07-24 14:10:43 -07:00
appletalk
atm
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next
2018-08-15 15:04:25 -07:00
ax25
ax25: remove blank line at EOF
2018-07-24 14:10:42 -07:00
batman-adv
batman-adv: Increase version number to 2018.3
2018-09-14 17:59:20 +02:00
bluetooth
Bluetooth: Use correct tfm to generate OOB data
2018-09-11 13:33:57 +02:00
bpf
bpf/test_run: support cgroup local storage
2018-08-03 00:47:32 +02:00
bpfilter
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next
2018-08-15 15:04:25 -07:00
bridge
net/bridge/br_multicast: remove redundant variable "err"
2018-08-06 10:33:44 -07:00
caif
net: simplify sock_poll_wait
2018-07-30 09:10:25 -07:00
can
ceph
crush: fix using plain integer as NULL warning
2018-08-13 17:55:44 +02:00
core
netpoll: make ndo_poll_controller() optional
2018-09-23 21:55:24 -07:00
dcb
net: dcb: Add priority-to-DSCP map getters
2018-07-27 13:17:50 -07:00
dccp
Merge ra.kernel.org:/pub/scm/linux/kernel/git/davem/net
2018-08-09 11:52:36 -07:00
decnet
decnet: fix using plain integer as NULL warning
2018-08-09 14:11:24 -07:00
dns_resolver
net: remove blank lines at end of file
2018-07-24 14:10:43 -07:00
dsa
net: dsa: Drop GPIO includes
2018-08-27 15:24:33 -07:00
ethernet
hsr
ieee802154
net: ieee802154: 6lowpan: remove redundant pointers 'fq' and 'net'
2018-08-06 11:21:15 +02:00
ife
ipv4
udp4: fix IP_CMSG_CHECKSUM for connected sockets
2018-09-16 15:27:44 -07:00
ipv6
net/ipv6: Display all addresses in output of /proc/net/if_inet6
2018-09-21 19:10:49 -07:00
iucv
net/iucv: declare iucv_path_table_empty() as static
2018-09-05 22:32:22 -07:00
kcm
Revert "kcm: remove any offset before parsing messages"
2018-09-17 18:43:42 -07:00
key
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/klassert/ipsec-next
2018-07-27 09:33:37 -07:00
l2tp
l2tp: fix unused function warning
2018-08-13 20:45:49 -07:00
l3mdev
lapb
llc
Merge ra.kernel.org:/pub/scm/linux/kernel/git/davem/net
2018-08-09 11:52:36 -07:00
mac80211
Here are quite a large number of fixes, notably:
2018-09-03 22:12:02 -07:00
mac802154
net: mac802154: tx: expand tailroom if necessary
2018-08-06 11:21:37 +02:00
mpls
mpls: remove trailing whitepace
2018-07-24 14:10:42 -07:00
ncsi
net/ncsi: Fixup .dumpit message flags and ID check in Netlink handler
2018-08-22 21:39:08 -07:00
netfilter
Merge git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf
2018-09-11 21:17:30 -07:00
netlabel
netlabel: check for IPV4MASK in addrinfo_get
2018-09-21 18:58:34 -07:00
netlink
Merge ra.kernel.org:/pub/scm/linux/kernel/git/davem/net
2018-08-05 13:04:31 -07:00
netrom
nfc
NFC: Fix possible memory corruption when handling SHDLC I-Frame commands
2018-09-18 19:55:01 -07:00
nsh
openvswitch
Merge ra.kernel.org:/pub/scm/linux/kernel/git/davem/net
2018-08-02 10:55:32 -07:00
packet
Revert "packet: switch kvzalloc to allocate memory"
2018-08-31 23:00:28 -07:00
phonet
psample
qrtr
rds
rds: Fix build regression.
2018-09-23 12:25:15 -07:00
rfkill
Here are quite a large number of fixes, notably:
2018-09-03 22:12:02 -07:00
rose
rxrpc
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next
2018-08-15 15:04:25 -07:00
sched
net/sched: act_sample: fix NULL dereference in the data path
2018-09-14 08:46:28 -07:00
sctp
sctp: update dst pmtu with the correct daddr
2018-09-20 11:29:30 -07:00
smc
smc: generic netlink family should be __ro_after_init
2018-09-20 07:49:55 -07:00
strparser
strparser: remove redundant variable 'rd_desc'
2018-08-01 10:00:06 -07:00
sunrpc
NFS client updates for Linux 4.19
2018-08-23 16:03:58 -07:00
switchdev
tipc
tipc: check return value of __tipc_dump_start()
2018-09-12 13:15:04 -07:00
tls
tls: fix currently broken MSG_PEEK behavior
2018-09-17 08:03:09 -07:00
unix
af_unix: ensure POLLOUT on remote close() for connected dgram socket
2018-08-03 16:44:19 -07:00
vmw_vsock
vsock: split dwork to avoid reinitializations
2018-08-07 12:39:13 -07:00
wimax
wimax: remove blank lines at EOF
2018-07-24 14:10:42 -07:00
wireless
Here are quite a large number of fixes, notably:
2018-09-03 22:12:02 -07:00
x25
x25: remove blank lines at EOF
2018-07-24 14:10:42 -07:00
xdp
xsk: fix return value of xdp_umem_assign_dev()
2018-08-21 22:06:53 +02:00
xfrm
Merge ra.kernel.org:/pub/scm/linux/kernel/git/davem/net
2018-08-02 10:55:32 -07:00
compat.c
net: avoid unnecessary sock_flag() check when enable timestamp
2018-08-06 10:42:48 -07:00
Kconfig
net: remove blank lines at end of file
2018-07-24 14:10:43 -07:00
Makefile
socket.c
socket: fix struct ifreq size in compat ioctl
2018-09-13 16:01:06 -07:00
sysctl_net.c