diff options
author | Norbert Ciosek <norbertx.ciosek@intel.com> | 2021-01-28 10:17:02 -0800 |
---|---|---|
committer | Tony Nguyen <anthony.l.nguyen@intel.com> | 2021-03-25 09:28:32 -0700 |
commit | 22f8b5df881e9f1302514bbbbbb8649c2051de55 (patch) | |
tree | a5717ed106d4122ce01760a1c5441e4f69f62046 /include/linux/avf | |
parent | e43accba9b071dcd106b5e7643b1b106a158cbb1 (diff) | |
download | lwn-22f8b5df881e9f1302514bbbbbb8649c2051de55.tar.gz lwn-22f8b5df881e9f1302514bbbbbb8649c2051de55.zip |
virtchnl: Fix layout of RSS structures
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 <norbertx.ciosek@intel.com>
Tested-by: Konrad Jankowski <konrad0.jankowski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Diffstat (limited to 'include/linux/avf')
-rw-r--r-- | include/linux/avf/virtchnl.h | 2 |
1 files changed, 0 insertions, 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); |