Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 23169
b: refs/heads/master
c: 29b1217
h: refs/heads/master
i:
  23167: 03c9085
v: v3
  • Loading branch information
Michael Chan authored and David S. Miller committed Mar 23, 2006
1 parent ff93951 commit 3f0e09f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 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: f2a4f05216e95f3b8c06b858abc0fe9a77500816
refs/heads/master: 29b12174ac14f110225d6d9ebb66c30df5023baf
1 change: 1 addition & 0 deletions trunk/drivers/net/bnx2.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
#include <linux/workqueue.h>
#include <linux/crc32.h>
#include <linux/prefetch.h>
#include <linux/cache.h>

#include "bnx2.h"
#include "bnx2_fw.h"
Expand Down
21 changes: 12 additions & 9 deletions trunk/drivers/net/bnx2.h
Original file line number Diff line number Diff line change
Expand Up @@ -3877,15 +3877,17 @@ struct bnx2 {
#define USING_MSI_FLAG 0x20
#define ASF_ENABLE_FLAG 0x40

struct tx_bd *tx_desc_ring;
struct sw_bd *tx_buf_ring;
u32 tx_prod_bseq;
u16 tx_prod;
u16 tx_cons;
int tx_ring_size;

u16 hw_tx_cons;
u16 hw_rx_cons;
/* Put tx producer and consumer fields in separate cache lines. */

u32 tx_prod_bseq __attribute__((aligned(L1_CACHE_BYTES)));
u16 tx_prod;

struct tx_bd *tx_desc_ring;
struct sw_bd *tx_buf_ring;
int tx_ring_size;

u16 tx_cons __attribute__((aligned(L1_CACHE_BYTES)));
u16 hw_tx_cons;

#ifdef BCM_VLAN
struct vlan_group *vlgrp;
Expand All @@ -3899,6 +3901,7 @@ struct bnx2 {
u32 rx_prod_bseq;
u16 rx_prod;
u16 rx_cons;
u16 hw_rx_cons;

u32 rx_csum;

Expand Down

0 comments on commit 3f0e09f

Please sign in to comment.