From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: passt.top; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: passt.top; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=KVA7mkU+; dkim-atps=neutral Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by passt.top (Postfix) with ESMTPS id 3F6385A0272 for ; Fri, 20 Mar 2026 14:51:23 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1774014682; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ojvmBFpj60/7vq6I4EX5c5KSX0+Bv6z2Yh0zF+M151g=; b=KVA7mkU+i5jNLvwtIIj7At6c7pq+W9z3DgJpvMoErxyvh01s2YaS01gfZpanU/XHUmP6dg hFUwEyUZM1AFVFI7gXjslE79UVg6V7zWpZF9UTl0uvpiIYan43XEra9laonPD8bqn874or 36AQ/QTdo4AHFGX8GW6h+gh7AzMSFlg= Received: from mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-471-KWXx7O5LOTW9Z6D7TV5Z3A-1; Fri, 20 Mar 2026 09:51:20 -0400 X-MC-Unique: KWXx7O5LOTW9Z6D7TV5Z3A-1 X-Mimecast-MFC-AGG-ID: KWXx7O5LOTW9Z6D7TV5Z3A_1774014679 Received: from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 586251800614 for ; Fri, 20 Mar 2026 13:51:19 +0000 (UTC) Received: from lenovo-t14s.redhat.com (unknown [10.45.224.233]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 3F7A61800765; Fri, 20 Mar 2026 13:51:17 +0000 (UTC) From: Laurent Vivier To: passt-dev@passt.top Subject: [PATCH trivial 0/3] tcp_vu: Remove redundant header field assignments Date: Fri, 20 Mar 2026 14:51:13 +0100 Message-ID: <20260320135116.575416-1-lvivier@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.111 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: vPRNFK5vppK7n5PV1_65x_YYeP-W9PFyxz1ZRoRrNhs_1774014679 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-ID-Hash: BE534JDMBTFLBCBRXS7T3INB7E2PREC2 X-Message-ID-Hash: BE534JDMBTFLBCBRXS7T3INB7E2PREC2 X-MailFrom: lvivier@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Laurent Vivier X-Mailman-Version: 3.3.8 Precedence: list List-Id: Development discussion and patches for passt Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: 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