virtchnl: Fix layout of RSS structures
PATCH v2 1/1 virtchnl: Fix layout of RSS structures
From: Norbert Ciosek <[email protected]>
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 <[email protected]>
---
v2: Removed padding instead of moving "key" and "lut" fields at the end of RSS structures.
--- include/linux/avf/virtchnl.h | 2 -- 1 file changed, 2 deletions(-)
include/linux/avf/virtchnl.h +0 -2
@@ -503,7 +503,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);
@@ -512,7 +511,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);
Signature · 7 lines
2.17.1 --------------------------------------------------------------------- Intel Technology Poland sp. z o.o. ul. Sowackiego 173 | 80-298 Gdask | Sd Rejonowy Gdask Pnoc | VII Wydzia Gospodarczy Krajowego Rejestru Sdowego - KRS 101882 | NIP 957-07-52-316 | Kapita zakadowy 200.000 PLN. Ta wiadomo wraz z zacznikami jest przeznaczona dla okrelonego adresata i moe zawiera informacje poufne. W razie przypadkowego otrzymania tej wiadomoci, prosimy o powiadomienie nadawcy oraz trwae jej usunicie; jakiekolwiek przegldanie lub rozpowszechnianie jest zabronione. This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). If you are not the intended recipient, please contact the sender and delete all copies; any review or distribution by others is strictly prohibited.