|
@@ -874,8 +874,7 @@ static inline void bnx2x_clear_sge_mask_next_elems(struct bnx2x_fastpath *fp)
|
|
|
static inline void bnx2x_init_sge_ring_bit_mask(struct bnx2x_fastpath *fp)
|
|
|
{
|
|
|
/* Set the mask to all 1-s: it's faster to compare to 0 than to 0xf-s */
|
|
|
- memset(fp->sge_mask, 0xff,
|
|
|
- (NUM_RX_SGE >> BIT_VEC64_ELEM_SHIFT)*sizeof(u64));
|
|
|
+ memset(fp->sge_mask, 0xff, sizeof(fp->sge_mask));
|
|
|
|
|
|
/* Clear the two last indices in the page to 1:
|
|
|
these are the indices that correspond to the "next" element,
|