Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 277515
b: refs/heads/master
c: b363782
h: refs/heads/master
i:
  277513: 745250f
  277511: d7217a8
v: v3
  • Loading branch information
Dmitry Kravkov authored and David S. Miller committed Nov 13, 2011
1 parent 87eb21e commit 0aebc48
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f9c058b633000e64fba05fc14ba94dd09a20e674
refs/heads/master: b363782761eea7076619fe44063b915dae0b4cc7
3 changes: 1 addition & 2 deletions trunk/drivers/net/ethernet/broadcom/bnx2x/bnx2x.h
Original file line number Diff line number Diff line change
Expand Up @@ -411,8 +411,7 @@ union db_prod {


/* Number of u64 elements in SGE mask array */
#define RX_SGE_MASK_LEN ((NUM_RX_SGE_PAGES * RX_SGE_CNT) / \
BIT_VEC64_ELEM_SZ)
#define RX_SGE_MASK_LEN (NUM_RX_SGE / BIT_VEC64_ELEM_SZ)
#define RX_SGE_MASK_LEN_MASK (RX_SGE_MASK_LEN - 1)
#define NEXT_SGE_MASK_ELEM(el) (((el) + 1) & RX_SGE_MASK_LEN_MASK)

Expand Down
3 changes: 1 addition & 2 deletions trunk/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 0aebc48

Please sign in to comment.