Skip to content

net/tcp: improve tcp_send_txnotify#18751

Open
masc2008 wants to merge 1 commit intoapache:masterfrom
masc2008:net-tcp-improve-txnotify
Open

net/tcp: improve tcp_send_txnotify#18751
masc2008 wants to merge 1 commit intoapache:masterfrom
masc2008:net-tcp-improve-txnotify

Conversation

@masc2008
Copy link
Copy Markdown
Contributor

Use conn->dev directly when it is already available

Summary

Use conn->dev directly in tcp_send_txnotify() when the device is already available, and keep the existing IPv4/IPv6 fallback path when it is not.

Also fix the grammar in the function comment.

Impact

This is a small networking change in net/tcp/tcp_send.c.

It keeps the existing fallback behavior when conn->dev is NULL and uses the cached device directly when available.

Test

On BES chips, since there is no related log when do this, no need to attach log.
from the code, it's a good improvement.

@github-actions github-actions bot added Area: Networking Effects networking subsystem Size: XS The size of the change in this PR is very small labels Apr 17, 2026
Use conn->dev directly when it is already available

Signed-off-by: Jerry Ma <shichunma@bestechnic.com>
@masc2008 masc2008 force-pushed the net-tcp-improve-txnotify branch from cf7b711 to e310929 Compare April 17, 2026 02:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: Networking Effects networking subsystem Size: XS The size of the change in this PR is very small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants