summaryrefslogtreecommitdiffstats
path: root/sys/dev/bxe/if_bxe.h
diff options
context:
space:
mode:
authordavidch <davidch@FreeBSD.org>2011-05-09 18:46:53 +0000
committerdavidch <davidch@FreeBSD.org>2011-05-09 18:46:53 +0000
commitda17dba01e9e8ef6a1a66757c58d0fcdc3a738be (patch)
tree03815204a559c49baa1dbd6ce9cef1ab4f3ee656 /sys/dev/bxe/if_bxe.h
parent7524282161c632ffb78c9164f3b96d7b79d87d3f (diff)
downloadFreeBSD-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.h4
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
OpenPOWER on IntegriCloud