diff options
author | davidch <davidch@FreeBSD.org> | 2011-05-09 18:46:53 +0000 |
---|---|---|
committer | davidch <davidch@FreeBSD.org> | 2011-05-09 18:46:53 +0000 |
commit | da17dba01e9e8ef6a1a66757c58d0fcdc3a738be (patch) | |
tree | 03815204a559c49baa1dbd6ce9cef1ab4f3ee656 /sys/dev/bxe/if_bxe.h | |
parent | 7524282161c632ffb78c9164f3b96d7b79d87d3f (diff) | |
download | FreeBSD-src-da17dba01e9e8ef6a1a66757c58d0fcdc3a738be.zip FreeBSD-src-da17dba01e9e8ef6a1a66757c58d0fcdc3a738be.tar.gz |
- Simplify multicast address programming.
- Fix an incorrect "uint32_t *" cast in bxe_set_rx_mode().
Submitted by: yongari@
Approved by: davidch@
MFC after: Two weeks
Diffstat (limited to 'sys/dev/bxe/if_bxe.h')
-rw-r--r-- | sys/dev/bxe/if_bxe.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/bxe/if_bxe.h b/sys/dev/bxe/if_bxe.h index cb3e9c7..4f8528f 100644 --- a/sys/dev/bxe/if_bxe.h +++ b/sys/dev/bxe/if_bxe.h @@ -1773,11 +1773,11 @@ struct bxe_softc { USTORM_ETH_ST_CONTEXT_CONFIG_BD_SB_INDEX_NUMBER)) #define CAM_IS_INVALID(x) \ - (x.target_table_entry.flags == \ + ((x)->target_table_entry.flags == \ TSTORM_CAM_TARGET_TABLE_ENTRY_ACTION_TYPE) #define CAM_INVALIDATE(x) \ - (x.target_table_entry.flags = TSTORM_CAM_TARGET_TABLE_ENTRY_ACTION_TYPE) + ((x)->target_table_entry.flags = TSTORM_CAM_TARGET_TABLE_ENTRY_ACTION_TYPE) /* Number of uint32_t elements in multicast hash array. */ #define MC_HASH_SIZE 8 |