]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
macb: prepare at91 to use a 2-frame TX queue
authorWilly Tarreau <w@1wt.eu>
Sun, 11 Oct 2020 09:09:43 +0000 (11:09 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 13 Oct 2020 23:57:12 +0000 (16:57 -0700)
commit73d7422813839bbcae3dd28ff0d3c48d916e0b57
tree01a2f1d7d9f082fbd0201893a58c6cce0029e1bf
parentfa6031df12fcbc1cd21586576046d821f2cef2e2
macb: prepare at91 to use a 2-frame TX queue

The RM9200 supports one frame being sent while another one is waiting in
queue. This avoids the dead time that follows the emission of a frame
and which prevents one from reaching line speed.

Right now the driver supports only a single skb, so we'll first replace
the rm9200-specific skb info with an array of two macb_tx_skb (already
used by other drivers). This patch only moves the skb_length to
txq[0].size and skb_physaddr to skb[0].mapping but doesn't perform any
other change. It already uses [desc] in order to minimize future changes.

Cc: Nicolas Ferre <nicolas.ferre@microchip.com>
Cc: Claudiu Beznea <claudiu.beznea@microchip.com>
Cc: Daniel Palmer <daniel@0x0f.com>
Signed-off-by: Willy Tarreau <w@1wt.eu>
Link: https://lore.kernel.org/r/20201011090944.10607-3-w@1wt.eu
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/cadence/macb.h
drivers/net/ethernet/cadence/macb_main.c