Module Name: src Committed By: jakllsch Date: Sun Apr 26 15:39:04 UTC 2020
Modified Files: src/sys/dev/pci: if_skreg.h Log Message: Use __aligned(8) with naturally-aligned-yet-__packed msk(4) descriptors. Allows compiler to generate more efficent struct member accesses. To generate a diff of this commit: cvs rdiff -u -r1.27 -r1.28 src/sys/dev/pci/if_skreg.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/pci/if_skreg.h diff -u src/sys/dev/pci/if_skreg.h:1.27 src/sys/dev/pci/if_skreg.h:1.28 --- src/sys/dev/pci/if_skreg.h:1.27 Fri Nov 15 12:38:09 2019 +++ src/sys/dev/pci/if_skreg.h Sun Apr 26 15:39:04 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: if_skreg.h,v 1.27 2019/11/15 12:38:09 msaitoh Exp $ */ +/* $NetBSD: if_skreg.h,v 1.28 2020/04/26 15:39:04 jakllsch Exp $ */ /*- * Copyright (c) 2003 The NetBSD Foundation, Inc. @@ -1701,7 +1701,7 @@ struct msk_rx_desc { u_int16_t sk_len; u_int8_t sk_ctl; u_int8_t sk_opcode; -} __packed; +} __packed __aligned(8); #define SK_Y2_RXOPC_BUFFER 0x40 #define SK_Y2_RXOPC_PACKET 0x41 @@ -1712,7 +1712,7 @@ struct msk_tx_desc { u_int16_t sk_len; u_int8_t sk_ctl; u_int8_t sk_opcode; -} __packed; +} __packed __aligned(8); #define SK_Y2_TXCTL_LASTFRAG 0x80 @@ -1725,7 +1725,7 @@ struct msk_status_desc { u_int16_t sk_len; u_int8_t sk_link; u_int8_t sk_opcode; -} __packed; +} __packed __aligned(8); #define SK_Y2_STOPC_RXSTAT 0x60 #define SK_Y2_STOPC_TXSTAT 0x68