#compdef ifpps # # ifpps.zsh -- zsh completion function for ifpps # # Copyright (C) 2013 Hideo Hattori # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as # published by the Free Software Foundation. typeset -A opt_args _interfaces () { _wanted interfaces expl 'network interface' \ _net_interfaces _values "Pseudo-device that captures on all interfaces" "any" } _arguments -s -S \ "(-d --dev)"{-d,--dev}"[Device to fetch statistics for i.e., eth0]:device:_interfaces" \ "(-p --promisc)"{-p,--promisc}"[Promiscuous mode]" \ "(-P --percentage)"{-P,--percentage}"[Show percentage of theoretical line rate]" \ "(-t --interval)"{-t,--interval}"[Refresh time in sec (default 1 s)]:interval:_gnu_generic" \ "(-n --num-cpus)"{-n,--num-cpus}"[Number of top hitter CPUs to display in ncurses mode (default 10)]" \ "(-C --csv)"{-C,--csv}"[Output to terminal as CSV E.g. post-processing with Gnuplot et al.]" \ "(-l --loop)"{-l,--loop}"[Loop terminal output]" \ "(-o --omit-header)"{-o,--omit-header}"[Do not print the CSV header]" \ "(-m --median)"{-m,--median}"[Display median values]" \ "(-W --no-warn)"{-W,--no-warn}"[Suppress warnings]" \ {-v,--version}"[Print version and exit]:" \ {-h,--help}"[Print help and exit]:" \ "*::args:_gnu_generic" t plumbingsTobias Klauser
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNogah Frankel <nogahf@mellanox.com>2016-06-17 15:09:06 +0200
committerDavid S. Miller <davem@davemloft.net>2016-06-17 21:57:53 -0700
commit4e239fac7c6b9d703e83c81b52ec9fec00c50129 (patch)
tree9d3208177264ba4356c7f46a8691d39f558472b7
parent63dcdd35c1552ca0c911e98ba3389a0729a457f4 (diff)
mlxsw: switchx2: Don't count internal TX header bytes to stats
Stop the SW TX counter from counting the TX header bytes since they are not being sent out. Fixes: e577516b9db3 ("mlxsw: Fix use-after-free bug in mlxsw_sx_port_xmit") Signed-off-by: Nogah Frankel <nogahf@mellanox.com> Reviewed-by: Ido Schimmel <idosch@mellanox.com> Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>