linux-stable/drivers/net/ethernet
Adham Faris bb76d250e5 net/mlx5e: Add XSK RQ state flag for RQ devlink health diagnostics
Currently RQ health diagnostics doesn't inform the user whether an RQ
is an XSK RQ or not.

Address this, by adding XSK state flag to RQ SW state enum in core/en.h.
XSK will be '1' if current RQ is an XSK RQ, and it will be '0' if it's
not.

In this example below, it can be seen that XSK field value is '1' since
xdpsock program have been attached to channel 0 before issuing the
devlink query command:

$ devlink health diagnose auxiliary/mlx5_core.eth.0/65535 reporter rx

Output:
=======================================================================
 Common config:
    RQ:
      type: 2 stride size: 4096 size: 16 ts_format: FRC
      CQ:
        stride size: 64 size: 1024
  RQs:
      channel ix: 0 rqn: 4236 HW state: 1 WQE counter: 15 posted WQEs: 15 cc: 15
        SW State:
          enabled: 1 recovering: 0 am: 1 no_csum_complete: 1 csum_full: 0 mini_cqe_hw_stridx: 1 shampo: 0 mini_cqe_enhanced: 0 xsk: 1
      CQ:
        cqn: 1085 HW status: 0 ci: 0 size: 1024
      EQ:
        eqn: 7 irqn: 32 vecidx: 0 ci: 5 size: 2048
      ICOSQ:
        sqn: 4229 HW state: 1 cc: 158 pc: 158 WQE size: 2048
        CQ:
          cqn: 1080 cc: 1 size: 2048

Signed-off-by: Adham Faris <afaris@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Link: https://lore.kernel.org/r/20230314054234.267365-10-saeed@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2023-03-15 22:12:08 -07:00
..
3com
8390
actions net: Remove C45 check in C22 only MDIO bus drivers 2023-01-20 18:12:45 -08:00
adaptec
adi Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2023-01-27 22:56:18 -08:00
aeroflex ethernet: aeroflex: fix potential skb leak in greth_init_rings() 2022-12-07 11:45:52 +01:00
agere
alacritech
allwinner
alteon
altera
amazon drivers: net: turn on XDP features 2023-02-02 20:48:23 -08:00
amd amd-xgbe: fix mismatched prototype 2023-02-06 22:33:18 -08:00
apm
apple net: apple: bmac: don't call dev_kfree_skb() under spin_lock_irqsave() 2022-12-12 09:53:10 +00:00
aquantia bpf-next-for-netdev 2023-02-10 17:51:27 -08:00
arc
asix
atheros alx: Drop redundant pci_enable_pcie_error_reporting() 2023-03-08 23:34:38 -08:00
broadcom bnxt: avoid overflow in bnxt_get_nvram_directory() 2023-03-13 16:35:49 -07:00
brocade
cadence Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2023-02-09 12:25:40 -08:00
calxeda
cavium drivers: net: turn on XDP features 2023-02-02 20:48:23 -08:00
chelsio cxgb4: Drop redundant pci_enable_pcie_error_reporting() 2023-03-08 23:34:38 -08:00
cirrus
cisco
cortina
davicom
dec
dlink
emulex be2net: Drop redundant pci_enable_pcie_error_reporting() 2023-03-08 23:34:38 -08:00
engleder bpf-next-for-netdev 2023-02-10 17:51:27 -08:00
ezchip
faraday net: ftmac100: handle netdev flags IFF_PROMISC and IFF_ALLMULTI 2023-01-18 13:03:40 +00:00
freescale phy-for-6.3 2023-02-24 17:22:11 -08:00
fujitsu
fungible net/fungible: Drop redundant pci_enable_pcie_error_reporting() 2023-03-08 23:34:38 -08:00
google gve: Fix gve interrupt names 2023-02-06 10:03:26 +00:00
hisilicon net: hns3: remove unnecessary aer.h include 2023-03-08 23:34:38 -08:00
huawei
i825xx
ibm ibmvnic: Assign XPS map to correct queue index 2023-02-24 18:34:26 -08:00
intel Merge branch '100GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/tnguy/next-queue 2023-03-15 21:25:24 -07:00
litex
marvell net: marvell: pxa168_eth: drop of_match_ptr for ID table 2023-03-15 08:02:45 +00:00
mediatek Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2023-03-09 22:22:11 -08:00
mellanox net/mlx5e: Add XSK RQ state flag for RQ devlink health diagnostics 2023-03-15 22:12:08 -07:00
micrel
microchip net: lan966x: Change lan966x_police_del return type 2023-03-15 00:28:56 -07:00
microsoft bpf-next-for-netdev 2023-02-10 17:51:27 -08:00
moxa
mscc net: dsa: ocelot: add PTP dependency for NET_DSA_MSCC_OCELOT_EXT 2023-02-10 19:35:58 -08:00
myricom myri10ge: Fix an error handling path in myri10ge_probe() 2022-12-19 12:30:32 +00:00
natsemi
neterion ethernet: s2io: don't call dev_kfree_skb() under spin_lock_irqsave() 2022-12-12 09:38:24 +00:00
netronome nfp: fix esp-tx-csum-offload doesn't take effect 2023-03-03 08:28:44 +00:00
ni net: ni: drop of_match_ptr for ID table 2023-03-15 08:02:45 +00:00
nvidia
nxp
oki-semi
packetengines
pasemi
pensando ionic: add tx/rx-push support with device Component Memory Buffers 2023-02-13 11:05:12 +00:00
qlogic qede: remove linux/version.h and linux/compiler.h 2023-03-10 21:29:54 -08:00
qualcomm net: qualcomm: rmnet: add ethtool support for configuring tx aggregation 2023-01-13 10:23:52 +00:00
rdc r6040: Fix kmemleak in probe and remove 2022-12-15 12:48:34 +01:00
realtek r8169: remove ASPM restrictions now that ASPM is disabled during NAPI poll 2023-03-08 09:30:41 +00:00
renesas ravb: remove R-Car H3 ES1.* handling 2023-03-08 23:20:50 -08:00
rocker
samsung net: samsung: sxgbe: drop of_match_ptr for ID table 2023-03-15 08:02:45 +00:00
seeq
sfc sfc: support offloading TC VLAN push/pop actions to the MAE 2023-03-10 21:28:59 -08:00
sgi
silan
sis
smsc
socionext drivers: net: turn on XDP features 2023-02-02 20:48:23 -08:00
stmicro net: stmmac: generic: drop of_match_ptr for ID table 2023-03-15 08:02:45 +00:00
sun net: sunhme: Fix region request 2023-02-23 09:58:51 -08:00
sunplus net: Remove C45 check in C22 only MDIO bus drivers 2023-01-20 18:12:45 -08:00
synopsys
tehuti
ti net: ethernet: ti: am65-cpsw: Update name of Serdes PHY 2023-03-10 21:25:01 -08:00
toshiba
tundra
vertexcom
via
wangxun net: txgbe: Drop redundant pci_enable_pcie_error_reporting() 2023-03-08 23:34:39 -08:00
wiznet
xilinx Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2022-12-13 09:49:29 +01:00
xircom
xscale
dnet.c net: ethernet: dnet: don't call dev_kfree_skb() under spin_lock_irqsave() 2022-12-12 09:56:17 +00:00
dnet.h
ec_bhf.c
ethoc.c
fealnx.c eth: fealnx: bring back this old driver 2023-03-08 23:22:04 -08:00
jme.c
jme.h
Kconfig net: restore alpha order to Ethernet devices in config 2023-03-09 23:36:28 -08:00
korina.c
lantiq_etop.c
lantiq_xrx200.c
Makefile eth: fealnx: bring back this old driver 2023-03-08 23:22:04 -08:00