qls_os.c (ee7b0571c2c18bdec848ed2044223cc88db29bd8) qls_os.c (1bffa9511fe94125820858b0ead796db54ac019d)
1/*
2 * Copyright (c) 2013-2014 Qlogic Corporation
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *

--- 756 unchanged lines hidden (view full) ---

765
766 ifp->if_capabilities |= IFCAP_TSO4;
767 ifp->if_capabilities |= IFCAP_VLAN_HWTAGGING;
768 ifp->if_capabilities |= IFCAP_VLAN_HWTSO;
769 ifp->if_capabilities |= IFCAP_LINKSTATE;
770
771 ifp->if_capenable = ifp->if_capabilities;
772
1/*
2 * Copyright (c) 2013-2014 Qlogic Corporation
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *

--- 756 unchanged lines hidden (view full) ---

765
766 ifp->if_capabilities |= IFCAP_TSO4;
767 ifp->if_capabilities |= IFCAP_VLAN_HWTAGGING;
768 ifp->if_capabilities |= IFCAP_VLAN_HWTSO;
769 ifp->if_capabilities |= IFCAP_LINKSTATE;
770
771 ifp->if_capenable = ifp->if_capabilities;
772
773 ifp->if_data.ifi_hdrlen = sizeof(struct ether_vlan_header);
773 ifp->if_hdrlen = sizeof(struct ether_vlan_header);
774
775 ifmedia_init(&ha->media, IFM_IMASK, qls_media_change, qls_media_status);
776
777 ifmedia_add(&ha->media, (IFM_ETHER | qls_get_optics(ha) | IFM_FDX), 0,
778 NULL);
779 ifmedia_add(&ha->media, (IFM_ETHER | IFM_AUTO), 0, NULL);
780
781 ifmedia_set(&ha->media, (IFM_ETHER | IFM_AUTO));

--- 750 unchanged lines hidden ---
774
775 ifmedia_init(&ha->media, IFM_IMASK, qls_media_change, qls_media_status);
776
777 ifmedia_add(&ha->media, (IFM_ETHER | qls_get_optics(ha) | IFM_FDX), 0,
778 NULL);
779 ifmedia_add(&ha->media, (IFM_ETHER | IFM_AUTO), 0, NULL);
780
781 ifmedia_set(&ha->media, (IFM_ETHER | IFM_AUTO));

--- 750 unchanged lines hidden ---