From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.4 required=3.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT, USER_IN_DEF_DKIM_WL autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 47F53C47404 for ; Fri, 11 Oct 2019 18:11:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 13763206CD for ; Fri, 11 Oct 2019 18:11:45 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="dWlEO5Iq" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728474AbfJKSLo (ORCPT ); Fri, 11 Oct 2019 14:11:44 -0400 Received: from mail-pg1-f202.google.com ([209.85.215.202]:53501 "EHLO mail-pg1-f202.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728470AbfJKSLo (ORCPT ); Fri, 11 Oct 2019 14:11:44 -0400 Received: by mail-pg1-f202.google.com with SMTP id r25so7480299pga.20 for ; Fri, 11 Oct 2019 11:11:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:message-id:mime-version:subject:from:to:cc; bh=AAxSBma4MdMPcB0qmLBHWNrhw+FW6k6FbqM7M2RKeSc=; b=dWlEO5IqJ4SUexbN83ceTc9zvnYaW0nzUzPwbBTuj6csZKFrJrYw3jAixhNT8IJ/XZ pZH1gmEVQqF5wg2hDoPmy7QkSZPNqXUj0Y8zaj5mcP9PuKHNnw6VN2WDE1ljYHd7SSec LPN+rGbRy7zRkcqcpw3QOw5oFoTC1vxe6a4allFIlxzcbQhgjl245yNlgiKA0td6rKLT +I9fjmkJic3vOvG61DUHFH84T5kWvtFr79dwQKJJY4OUNn9quup21aMuTzaM0V1I/DGN eaEf8EcNK8mGjz+StPkpU4pMs2pB1ohXBNoQ0y1wx9aC6J/QhzXwoAnGZWy1mr93NqoV NedQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=AAxSBma4MdMPcB0qmLBHWNrhw+FW6k6FbqM7M2RKeSc=; b=LiEJ8Bmq532+LJqmihxAjgDlDnrwE3mTTftAkoRLMtHsnymA4De1Ilt/fJQTc5Fuvo XsQYD/ZWWJIQpWBjPv9BsKuV7i8wMUjv8XQl5z2YoP4IPNXHKC4c8Rp2wUOC34HLmSdy HmP0VIDKeskNxwkgrg1pLNhTckvcfkLHhu7GjJ0QJDM16ae/kFiL4/5gASqtYUJj03mR ZaVXcziy1uGQHnRGknfm7sKPqFhTrvDWZnlBpFDNSyiUa2uJ4D/Hj8n3BBkKePig3VKu czSonWLky/uZgTy6NuKwf3WfhBr30rjL9TarnP2s/oAxMmDgcSV2UHShWvodiUJkBVUk +M8Q== X-Gm-Message-State: APjAAAXvlPNp9riNvPXKFHHZHMjnJUpCTdhHgJ+dhza6f324GPWepjrs d2tQzh8Mbq+RhHS6uvbLdIi2mzZRmsZhUg== X-Google-Smtp-Source: APXvYqwaoNiHnegwaHhHamZSWAckcNY3WBqeqE/A9WI0uicRoCDp0Sy8GknnpGVFJGYvXPiPPuK0dPGaw2jWCQ== X-Received: by 2002:a63:6506:: with SMTP id z6mr17840685pgb.65.1570817503445; Fri, 11 Oct 2019 11:11:43 -0700 (PDT) Date: Fri, 11 Oct 2019 11:11:40 -0700 Message-Id: <20191011181140.2898-1-edumazet@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.23.0.700.g56cf767bdb-goog Subject: [PATCH bpf-next] bpf: align struct bpf_prog_stats From: Eric Dumazet To: Alexei Starovoitov , Daniel Borkmann Cc: "David S . Miller" , netdev , Eric Dumazet , Eric Dumazet , bpf Content-Type: text/plain; charset="UTF-8" Sender: bpf-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: bpf@vger.kernel.org Do not risk spanning these small structures on two cache lines. Signed-off-by: Eric Dumazet --- include/linux/bpf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/bpf.h b/include/linux/bpf.h index 5b9d2233860654512da6ff5ec8bf56f2343ed722..282e28bf41ec627cad63c6b5bc3f439dc5f58f56 100644 --- a/include/linux/bpf.h +++ b/include/linux/bpf.h @@ -363,7 +363,7 @@ struct bpf_prog_stats { u64 cnt; u64 nsecs; struct u64_stats_sync syncp; -}; +} __aligned(2 * sizeof(u64)); struct bpf_prog_aux { atomic_t refcnt; -- 2.23.0.700.g56cf767bdb-goog