linux-uconsole/drivers/net/ethernet
Petr Machata 0fd18873a7 mlxsw: spectrum_qdisc: Include MC TCs in Qdisc counters
commit 85005b82e5 upstream.

mlxsw configures Spectrum in such a way that BUM traffic is passed not
through its nominal traffic class TC, but through its MC counterpart TC+8.
However, when collecting statistics, Qdiscs only look at the nominal TC and
ignore the MC TC.

Add two helpers to compute the value for logical TC from the constituents,
one for backlog, the other for tail drops. Use them throughout instead of
going through the xstats pointer directly.

Counters for TX bytes and packets are deduced from packet priority
counters, and therefore already include BUM traffic. wred_drop counter is
irrelevant on MC TCs, because RED is not enabled on them.

Fixes: 7b81953066 ("mlxsw: spectrum: Configure MC-aware mode on mlxsw ports")
Signed-off-by: Petr Machata <petrm@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-01-23 08:21:36 +01:00
..
3com
8390 net: phy: rename Asix Electronics PHY driver 2019-07-14 08:11:08 +02:00
adaptec
aeroflex
agere
alacritech
allwinner
alteon
altera net: altera_tse: fix msgdma_tx_completion on non-zero fill_level case 2019-03-13 14:02:29 -07:00
amazon net: ena: fix napi handler misbehavior when the napi budget is zero 2020-01-04 19:13:32 +01:00
amd net: amd: fix return type of ndo_start_xmit function 2019-11-20 18:47:03 +01:00
apm drivers: net: xgene: Remove unnecessary forward declarations 2019-01-13 09:51:00 +01:00
apple
aquantia net: aquantia: fix RSS table and key sizes 2019-12-13 08:52:34 +01:00
arc net: ethernet: arc: add the missed clk_disable_unprepare 2019-11-12 19:21:17 +01:00
atheros atl1e: checking the status of atl1e_write_phy_reg 2019-12-05 09:20:54 +01:00
aurora
broadcom bnx2x: Fix logic to get total no. of PFs per engine 2020-01-12 12:17:15 +01:00
brocade
cadence net: macb driver, check for SKBTX_HW_TSTAMP 2019-12-05 09:21:32 +01:00
calxeda
cavium net: thunderx: start phy before starting autonegotiation 2019-12-21 10:57:13 +01:00
chelsio cxgb4: Fix kernel panic while accessing sge_info 2020-01-12 12:17:16 +01:00
cirrus net: ep93xx_eth: fix mismatch of request_mem_region in remove 2019-12-13 08:51:06 +01:00
cisco enic: fix build warning without CONFIG_CPUMASK_OFFSTACK 2019-04-05 22:32:57 +02:00
cortina net: gemini: Fix memory leak in gmac_setup_txqs 2019-12-31 16:34:37 +01:00
davicom
dec net: tulip: de4x5: Drop redundant MODULE_DEVICE_TABLE() 2019-06-22 08:15:17 +02:00
dlink
emulex be2net: Signal that the device cannot transmit during reconfiguration 2019-08-06 19:06:51 +02:00
ezchip
faraday net: faraday: fix return type of ndo_start_xmit function 2019-11-20 18:47:39 +01:00
freescale net: fec: fix clock count mis-match 2019-12-05 09:21:35 +01:00
fujitsu
hisilicon net: hns: fix soft lockup when there is not enough memory 2020-01-23 08:21:35 +01:00
hp
huawei net-next/hinic: fix a bug in rx data flow 2019-12-13 08:51:30 +01:00
i825xx net: i82596: fix dma_alloc_attr for sni_82596 2019-10-29 09:19:41 +01:00
ibm net: ibm: fix return type of ndo_start_xmit function 2019-11-20 18:46:57 +01:00
intel ice: delay less 2019-12-31 16:35:57 +01:00
marvell net: marvell: mvpp2: phylink requires the link interrupt 2020-01-04 19:13:40 +01:00
mediatek net: ethernet: mediatek: Use NET_IP_ALIGN to judge if HW RX_2BYTE_OFFSET is enabled 2019-06-25 11:35:57 +08:00
mellanox mlxsw: spectrum_qdisc: Include MC TCs in Qdisc counters 2020-01-23 08:21:36 +01:00
micrel net: micrel: fix return type of ndo_start_xmit function 2019-11-20 18:47:14 +01:00
microchip lan743x: Fix TX Stall Issue 2019-03-19 13:12:38 +01:00
moxa
mscc net: mscc: ocelot: fix __ocelot_rmw_ix prototype 2019-12-05 09:19:45 +01:00
myricom net: myri10ge: fix memory leaks 2019-09-10 10:33:46 +01:00
natsemi
neterion vxge: fix return of a free'd memblock on a failed dma mapping 2019-05-16 19:41:21 +02:00
netronome nfp: bpf: protect against mis-initializing atomic counters 2019-12-01 09:16:26 +01:00
ni
nuvoton w90p910_ether: remove incorrect __init annotation 2019-01-13 09:51:00 +01:00
nvidia
nxp net: lpc-enet: fix printk format strings 2019-10-05 13:09:43 +02:00
oki-semi
packetengines
pasemi
qlogic qede: Fix multicast mac configuration 2019-12-31 16:34:40 +01:00
qualcomm net: qualcomm: rmnet: move null check on dev before dereferecing it 2019-12-13 08:51:43 +01:00
rdc
realtek r8169: fix wrong PHY ID issue with RTL8168dp 2019-11-10 11:27:51 +01:00
renesas sh_eth: check sh_eth_cpu_data::dual_port when dumping registers 2020-01-23 08:21:36 +01:00
rocker
samsung
seeq net: seeq: Fix the function used to release some memory in an error handling path 2019-09-21 07:17:10 +02:00
sfc sfc: initialise found bitmap in efx_ef10_mtd_probe 2019-12-05 09:21:09 +01:00
sgi
silan
sis sis900: fix TX completion 2019-07-21 09:03:07 +02:00
smsc net: smsc: fix return type of ndo_start_xmit function 2019-11-20 18:47:39 +01:00
socionext net: socionext: Stop PHY before resetting netsec 2019-12-01 09:16:58 +01:00
stmicro net: stmmac: Enable 16KB buffer size 2020-01-23 08:21:32 +01:00
sun net: sun: fix return type of ndo_start_xmit function 2019-11-20 18:47:04 +01:00
synopsys
tehuti
ti net: ethernet: ti: ale: clean ale tbl on init and intf restart 2019-12-31 16:36:11 +01:00
toshiba net: toshiba: fix return type of ndo_start_xmit function 2019-11-20 18:47:02 +01:00
tundra net: tundra: tsi108: use spin_lock_irqsave instead of spin_lock_irq in IRQ context 2019-09-10 10:33:42 +01:00
via
wiznet
xilinx net: xilinx: fix return type of ndo_start_xmit function 2019-11-20 18:47:02 +01:00
xircom
xscale
dnet.c
dnet.h
ec_bhf.c
ethoc.c
fealnx.c
jme.c
jme.h
Kconfig
korina.c
lantiq_etop.c
Makefile
netx-eth.c