diff options
Diffstat (limited to 'drivers/net')
| -rw-r--r-- | drivers/net/bnx2.c | 6 | ||||
| -rw-r--r-- | drivers/net/tg3.c | 7 |
2 files changed, 6 insertions, 7 deletions
diff --git a/drivers/net/bnx2.c b/drivers/net/bnx2.c index ce3ed67a878e..0f4f76fda26f 100644 --- a/drivers/net/bnx2.c +++ b/drivers/net/bnx2.c | |||
| @@ -6490,10 +6490,10 @@ bnx2_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
| 6490 | memcpy(dev->perm_addr, bp->mac_addr, 6); | 6490 | memcpy(dev->perm_addr, bp->mac_addr, 6); |
| 6491 | bp->name = board_info[ent->driver_data].name; | 6491 | bp->name = board_info[ent->driver_data].name; |
| 6492 | 6492 | ||
| 6493 | dev->features |= NETIF_F_IP_CSUM | NETIF_F_SG; | ||
| 6493 | if (CHIP_NUM(bp) == CHIP_NUM_5709) | 6494 | if (CHIP_NUM(bp) == CHIP_NUM_5709) |
| 6494 | dev->features |= NETIF_F_HW_CSUM | NETIF_F_SG; | 6495 | dev->features |= NETIF_F_IPV6_CSUM; |
| 6495 | else | 6496 | |
| 6496 | dev->features |= NETIF_F_IP_CSUM | NETIF_F_SG; | ||
| 6497 | #ifdef BCM_VLAN | 6497 | #ifdef BCM_VLAN |
| 6498 | dev->features |= NETIF_F_HW_VLAN_TX | NETIF_F_HW_VLAN_RX; | 6498 | dev->features |= NETIF_F_HW_VLAN_TX | NETIF_F_HW_VLAN_RX; |
| 6499 | #endif | 6499 | #endif |
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c index 2f3184184ad9..3a43426ced32 100644 --- a/drivers/net/tg3.c +++ b/drivers/net/tg3.c | |||
| @@ -11944,12 +11944,11 @@ static int __devinit tg3_init_one(struct pci_dev *pdev, | |||
| 11944 | * checksumming. | 11944 | * checksumming. |
| 11945 | */ | 11945 | */ |
| 11946 | if ((tp->tg3_flags & TG3_FLAG_BROKEN_CHECKSUMS) == 0) { | 11946 | if ((tp->tg3_flags & TG3_FLAG_BROKEN_CHECKSUMS) == 0) { |
| 11947 | dev->features |= NETIF_F_IP_CSUM | NETIF_F_SG; | ||
| 11947 | if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5755 || | 11948 | if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5755 || |
| 11948 | GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5787) | 11949 | GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5787) |
| 11949 | dev->features |= NETIF_F_HW_CSUM; | 11950 | dev->features |= NETIF_F_IPV6_CSUM; |
| 11950 | else | 11951 | |
| 11951 | dev->features |= NETIF_F_IP_CSUM; | ||
| 11952 | dev->features |= NETIF_F_SG; | ||
| 11953 | tp->tg3_flags |= TG3_FLAG_RX_CHECKSUMS; | 11952 | tp->tg3_flags |= TG3_FLAG_RX_CHECKSUMS; |
| 11954 | } else | 11953 | } else |
| 11955 | tp->tg3_flags &= ~TG3_FLAG_RX_CHECKSUMS; | 11954 | tp->tg3_flags &= ~TG3_FLAG_RX_CHECKSUMS; |
