Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2129991pxb; Mon, 12 Apr 2021 15:27:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxQBF0+7nzEtfKIFtHgS3IpfHidB6Q/mJU9hQQVOLeBcW47N5DFnHwUOQy628KYB0+IidQ9 X-Received: by 2002:a17:90b:380c:: with SMTP id mq12mr1449906pjb.109.1618266451354; Mon, 12 Apr 2021 15:27:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618266451; cv=none; d=google.com; s=arc-20160816; b=LH/e/4tU3yaB2gIko/bgLDt502pVWJ43yfjqLFKEyoQ+pxdi0nT0BtN2f31yFrNnQh OD2oES5UUov6PDboEbTZdsh93ujOGLqsfFPQVXouGg0hm3H1SqenctHrUG+PP72hL3KK hgkN3mFzSLjwf4LCu1cuDOkdhYwpORjO3skfd+VN3drIPmO3C8UZzxeFchDrJfoVNx+s oOrx9SwiyzwC8Lj9ovap8hCQ0+fQy2YeKbecwg7CUUPX/MXk+jC73JCxLO09VB47LEBP Vu7FYN2XJJxagqlgGBYuSYiCN/hbdj9i5BFU6KPlcDzdvhH+wANLI9RIIUfdticnVLla /AzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=lenGlEI14opCDsLltIuczp+j6SzjjSGQuV0aabXJU0I=; b=Gcfd3G7X6PqeaJWm2eczHzqixd7tWC5AeBzme7u+T4FeSWrmNC+EcXIqEiQEwFmYTq xfCtwCEWXKM40zV5MrJMhY0FFhyv2esgzbmBLkqCLZt1nP1RCEmclGg/wOE3RJQCoCDL uR50l0ie6FDceNCvyEzRBftRGwlOrRPUzr9G4T0InqvYnJEx8Thcv/RPHxVyMgjpVwi3 7+FYKAgahxyt0THMlurZIlYO/sD06+JiFnAw5G67FsqnKTce9wNU8AkRbCBHEhfugcRO bJslyRRR05sSniZVU+fmxO+9fJq88tDxT3VpV93ZtawLnmvBtz1MNhnS/az7nUfQkvzw rnAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=RdBoF+FU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s11si8579975plq.360.2021.04.12.15.27.19; Mon, 12 Apr 2021 15:27:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=RdBoF+FU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242938AbhDLJbL (ORCPT + 99 others); Mon, 12 Apr 2021 05:31:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:34454 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238951AbhDLJHF (ORCPT ); Mon, 12 Apr 2021 05:07:05 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5DC0F61354; Mon, 12 Apr 2021 09:03:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1618218218; bh=2WZkXOt956qtWOlf8pzkbON2qStVVDV7YsrnMCDXkwY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RdBoF+FUw4kAG/RVZfyQ+i01Wri/QZ6hP5Vq26/HJBoxjvVQlPHqObGfFrDVzxFg1 xoqCqxPzqYwa0Ez8TXnGhlPojkZ5j6vQigKxJiHzDUtN3RgV3vlV3sgZ3lxh1WsIYl BSyEaXrWRYwBz+PpKXPRl3FYVnoFhWSPRl87EsUE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Norbert Ciosek , Konrad Jankowski , Tony Nguyen , Sasha Levin Subject: [PATCH 5.11 115/210] virtchnl: Fix layout of RSS structures Date: Mon, 12 Apr 2021 10:40:20 +0200 Message-Id: <20210412084019.834459327@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210412084016.009884719@linuxfoundation.org> References: <20210412084016.009884719@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Norbert Ciosek [ Upstream commit 22f8b5df881e9f1302514bbbbbb8649c2051de55 ] Remove padding from RSS structures. Previous layout could lead to unwanted compiler optimizations in loops when iterating over key and lut arrays. Fixes: 65ece6de0114 ("virtchnl: Add missing explicit padding to structures") Signed-off-by: Norbert Ciosek Tested-by: Konrad Jankowski Signed-off-by: Tony Nguyen Signed-off-by: Sasha Levin --- include/linux/avf/virtchnl.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/linux/avf/virtchnl.h b/include/linux/avf/virtchnl.h index 40bad71865ea..532bcbfc4716 100644 --- a/include/linux/avf/virtchnl.h +++ b/include/linux/avf/virtchnl.h @@ -476,7 +476,6 @@ struct virtchnl_rss_key { u16 vsi_id; u16 key_len; u8 key[1]; /* RSS hash key, packed bytes */ - u8 pad[1]; }; VIRTCHNL_CHECK_STRUCT_LEN(6, virtchnl_rss_key); @@ -485,7 +484,6 @@ struct virtchnl_rss_lut { u16 vsi_id; u16 lut_entries; u8 lut[1]; /* RSS lookup table */ - u8 pad[1]; }; VIRTCHNL_CHECK_STRUCT_LEN(6, virtchnl_rss_lut); -- 2.30.2