Ivan Vecera
28ace84b10
be2net: move rss_flags field in rss_info to ensure proper alignment
The current position of .rss_flags field in struct rss_info causes
that fields .rsstable and .rssqueue (both 128 bytes long) crosses
cache-line boundaries. Moving it at the end properly align all fields.
Before patch:
struct rss_info {
u64 rss_flags; /* 0 8 */
u8 rsstable[128]; /* 8 128 */
/* --- cacheline 2 boundary (128 bytes) was 8 bytes ago --- */
u8 rss_queue[128]; /* 136 128 */
/* --- cacheline 4 boundary (256 bytes) was 8 bytes ago --- */
u8 rss_hkey[40]; /* 264 40 */
};
After patch:
struct rss_info {
u8 rsstable[128]; /* 0 128 */
/* --- cacheline 2 boundary (128 bytes) --- */
u8 rss_queue[128]; /* 128 128 */
/* --- cacheline 4 boundary (256 bytes) --- */
u8 rss_hkey[40]; /* 256 40 */
u64 rss_flags; /* 296 8 */
};
Signed-off-by: Ivan Vecera <cera@cera.cz>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-07-12 00:03:31 -07:00
..
2018-07-09 13:41:34 -07:00
2018-03-26 12:07:49 -04:00
2018-06-12 16:19:22 -07:00
2018-07-05 19:29:29 +09:00
2018-07-12 00:03:31 -07:00
2018-06-08 18:47:46 -04:00
2018-07-05 19:34:21 +09:00
2018-07-05 19:34:45 +09:00
2018-06-12 16:19:22 -07:00
2018-07-09 13:57:25 -07:00
2018-04-23 20:56:23 +02:00
2018-07-02 20:38:09 +09:00
2018-07-02 20:35:33 +09:00
2018-07-04 11:30:02 +09:00
2018-06-28 10:40:47 -07:00
2018-06-12 16:19:22 -07:00
2018-07-11 23:10:19 -07:00
2018-07-04 22:09:23 +09:00
2018-05-21 16:01:54 -04:00
2018-07-07 22:07:21 +09:00
2018-07-11 22:54:25 -07:00
2018-07-09 13:41:34 -07:00
2018-07-09 13:57:25 -07:00
2018-03-31 22:24:58 -04:00
2018-07-03 10:29:26 +09:00
2018-06-12 16:19:22 -07:00
2018-05-28 23:02:22 -04:00
2018-05-28 22:59:54 -04:00
2018-03-27 13:18:09 -04:00
2018-04-16 10:01:12 -04:00
2018-07-11 23:07:22 -07:00
2018-05-28 22:59:54 -04:00
2018-07-09 13:57:25 -07:00
2018-06-23 10:49:14 +09:00
2018-06-07 16:15:38 -04:00
2018-07-09 13:41:34 -07:00
2018-06-28 14:27:52 +09:00
2018-05-28 22:55:13 -04:00
2018-07-07 20:20:46 +09:00
2018-07-09 13:41:34 -07:00