diff options
| author | Yaroslav Tykhiy <ytykhiy@gmail.com> | 2004-05-20 11:04:09 +0000 |
|---|---|---|
| committer | Yaroslav Tykhiy <ytykhiy@gmail.com> | 2004-05-20 11:04:09 +0000 |
| commit | 1df1a825418f179b5d09587367182a81397596ff (patch) | |
| tree | bf2222674320bdfd84dbee3aa847a8993bf49d4e | |
| parent | 386a927075e3d30b8252aa63cdb26f1f576b25e0 (diff) | |
Notes
| -rw-r--r-- | sys/dev/em/if_em.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/dev/em/if_em.c b/sys/dev/em/if_em.c index 0bb5a5c5ddb9..5e508e109736 100644 --- a/sys/dev/em/if_em.c +++ b/sys/dev/em/if_em.c @@ -1855,9 +1855,11 @@ em_setup_interface(device_t dev, struct adapter * adapter) ether_ifattach(ifp, adapter->interface_data.ac_enaddr); #endif + ifp->if_capabilities = ifp->if_capenable = 0; + if (adapter->hw.mac_type >= em_82543) { - ifp->if_capabilities = IFCAP_HWCSUM; - ifp->if_capenable = ifp->if_capabilities; + ifp->if_capabilities |= IFCAP_HWCSUM; + ifp->if_capenable |= IFCAP_HWCSUM; } /* @@ -1865,7 +1867,7 @@ em_setup_interface(device_t dev, struct adapter * adapter) */ ifp->if_data.ifi_hdrlen = sizeof(struct ether_vlan_header); #if __FreeBSD_version >= 500000 - ifp->if_capabilities |= IFCAP_VLAN_HWTAGGING | IFCAP_VLAN_MTU; + ifp->if_capabilities |= IFCAP_VLAN_HWTAGGING | IFCAP_VLAN_MTU; ifp->if_capenable |= IFCAP_VLAN_HWTAGGING | IFCAP_VLAN_MTU; #endif |
