diff options
author | dann frazier <dann.frazier@canonical.com> | 2018-04-19 06:55:41 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-04-19 23:30:26 +0300 |
commit | f4ea89110df237da6fbcaab76af431e85f07d904 (patch) | |
tree | 67f401d039dc8c67283a08f3a4db6bcdff25ebae /drivers/net/ethernet/mediatek | |
parent | ab913455dd59b81204b6a0d387a44697b0e0bd85 (diff) | |
download | linux-f4ea89110df237da6fbcaab76af431e85f07d904.tar.xz |
net: hns: Avoid action name truncation
When longer interface names are used, the action names exposed in
/proc/interrupts and /proc/irq/* maybe truncated. For example, when
using the predictable name algorithm in systemd on a HiSilicon D05,
I see:
ubuntu@d05-3:~$ grep enahisic2i0-tx /proc/interrupts | sed 's/.* //'
enahisic2i0-tx0
enahisic2i0-tx1
[...]
enahisic2i0-tx8
enahisic2i0-tx9
enahisic2i0-tx1
enahisic2i0-tx1
enahisic2i0-tx1
enahisic2i0-tx1
enahisic2i0-tx1
enahisic2i0-tx1
Increase the max ring name length to allow for an interface name
of IFNAMSIZE. After this change, I now see:
$ grep enahisic2i0-tx /proc/interrupts | sed 's/.* //'
enahisic2i0-tx0
enahisic2i0-tx1
enahisic2i0-tx2
[...]
enahisic2i0-tx8
enahisic2i0-tx9
enahisic2i0-tx10
enahisic2i0-tx11
enahisic2i0-tx12
enahisic2i0-tx13
enahisic2i0-tx14
enahisic2i0-tx15
Signed-off-by: dann frazier <dann.frazier@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mediatek')
0 files changed, 0 insertions, 0 deletions