summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/renesas/rswitch.h
diff options
context:
space:
mode:
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>2023-12-08 05:10:25 +0100
committerDavid S. Miller <davem@davemloft.net>2023-12-10 20:31:41 +0100
commit271e015b91535dd87fd0f5df0cc3b906c2eddef9 (patch)
tree0d5802fb568208b955cc99dbefd22895edf45236 /drivers/net/ethernet/renesas/rswitch.h
parentnet: rswitch: Use build_skb() for RX (diff)
downloadlinux-271e015b91535dd87fd0f5df0cc3b906c2eddef9.tar.xz
linux-271e015b91535dd87fd0f5df0cc3b906c2eddef9.zip
net: rswitch: Add unmap_addrs instead of dma address in each desc
If the driver would like to transmit a jumbo frame like 2KiB or more, it should be split into multiple queues. In the near future, to support this, add unmap_addrs array to unmap dma mapping address instead of dma address in each TX descriptor because the descriptors may not have the top dma address. Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/renesas/rswitch.h')
-rw-r--r--drivers/net/ethernet/renesas/rswitch.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/renesas/rswitch.h b/drivers/net/ethernet/renesas/rswitch.h
index a407d85dcfad..2ac9a86b6238 100644
--- a/drivers/net/ethernet/renesas/rswitch.h
+++ b/drivers/net/ethernet/renesas/rswitch.h
@@ -956,6 +956,7 @@ struct rswitch_gwca_queue {
/* For TX */
struct {
struct sk_buff **skbs;
+ dma_addr_t *unmap_addrs;
};
/* For RX */
struct {