linux/drivers/net
Huacai Chen 11c7fa11fa net: stmmac: dwmac-loongson: Set correct {tx,rx}_fifo_size
[ Upstream commit 8dbf0c7556 ]

Now for dwmac-loongson {tx,rx}_fifo_size are uninitialised, which means
zero. This means dwmac-loongson doesn't support changing MTU because in
stmmac_change_mtu() it requires the fifo size be no less than MTU. Thus,
set the correct tx_fifo_size and rx_fifo_size for it (16KB multiplied by
queue counts).

Here {tx,rx}_fifo_size is initialised with the initial value (also the
maximum value) of {tx,rx}_queues_to_use. So it will keep as 16KB if we
don't change the queue count, and will be larger than 16KB if we change
(decrease) the queue count. However stmmac_change_mtu() still work well
with current logic (MTU cannot be larger than 16KB for stmmac).

Note: the Fixes tag picked here is the oldest commit and key commit of
the dwmac-loongson series "stmmac: Add Loongson platform support".

Acked-by: Yanteng Si <si.yanteng@linux.dev>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Chong Qiao <qiaochong@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Link: https://patch.msgid.link/20250210134328.2755328-1-chenhuacai@loongson.cn
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-05-29 11:02:52 +02:00
..
arcnet arcnet: Add NULL check in com20020pci_probe() 2025-04-10 14:39:34 +02:00
bonding bonding: report duplicate MAC address in all situations 2025-05-29 11:02:36 +02:00
caif caif_virtio: fix wrong pointer check in cfv_probe() 2025-03-13 13:02:04 +01:00
can can: c_can: Use of_property_present() to test existence of DT property 2025-05-29 11:02:45 +02:00
dsa net: dsa: b53: prevent standalone from trying to forward to other ports 2025-05-22 14:29:41 +02:00
ethernet net: stmmac: dwmac-loongson: Set correct {tx,rx}_fifo_size 2025-05-29 11:02:52 +02:00
fddi net: handle HAS_IOPORT dependencies 2024-04-08 11:56:56 +01:00
fjes minmax: make generic MIN() and MAX() macros available everywhere 2024-07-28 15:49:18 -07:00
hamradio TTY/Serial driver update for 6.12-rc1 2024-09-26 09:59:50 -07:00
hippi net: hippi: Add missing pci_disable_device() in rr_init_one() 2022-09-26 13:22:39 -07:00
hyperv hv_netvsc: Remove rmsg_pgcnt 2025-05-22 14:29:47 +02:00
ieee802154 ieee802154: ca8210: Use proper setters and getters for bitwise types 2025-05-29 11:02:27 +02:00
ipa net: ipa: Enable checksum for IPA_ENDPOINT_AP_MODEM_{RX,TX} for v4.7 2025-03-13 13:02:07 +01:00
ipvlan ipvlan: ensure network headers are in skb linear part 2025-03-07 18:25:30 +01:00
mctp mctp: Fix incorrect tx flow invalidation condition in mctp-i2c 2025-05-29 11:02:06 +02:00
mdio net: mdio: mux-meson-gxl: set reversed bit when using internal phy 2025-05-09 09:50:43 +02:00
netdevsim netdevsim: print human readable IP address 2025-02-21 14:01:45 +01:00
pcs net: pcs: xpcs: fix the wrong register that was written back 2024-10-01 11:00:50 +02:00
phy net: phy: nxp-c45-tja11xx: add match_phy_device to TJA1103/TJA1104 2025-05-29 11:02:31 +02:00
plip net: plip: fix break; causing plip to never transmit 2024-10-19 16:06:55 -05:00
ppp net: ppp: Add bound checking for skb data on ppp_sync_txmung 2025-04-20 10:15:09 +02:00
pse-pd net: pse-pd: Fix deadlock in current limit functions 2025-02-27 04:30:24 -08:00
slip slip: make slhc_remember() more robust against malicious packets 2024-10-10 09:06:32 -07:00
team team: better TEAM_OPTION_TYPE_STRING validation 2025-02-21 14:01:18 +01:00
thunderbolt net: thunderbolt: Fix TCPv6 GSO checksum calculation 2023-09-15 13:45:05 +01:00
usb Revert "rndis_host: Flag RNDIS modems as WWAN devices" 2025-05-09 09:50:29 +02:00
vmxnet3 vmxnet3: Fix malformed packet sizing in vmxnet3_process_xdp 2025-05-02 07:59:30 +02:00
vxlan vxlan: Join / leave MC group after remote changes 2025-05-29 11:02:46 +02:00
wan net: wan: fsl_qmc_hdlc: Discard received CRC 2024-07-31 18:09:08 -07:00
wireguard netdev_features: convert NETIF_F_LLTX to dev->lltx 2024-09-03 11:36:43 +02:00
wireless wifi: rtw89: 8922a: fix incorrect STA-ID in EHT MU PPDU 2025-05-29 11:02:43 +02:00
wwan net: wwan: mhi_wwan_mbim: Silence sequence number glitch errors 2025-03-22 12:54:19 -07:00
xen-netback net/xen-netback: prevent UAF in xenvif_flush_hash() 2024-08-28 17:07:42 -07:00
amt.c netdev_features: convert NETIF_F_NETNS_LOCAL to dev->netns_local 2024-09-03 11:36:43 +02:00
bareudp.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2024-09-15 09:13:19 -07:00
dummy.c netdev_features: convert NETIF_F_LLTX to dev->lltx 2024-09-03 11:36:43 +02:00
eql.c net: fill in MODULE_DESCRIPTION()s under drivers/net/ 2023-10-28 11:29:28 +01:00
geneve.c geneve: Suppress list corruption splat in geneve_destroy_tunnels(). 2025-02-27 04:30:18 -08:00
gtp.c gtp: Suppress list corruption splat in gtp_net_exit_batch_rtnl(). 2025-02-27 04:30:18 -08:00
ifb.c net: fill in MODULE_DESCRIPTION()s under drivers/net/ 2023-10-28 11:29:28 +01:00
Kconfig net: netdevsim: select PAGE_POOL in Kconfig 2024-04-17 18:25:30 -07:00
LICENSE.SRC Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
loopback.c net: loopback: Avoid sending IP packets without an Ethernet header 2025-03-07 18:25:29 +01:00
macsec.c macsec: Fix use-after-free while sending the offloading packet 2024-10-28 16:13:50 -07:00
macvlan.c netdev_features: convert NETIF_F_LLTX to dev->lltx 2024-09-03 11:36:43 +02:00
macvtap.c net: fill in MODULE_DESCRIPTION()s under drivers/net/ 2023-10-28 11:29:28 +01:00
Makefile net: Always descend into dsa/ folder with CONFIG_NET_DSA enabled 2024-05-20 11:04:29 +01:00
mdio.c net: mdio: Correct function name mdio45_links_ok() in comment 2021-03-29 13:42:44 -07:00
mhi_net.c net: mhi: Remove redundant initialization owner in mhi_net_driver 2023-08-10 17:29:42 -07:00
mii.c net: mii: make mii_ethtool_gset() return void 2021-08-19 13:06:53 +01:00
net_failover.c netdev_features: convert NETIF_F_NETNS_LOCAL to dev->netns_local 2024-09-03 11:36:43 +02:00
netconsole.c net: netconsole: fix wrong warning 2024-10-09 19:42:43 -07:00
netkit.c netkit: Add option for scrubbing skb meta data 2024-12-09 10:40:56 +01:00
nlmon.c netdev_features: convert NETIF_F_LLTX to dev->lltx 2024-09-03 11:36:43 +02:00
ntb_netdev.c net: ntb_netdev: Move ntb_netdev_rx_handler() to call netif_rx() from __netif_rx() 2024-07-02 18:56:46 -07:00
pfcp.c pfcp: Destroy device along with udp socket's netns dismantle. 2025-01-23 17:22:50 +01:00
rionet.c netdev_features: convert NETIF_F_LLTX to dev->lltx 2024-09-03 11:36:43 +02:00
sb1000.c net: dev: Makes sure netif_rx() can be invoked in any context. 2022-02-14 13:38:35 +00:00
Space.c net: appletalk: remove cops support 2023-10-04 11:49:20 -07:00
sungem_phy.c net: sungem_phy: Constify struct mii_phy_def 2024-08-08 19:59:06 -07:00
tap.c ptr_ring: do not block hard interrupts in ptr_ring_resize_multiple() 2025-02-08 09:57:07 +01:00
tun.c tun: revert fix group permission check 2025-02-17 10:05:02 +01:00
veth.c netdev_features: convert NETIF_F_LLTX to dev->lltx 2024-09-03 11:36:43 +02:00
virtio_net.c virtio_net: ensure netdev_tx_reset_queue is called on bind xsk for tx 2025-05-22 14:29:38 +02:00
vrf.c vrf: revert "vrf: Remove unnecessary RCU-bh critical section" 2024-10-02 17:26:11 -07:00
vsockmon.c netdev_features: convert NETIF_F_LLTX to dev->lltx 2024-09-03 11:36:43 +02:00
xen-netfront.c xen-netfront: handle NULL returned by xdp_convert_buff_to_frame() 2025-05-02 07:59:05 +02:00