ifpps: support mq devices in /proc/interrupts
commitf6c99a52f7714cae8cd048d758086e213e163571
authorDaniel Borkmann <dborkman@redhat.com>
Wed, 29 May 2013 09:46:29 +0000 (29 11:46 +0200)
committerDaniel Borkmann <dborkman@redhat.com>
Wed, 29 May 2013 09:46:29 +0000 (29 11:46 +0200)
treef2a7aeafab321d9d70e1385a773e943431752b74
parent2563b4dae8314fb4c155c7b9705e44fd8a936c1a
ifpps: support mq devices in /proc/interrupts

/proc/interrupts can have such a structure ...

 98:         35          0    2902361       PCI-MSI-X  eth1-0
106:         61         11       3841       PCI-MSI-X  eth1-1
114:         28          0      61452       PCI-MSI-X  eth1-2
122:         24       1586         22       PCI-MSI-X  eth1-3
130:       2912          0        337       PCI-MSI-X  eth1-4
138:         21          0         28       PCI-MSI-X  eth1-5
146:         21          0         56       PCI-MSI-X  eth1-6
154:         34          1          1       PCI-MSI-X  eth1-7

... and will not count all IRQs for eth1-*. Thus change it to
sum up multiple entries.

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
ifpps.c