]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: stmmac: use first_desc for TBS
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Fri, 20 Mar 2026 16:47:32 +0000 (16:47 +0000)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 24 Mar 2026 11:09:17 +0000 (12:09 +0100)
commit557ccd54ba141650cfd6962296c062089f3c6cd3
treebb5b9a3c96fdd10ba45b9524a8c7f414d9d5f9a8
parent2e3bfeb1bc0c0a7cd51212ecc6533aca73cf8e2d
net: stmmac: use first_desc for TBS

Rather than freshly getting a pointer for the TBS descriptor (because
we want to access its enhanced fields) convert the existing first_desc
basic descriptor to a pointer to the enhanced descriptor.

Add a comment explaining why it is safe to convert from the basic
descriptor pointer to the enhanced descriptor pointer.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link: https://patch.msgid.link/E1w3d0W-0000000DfM7-2BMA@rmk-PC.armlinux.org.uk
Tested-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
[pabeni@redhat.com: fixed comment typo]
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c