Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 203768
b: refs/heads/master
c: 5d7cd49
h: refs/heads/master
v: v3
  • Loading branch information
Dmitry Kravkov authored and David S. Miller committed Jul 28, 2010
1 parent c6e257d commit 8b766b0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 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: 5d1e859c5b600c491336f023a2f2105c24597226
refs/heads/master: 5d7cd49622af9396643f8d2c5ed17039d89fef14
2 changes: 2 additions & 0 deletions trunk/drivers/net/bnx2x/bnx2x.h
Original file line number Diff line number Diff line change
Expand Up @@ -1006,6 +1006,8 @@ struct bnx2x {

int multi_mode;
int num_queues;
int disable_tpa;
int int_mode;

u32 rx_mode;
#define BNX2X_RX_MODE_NONE 0
Expand Down
7 changes: 4 additions & 3 deletions trunk/drivers/net/bnx2x/bnx2x_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -7878,7 +7878,7 @@ static int bnx2x_set_num_queues(struct bnx2x *bp)
{
int rc = 0;

switch (int_mode) {
switch (bp->int_mode) {
case INT_MODE_INTx:
case INT_MODE_MSI:
bp->num_queues = 1;
Expand Down Expand Up @@ -9951,7 +9951,7 @@ static int __devinit bnx2x_init_bp(struct bnx2x *bp)
multi_mode = ETH_RSS_MODE_DISABLED;
}
bp->multi_mode = multi_mode;

bp->int_mode = int_mode;

bp->dev->features |= NETIF_F_GRO;

Expand All @@ -9963,6 +9963,7 @@ static int __devinit bnx2x_init_bp(struct bnx2x *bp)
bp->flags |= TPA_ENABLE_FLAG;
bp->dev->features |= NETIF_F_LRO;
}
bp->disable_tpa = disable_tpa;

if (CHIP_IS_E1(bp))
bp->dropless_fc = 0;
Expand Down Expand Up @@ -11006,7 +11007,7 @@ static int bnx2x_set_flags(struct net_device *dev, u32 data)

/* TPA requires Rx CSUM offloading */
if ((data & ETH_FLAG_LRO) && bp->rx_csum) {
if (!disable_tpa) {
if (!bp->disable_tpa) {
if (!(dev->features & NETIF_F_LRO)) {
dev->features |= NETIF_F_LRO;
bp->flags |= TPA_ENABLE_FLAG;
Expand Down

0 comments on commit 8b766b0

Please sign in to comment.