Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp12443246rwd; Fri, 23 Jun 2023 06:17:18 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ579Ewflr95YXGtjWxb+vVJhuEx2QXugAz9EIAtpJvB5N7u0okJpaWNgWoyjiVLIQUR79eS X-Received: by 2002:a5d:85d2:0:b0:76c:71dc:55f3 with SMTP id e18-20020a5d85d2000000b0076c71dc55f3mr18374959ios.6.1687526238237; Fri, 23 Jun 2023 06:17:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687526238; cv=none; d=google.com; s=arc-20160816; b=aLJ8Zr+PqcHXvssvj9C9vzT0/PbypsfEFGwzBTtIXp1UC+ZrwC4X6+bJ5z34AMIf/6 DfR9cxsXwEfmnNEG46uKFVunlvzSBuW/2XXhydIyTBSJG4Sm0cX0omqYLTHXS/koOqfF yt4sHE4M8dKGfV5u+jRB8KocECL3x2KZRwqaBYyzXorx+mdmZpL29IXSQz9z11vJl26R jMlQBkTAEkreDqCmafJGPHk0OpoqG3iqijqnPfFvOC6+D9zZWOElkIyfhOZP9aoBl2eE IeZ0TsFsQYlp0kDMdkLhA03OXIVtC7BDz5sB3st3lVDnAwrd5KRDN1MWGHneV102ffTX Yq0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=xBGlu4mVjSZIVkmyT63GiSTJi1xsdDVdh6nA4KVczZk=; b=lCMpA+5r5lJIkEP9aDcMeOZQpm/pkxwJUTugnZ3PQnjtzMVpRpOeYiyKHpr2cmNehT b7B3gZADxtrT+aSZihVDyMxL9TYCZpnjDNsrELu8Q/lSJwcuZrEEGrstxWOXRMtyQhUd 8kUi0KddOIgrsiacOYGn6336LqI3GWLIcjomxRtQ2cj8I8XqXJM9jpIkxjC1+lwlRgfS 9fKOp1C/Xy0AGSZjnXDd+gJHO8/DNgnEQroMFrvaeLCT4x8cmhJpoJiPAwiKpMQxWyTK oSd8ZWKper47suZ0uogOJgnShD/RuSJfkMbGKaqFlCPXzSvnJaEMjy7lAooeesvP+sxd sbmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=Da3PZ42W; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d5-20020a17090ab30500b002532c9b252asi1832740pjr.73.2023.06.23.06.17.02; Fri, 23 Jun 2023 06:17:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=Da3PZ42W; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229712AbjFWM5o (ORCPT + 99 others); Fri, 23 Jun 2023 08:57:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229469AbjFWM5n (ORCPT ); Fri, 23 Jun 2023 08:57:43 -0400 Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E7D61BC6; Fri, 23 Jun 2023 05:57:42 -0700 (PDT) Received: by mail-wr1-x435.google.com with SMTP id ffacd0b85a97d-311367a3e12so708473f8f.2; Fri, 23 Jun 2023 05:57:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687525060; x=1690117060; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:cc:to:subject:from:to:cc :subject:date:message-id:reply-to; bh=xBGlu4mVjSZIVkmyT63GiSTJi1xsdDVdh6nA4KVczZk=; b=Da3PZ42WRVj068XKjsp7ChqeSKc42ke+gcHYN+e/OmoJZICNLD82oBSwzKYYWkgcG6 79G3SFLUoDLsqHvF1YhE/GkvfU8XkJGEz5+lazPJUBMxqS6yBplsrwa9S2ZqnuAWR+Lr jwdAqvZj4S8p+Wx+xxPZzX65nhVmfOh2PyzGNLt2kLidzCvchgVbstihvLmZLA9Heksm gj7DVGJttCNANj4xtkAMx0Nqy/tIq2hqJZg6f5V84d5ikeo7lEOuXUYECVNccJ7QosY0 zFOmwBiz7DCu/lEh4eLLEZq56HdB3bFCO3+RLPHJjdP6m8XMvQwgd2ydmoMA2z9Y+y3e gruA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687525060; x=1690117060; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:cc:to:subject :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=xBGlu4mVjSZIVkmyT63GiSTJi1xsdDVdh6nA4KVczZk=; b=QYV/YCuphtcgKaT0OTdh/ogMNxHkyY6xLCEFARgZlxPg3gSwNpj5W5rVgEmtZQc76A hq5owNQg/DW6oCv9cVgbV5aE2ekuYt9Fieeipmqy0hhmXAZBpxezKjDAyM5NJokPS8LU vtt3+XPxpTUYyLYuqqoWqZCUHl9M486ltTWW63VckQ7FCKwXIoT2wTfeDLvaLFC67XyF dPGNczDkjujA1SNjmHyWeTuXNC0EO/UkD5e+N/NYbZTLIYnCrZ5egABEec/6eN0IiV3v NTgJM+pLixYWr33Ssyxm4Ch6RYGMhvGtFkSLov/UfQ5qku8nTY0NtfLV2B7Zdojz0xgN 1SWg== X-Gm-Message-State: AC+VfDwqKE59tlUeS4nbelnlOFU0Kms3w4a0iv55CK+iSqpaPxLJdF+q TNYA5oZcGNERo+4ERC4rgcOa7fpFnAU= X-Received: by 2002:adf:cc90:0:b0:311:ffc:f54d with SMTP id p16-20020adfcc90000000b003110ffcf54dmr18450756wrj.66.1687525060520; Fri, 23 Jun 2023 05:57:40 -0700 (PDT) Received: from [192.168.1.122] (cpc159313-cmbg20-2-0-cust161.5-4.cable.virginm.net. [82.0.78.162]) by smtp.gmail.com with ESMTPSA id y10-20020adff6ca000000b0030f9c3219aasm9450567wrp.47.2023.06.23.05.57.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 23 Jun 2023 05:57:40 -0700 (PDT) Subject: Re: [PATCH 3/3] sfc: selftest: fix struct packing To: David Laight , Arnd Bergmann , Martin Habets , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: Arnd Bergmann , "netdev@vger.kernel.org" , "linux-net-drivers@amd.com" , "linux-kernel@vger.kernel.org" References: <20230619091215.2731541-1-arnd@kernel.org> <20230619091215.2731541-3-arnd@kernel.org> <7c448f02-4031-0a90-97e2-0cc663b0cff9@gmail.com> From: Edward Cree Message-ID: <0f12f612-7fad-59c6-c7dd-dea49721842b@gmail.com> Date: Fri, 23 Jun 2023 13:57:39 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 23/06/2023 11:52, David Laight wrote: > Maybe you can get away with adding a 16bit pad before the ethernet > header so that the IP header is actually aligned. That's what I ended up doing, because my original idea was overcomplicated and turned out super ugly. See https://lore.kernel.org/netdev/6f87fdf5-1844-4633-b4fe-6b247bc6ab49@app.fastmail.com/T/ > (Then fight all the stuff that stops you doing a memcpy() > that runs into a second field of a structure.) Yeah, I don't know how you're meant to annotate that stuff. I guess I'll have to wait until Kees shouts at me and tells me what to do :S -ed