public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* Why is NIC driver queue depth driver dependent when it allocates system memory?
@ 2020-01-30 13:02 Martin T
  2020-01-30 16:56 ` Jakub Kicinski
  2020-02-01 19:08 ` Cong Wang
  0 siblings, 2 replies; 6+ messages in thread
From: Martin T @ 2020-01-30 13:02 UTC (permalink / raw)
  To: netdev

Hi,

when I read the source code of for example tg3 driver or e1000e
driver, then looks like the driver queue is allocated from system
memory. For example, in e1000_ethtool.c kcalloc() is called to
allocate GFP_KERNEL memory.

If system memory is allocated, then why are there driver-dependent
limits? For example, in my workstation the maximum RX/TX queue for the
NIC using tg3 driver is 511 while maximum RX/TX queue for the NIC
using e1000e driver is 4096:

# Broadcom Limited NetXtreme BCM5722 Gigabit Ethernet; tg3 driver
# ethtool -g eth1
Ring parameters for eth1:
Pre-set maximums:
RX:             511
RX Mini:        0
RX Jumbo:       0
TX:             511
Current hardware settings:
RX:             200
RX Mini:        0
RX Jumbo:       0
TX:             511

# Intel Corporation Ethernet Connection (2) I219-LM; e1000e driver
# ethtool -g eth0
Ring parameters for eth0:
Pre-set maximums:
RX:             4096
RX Mini:        0
RX Jumbo:       0
TX:             4096
Current hardware settings:
RX:             256
RX Mini:        0
RX Jumbo:       0
TX:             256

#


thanks,
Martin

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-02-01 19:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-30 13:02 Why is NIC driver queue depth driver dependent when it allocates system memory? Martin T
2020-01-30 16:56 ` Jakub Kicinski
2020-01-31 14:45   ` Martin T
2020-02-01 19:08 ` Cong Wang
2020-02-01 19:14   ` Michal Kubecek
2020-02-01 19:51     ` Cong Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox