linux_dsm_epyc7002/drivers/net/ethernet/emulex/benet
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
..
be_cmds.c emulex/benet: Constify *be_misconfig_evt_port_state[] 2018-02-28 11:39:40 -05:00
be_cmds.h emulex/benet: Constify *be_misconfig_evt_port_state[] 2018-02-28 11:39:40 -05:00
be_ethtool.c be2net: Handle transmit completion errors in Lancer 2018-02-06 11:48:33 -05:00
be_hw.h be2net: Handle transmit completion errors in Lancer 2018-02-06 11:48:33 -05:00
be_main.c be2net: remove desc field from be_eq_obj 2018-07-12 00:03:30 -07:00
be_roce.c benet: fix set but not used warning 2017-07-25 12:31:37 -07:00
be_roce.h be2net: Change copyright markings in source files 2016-06-27 04:06:24 -04:00
be.h be2net: move rss_flags field in rss_info to ensure proper alignment 2018-07-12 00:03:31 -07:00
Kconfig benet: Replace ndo_add/del_vxlan_port with ndo_add/del_udp_enc_port 2016-06-17 20:23:30 -07:00
Makefile be2net: Add functionality to support RoCE driver 2012-05-08 11:17:47 -07:00