Message ID | 20221011055704.642271-8-khalid.elmously@canonical.com |
---|---|
State | New |
Headers | show
Return-Path: <kernel-team-bounces@lists.ubuntu.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=<UNKNOWN>) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=canonical.com header.i=@canonical.com header.a=rsa-sha256 header.s=20210705 header.b=bMoVtlc8; dkim-atps=neutral Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4MmlS14jr5z20cX for <incoming@patchwork.ozlabs.org>; Tue, 11 Oct 2022 16:57:37 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from <kernel-team-bounces@lists.ubuntu.com>) id 1oi8GZ-0008KZ-OR; Tue, 11 Oct 2022 05:57:23 +0000 Received: from smtp-relay-internal-0.internal ([10.131.114.225] helo=smtp-relay-internal-0.canonical.com) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from <khalid.elmously@canonical.com>) id 1oi8GS-0008Fd-Tc for kernel-team@lists.ubuntu.com; Tue, 11 Oct 2022 05:57:16 +0000 Received: from mail-qt1-f197.google.com (mail-qt1-f197.google.com [209.85.160.197]) (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 smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id 25F2E40008 for <kernel-team@lists.ubuntu.com>; Tue, 11 Oct 2022 05:57:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1665467835; bh=aVGDcihx5sPJathXADF+YGNFp/k39IvoU33N8AdwxhY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=bMoVtlc8B6V0LlPbvaChNCXVt/noSJT2D9tOxZ8Q6a1tZee3svCRXF8jrQyBckxrs zQ0kjFiSrERPXoDt8EHhw+n7ZI54SL/1FlPRw5DXs6olAAiCUdNnj7KKPBqAITRwBp L0tr5d15D9C5hSJ3TZ4Nq5EZWKXkGVIZmgTFza59RIzWsXomeMq5qlt+0UfmclQGid P4aEwFmxKN6HKWB8e98yqCttg7XE2QjirUeqnP7X8qux0Mgaqt1fpfP6eAJ+2ta7zz PDsqw6DGq09uG7yKdAXkTarnfyupd7U2u8HJvBxlTzLSc+2IzHoAYCTnHe2kY8Imru ggJ/o/FNofnMg== Received: by mail-qt1-f197.google.com with SMTP id e24-20020ac84918000000b0039878b3c676so4159382qtq.6 for <kernel-team@lists.ubuntu.com>; Mon, 10 Oct 2022 22:57:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=aVGDcihx5sPJathXADF+YGNFp/k39IvoU33N8AdwxhY=; b=do44cGDArys8FZUnHNDEm6K8vuEnlnSmridLuyBg+XkqFbmg85UuUIDKhCGMaMHWeG jeyoPaY15qMU+TX8vIEr0tHJF9jARlcZQdbL3RcqkGjeeGr4I9zH9Y4YMcnrtuvErknS n0FUqrOTy5PYaUgeRcxt+txMONS2cTeQ1ltI/nlfQKo/dJ058I6pXHz/FA1uVcRgRcWx 0PlQoH4D75yxobm8ts2JafXpSWACyM/S1xbHbEx0vxLKUOlDfvAU3qWI9x0ComMQSjWd VJT+8MoiKkYjd//8Tq2nD0pBShaXCqfEV8dvZ53XHGs93ZdBsrSPvBc5UGdlYBdg0UKj s0wg== X-Gm-Message-State: ACrzQf2hP99oVwK+nwaIXT7lXUOm/eqH89k8lDMgGHOoFLQG/IKqFj+F jWn2twQfPbukeAnzftbzzIx+wSgzLV0QhQDhvUuWCvVEZpWMJkAWSIkw/Jm0ZhvDesUkY+/WMqG TwCOg5SIJTx7TgGObFmaY7WcERJl1EOb0BFaOJvEGig== X-Received: by 2002:a05:6214:2a84:b0:4b4:1b07:9fac with SMTP id jr4-20020a0562142a8400b004b41b079facmr4741478qvb.12.1665467834180; Mon, 10 Oct 2022 22:57:14 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6Q9d8RtLOts4ChaJabVAc7rl2Ib0Ief8bAStOveHQjxKHLJedmhr6ouVeN2QljRUuG9FBYiQ== X-Received: by 2002:a05:6214:2a84:b0:4b4:1b07:9fac with SMTP id jr4-20020a0562142a8400b004b41b079facmr4741469qvb.12.1665467833896; Mon, 10 Oct 2022 22:57:13 -0700 (PDT) Received: from rpi4-work.fuzzbuzz.org ([38.147.253.164]) by smtp.gmail.com with ESMTPSA id z8-20020ac81008000000b0039351b26714sm9848927qti.7.2022.10.10.22.57.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Oct 2022 22:57:13 -0700 (PDT) From: Khalid Elmously <khalid.elmously@canonical.com> To: kernel-team@lists.ubuntu.com Subject: [PATCH 07/19] gve: Allow pageflips on larger pages Date: Tue, 11 Oct 2022 01:56:52 -0400 Message-Id: <20221011055704.642271-8-khalid.elmously@canonical.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221011055704.642271-1-khalid.elmously@canonical.com> References: <20221011055704.642271-1-khalid.elmously@canonical.com> MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions <kernel-team.lists.ubuntu.com> List-Unsubscribe: <https://lists.ubuntu.com/mailman/options/kernel-team>, <mailto:kernel-team-request@lists.ubuntu.com?subject=unsubscribe> List-Archive: <https://lists.ubuntu.com/archives/kernel-team> List-Post: <mailto:kernel-team@lists.ubuntu.com> List-Help: <mailto:kernel-team-request@lists.ubuntu.com?subject=help> List-Subscribe: <https://lists.ubuntu.com/mailman/listinfo/kernel-team>, <mailto:kernel-team-request@lists.ubuntu.com?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" <kernel-team-bounces@lists.ubuntu.com> |
Series |
Update gve/gvnic code
|
expand
|
diff --git a/drivers/net/ethernet/google/gve/gve_rx.c b/drivers/net/ethernet/google/gve/gve_rx.c index 3fbe7e8ea67b..5272472ace74 100644 --- a/drivers/net/ethernet/google/gve/gve_rx.c +++ b/drivers/net/ethernet/google/gve/gve_rx.c @@ -303,7 +303,7 @@ static void gve_rx_flip_buff(struct gve_rx_slot_page_info *page_info, __be64 *sl static bool gve_rx_can_flip_buffers(struct net_device *netdev) { - return PAGE_SIZE == 4096 + return PAGE_SIZE >= 4096 ? netdev->mtu + GVE_RX_PAD + ETH_HLEN <= PAGE_SIZE / 2 : false; }