public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
* [PATCH trivial 0/3] tcp_vu: Remove redundant header field assignments
@ 2026-03-20 13:51 Laurent Vivier
  2026-03-20 13:51 ` [PATCH trivial 1/3] tcp_vu: Remove redundant eh->h_proto assignments Laurent Vivier
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Laurent Vivier @ 2026-03-20 13:51 UTC (permalink / raw)
  To: passt-dev; +Cc: Laurent Vivier

tcp_vu_send_flag() and tcp_vu_prepare() set several header fields
that are unconditionally overwritten by tcp_fill_headers() or
tcp_prepare_flags() shortly after.

This series removes:
1. eh->h_proto assignments in both tcp_vu_send_flag() and
   tcp_vu_prepare(), overwritten by tcp_fill_headers()
2. eh->h_source memcpy in tcp_vu_send_flag(), overwritten by
   eth_update_mac() called from tcp_fill_headers()
3. th->doff and th->ack assignments in tcp_vu_send_flag(),
   overwritten by tcp_prepare_flags()

Laurent Vivier (3):
  tcp_vu: Remove redundant eh->h_proto assignments
  tcp_vu: Remove redundant eh->h_source assignment in tcp_vu_send_flag()
  tcp_vu: Remove redundant th->doff and th->ack in tcp_vu_send_flag()

 tcp_vu.c | 11 -----------
 1 file changed, 11 deletions(-)

-- 
2.53.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-03-20 13:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-03-20 13:51 [PATCH trivial 0/3] tcp_vu: Remove redundant header field assignments Laurent Vivier
2026-03-20 13:51 ` [PATCH trivial 1/3] tcp_vu: Remove redundant eh->h_proto assignments Laurent Vivier
2026-03-20 13:51 ` [PATCH trivial 2/3] tcp_vu: Remove redundant eh->h_source assignment in tcp_vu_send_flag() Laurent Vivier
2026-03-20 13:51 ` [PATCH trivial 3/3] tcp_vu: Remove redundant th->doff and th->ack " Laurent Vivier

Code repositories for project(s) associated with this public inbox

	https://passt.top/passt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).