linux/drivers/net/ethernet
Jack Morgenstein 83bd5118a1 net/mlx4_core: Reduce harmless SRIOV error message to debug level
Under SRIOV resource management, extra counters are allocated to VFs
from a free pool. If that pool is empty, the ALLOC_RES command for
a counter resource fails -- and this generates a misleading error
message in the message log.

Under SRIOV, each VF is allocated (i.e., guaranteed) 2 counters --
one counter per port. For ETH ports, the RoCE driver requests an
additional counter (above the guaranteed counters). If that request
fails, the VF RoCE driver simply uses the default (i.e., guaranteed)
counter for that port.

Thus, failing to allocate an additional counter does not constitute
a  problem, and the error message on the PF when this occurs should
be reduced to debug level.

Finally, to identify the situation that the reason for the failure is
that no resources are available to grant to the VF, we modified the
error returned by mlx4_grant_resource to -EDQUOT (Quota exceeded),
which more accurately describes the error.

Fixes: c3abb51bdb ("IB/mlx4: Add RoCE/IB dedicated counters")
Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-05-09 11:22:46 -04:00
..
3com net: typhoon: Use net_device_stats from struct net_device 2017-04-07 07:03:33 -07:00
8390
adaptec
adi
aeroflex
agere
alacritech
allwinner
alteon
altera
amazon net/ena: switch to pci_alloc_irq_vectors 2017-04-11 11:16:03 -04:00
amd net: nmlan_cs: Use net_device_stats from struct net_device 2017-04-07 07:03:33 -07:00
apm drivers: net: xgene-v2: Fix error return code in xge_mdio_config() 2017-04-25 13:48:06 -04:00
apple
aquantia aquantia: Fix "ethtool -S" crash when adapter down. 2017-05-08 12:53:12 -04:00
arc net: arc_emac: switch to phy_start()/phy_stop() 2017-04-21 15:23:52 -04:00
atheros net: alx: handle pci_alloc_irq_vectors return correctly 2017-05-05 14:52:03 -04:00
aurora
broadcom bnxt_en: allocate enough space for ->ntp_fltr_bmap 2017-05-08 14:47:31 -04:00
brocade bna: ethtool: Avoid reading past end of buffer 2017-05-08 14:41:42 -04:00
cadence net: macb: fix phy interrupt parsing 2017-04-30 22:21:49 -04:00
calxeda
cavium net: thunderx: Optimize page recycling for XDP 2017-05-02 15:41:22 -04:00
chelsio cxgb4: avoid disabling FEC by default 2017-05-08 15:00:57 -04:00
cirrus net: cx89x0: move attribute declaration before struct keyword 2017-04-18 16:00:34 -04:00
cisco
davicom
dec net: tulip: de2104x: Use net_device_stats from struct net_device 2017-04-07 07:03:33 -07:00
dlink net: dl2k: Use net_device_stats from struct net_device 2017-04-07 07:03:33 -07:00
emulex benet: Use time_before_eq for time comparison 2017-05-01 11:12:46 -04:00
ezchip
faraday ftgmac100: Fix potential ordering issue in NAPI poll 2017-04-18 14:11:09 -04:00
freescale Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial 2017-05-02 19:09:35 -07:00
fujitsu
hisilicon net: hns: fix ethtool_get_strings overflow in hns driver 2017-05-02 15:08:21 -04:00
hp
i825xx
ibm ibmvnic: Move queue restarting in ibmvnic_tx_complete 2017-05-03 11:33:06 -04:00
intel Merge branch '40GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/jkirsher/next-queue 2017-04-30 11:33:37 -04:00
marvell sky2: Use seq_puts() in sky2_debug_show() 2017-04-18 13:55:11 -04:00
mediatek Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2017-04-20 10:35:33 -04:00
mellanox net/mlx4_core: Reduce harmless SRIOV error message to debug level 2017-05-09 11:22:46 -04:00
micrel
microchip
moxa net: moxa: Use net_device_stats from struct net_device 2017-04-07 07:03:33 -07:00
myricom
natsemi
neterion
netronome xdp: use common helper for netlink extended ack reporting 2017-05-03 09:51:24 -04:00
nuvoton net: nuvoton: Use net_device_stats from struct net_device 2017-04-07 07:03:33 -07:00
nvidia forcedeth: remove unnecessary carrier status check 2017-05-04 10:57:41 -04:00
nxp
oki-semi
packetengines
pasemi
qlogic qlge: Avoid reading past end of buffer 2017-05-08 14:41:42 -04:00
qualcomm
rdc
realtek
renesas ravb: Double free on error in ravb_start_xmit() 2017-04-24 13:58:49 -04:00
rocker
samsung
seeq
sfc Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2017-04-26 22:39:08 -04:00
sgi
silan
sis
smsc smsc911x: Adding support for Micochip LAN9250 Ethernet controller 2017-05-03 09:41:52 -04:00
stmicro stmmac: pci: split out common_default_data() helper 2017-05-08 15:15:02 -04:00
sun net: sunhme: fix spelling mistakes: "ParityErro" -> "ParityError" 2017-04-30 22:55:47 -04:00
synopsys net: dwc-xlgmac: add the initial ethtool support 2017-04-13 13:46:38 -04:00
tehuti
ti net: ethernet: ti: cpsw: adjust cpsw fifos depth for fullduplex flow control 2017-05-08 17:33:19 -04:00
tile
toshiba Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2017-04-26 22:39:08 -04:00
tundra
via
wiznet
xilinx
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