mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 04:43:53 +00:00
cxgbe(4): Reword the comment explaining the atid/cookie split.
Avoid a magic constant while here. No functional change intended. MFC after: 1 week Sponsored by: Chelsio Communications
This commit is contained in:
parent
f0ee6112eb
commit
43f6f08488
|
@ -67,10 +67,10 @@ struct stid_region {
|
|||
};
|
||||
|
||||
/*
|
||||
* Max # of ATIDs. The absolute HW max is 14b (enough for 16K) but we reserve
|
||||
* the upper 3b for use as a cookie to demux the reply.
|
||||
* Max # of ATIDs. The absolute HW max is larger than this but we reserve a few
|
||||
* of the upper bits for use as a cookie to demux the reply.
|
||||
*/
|
||||
#define MAX_ATIDS 2048U
|
||||
#define MAX_ATIDS (M_TID_TID + 1)
|
||||
|
||||
union aopen_entry {
|
||||
void *data;
|
||||
|
|
|
@ -3905,6 +3905,9 @@ rw_via_memwin(struct adapter *sc, int idx, uint32_t addr, uint32_t *val,
|
|||
return (0);
|
||||
}
|
||||
|
||||
CTASSERT(M_TID_COOKIE == M_COOKIE);
|
||||
CTASSERT(MAX_ATIDS <= (M_TID_TID + 1));
|
||||
|
||||
static void
|
||||
t4_init_atid_table(struct adapter *sc)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue