]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: enetc: add multiple command BD rings support
authorWei Fang <wei.fang@nxp.com>
Mon, 18 May 2026 08:24:59 +0000 (16:24 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 21 May 2026 11:04:42 +0000 (13:04 +0200)
commitc5aed83ddc5328b55eabeee7568bbcf40985d5ed
treea06b1b32c82edf0126a257cf8cdd5e5cb378c64e
parent123db6a2751144f3e86cb029ebac4ef4777a5507
net: enetc: add multiple command BD rings support

All the tables of NETC switch are managed through the command BD ring,
but unlike ENETC, the switch has two command BD rings, if the current
ring is busy, the switch driver can switch to another ring to manage
the table. Currently, the NTMP driver does not support multiple rings.
Therefore, update ntmp_select_and_lock_cbdr() to select a appropriate
ring to execute the command for the switch.

Signed-off-by: Wei Fang <wei.fang@nxp.com>
Link: https://patch.msgid.link/20260518082506.1318236-9-wei.fang@nxp.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/freescale/enetc/ntmp.c