if_ixl.c (b4a7ce0690aedd9763b3b47ee7fcdb421f0434c7) | if_ixl.c (2984a8dd7c8e1885633d10be99cb97fae3e7baaf) |
---|---|
1/****************************************************************************** 2 3 Copyright (c) 2013-2018, Intel Corporation 4 All rights reserved. 5 6 Redistribution and use in source and binary forms, with or without 7 modification, are permitted provided that the following conditions are met: 8 --- 34 unchanged lines hidden (view full) --- 43#ifdef PCI_IOV 44#include "ixl_pf_iov.h" 45#endif 46 47/********************************************************************* 48 * Driver version 49 *********************************************************************/ 50#define IXL_DRIVER_VERSION_MAJOR 2 | 1/****************************************************************************** 2 3 Copyright (c) 2013-2018, Intel Corporation 4 All rights reserved. 5 6 Redistribution and use in source and binary forms, with or without 7 modification, are permitted provided that the following conditions are met: 8 --- 34 unchanged lines hidden (view full) --- 43#ifdef PCI_IOV 44#include "ixl_pf_iov.h" 45#endif 46 47/********************************************************************* 48 * Driver version 49 *********************************************************************/ 50#define IXL_DRIVER_VERSION_MAJOR 2 |
51#define IXL_DRIVER_VERSION_MINOR 2 | 51#define IXL_DRIVER_VERSION_MINOR 3 |
52#define IXL_DRIVER_VERSION_BUILD 0 53 54#define IXL_DRIVER_VERSION_STRING \ 55 __XSTRING(IXL_DRIVER_VERSION_MAJOR) "." \ 56 __XSTRING(IXL_DRIVER_VERSION_MINOR) "." \ 57 __XSTRING(IXL_DRIVER_VERSION_BUILD) "-k" 58 59/********************************************************************* --- 17 unchanged lines hidden (view full) --- 77 PVIDV(I40E_INTEL_VENDOR_ID, I40E_DEV_ID_KX_X722, "Intel(R) Ethernet Connection X722 for 10GbE backplane"), 78 PVIDV(I40E_INTEL_VENDOR_ID, I40E_DEV_ID_QSFP_X722, "Intel(R) Ethernet Connection X722 for 10GbE QSFP+"), 79 PVIDV(I40E_INTEL_VENDOR_ID, I40E_DEV_ID_SFP_X722, "Intel(R) Ethernet Connection X722 for 10GbE SFP+"), 80 PVIDV(I40E_INTEL_VENDOR_ID, I40E_DEV_ID_1G_BASE_T_X722, "Intel(R) Ethernet Connection X722 for 1GbE"), 81 PVIDV(I40E_INTEL_VENDOR_ID, I40E_DEV_ID_10G_BASE_T_X722, "Intel(R) Ethernet Connection X722 for 10GBASE-T"), 82 PVIDV(I40E_INTEL_VENDOR_ID, I40E_DEV_ID_SFP_I_X722, "Intel(R) Ethernet Connection X722 for 10GbE SFP+"), 83 PVIDV(I40E_INTEL_VENDOR_ID, I40E_DEV_ID_25G_B, "Intel(R) Ethernet Controller XXV710 for 25GbE backplane"), 84 PVIDV(I40E_INTEL_VENDOR_ID, I40E_DEV_ID_25G_SFP28, "Intel(R) Ethernet Controller XXV710 for 25GbE SFP28"), | 52#define IXL_DRIVER_VERSION_BUILD 0 53 54#define IXL_DRIVER_VERSION_STRING \ 55 __XSTRING(IXL_DRIVER_VERSION_MAJOR) "." \ 56 __XSTRING(IXL_DRIVER_VERSION_MINOR) "." \ 57 __XSTRING(IXL_DRIVER_VERSION_BUILD) "-k" 58 59/********************************************************************* --- 17 unchanged lines hidden (view full) --- 77 PVIDV(I40E_INTEL_VENDOR_ID, I40E_DEV_ID_KX_X722, "Intel(R) Ethernet Connection X722 for 10GbE backplane"), 78 PVIDV(I40E_INTEL_VENDOR_ID, I40E_DEV_ID_QSFP_X722, "Intel(R) Ethernet Connection X722 for 10GbE QSFP+"), 79 PVIDV(I40E_INTEL_VENDOR_ID, I40E_DEV_ID_SFP_X722, "Intel(R) Ethernet Connection X722 for 10GbE SFP+"), 80 PVIDV(I40E_INTEL_VENDOR_ID, I40E_DEV_ID_1G_BASE_T_X722, "Intel(R) Ethernet Connection X722 for 1GbE"), 81 PVIDV(I40E_INTEL_VENDOR_ID, I40E_DEV_ID_10G_BASE_T_X722, "Intel(R) Ethernet Connection X722 for 10GBASE-T"), 82 PVIDV(I40E_INTEL_VENDOR_ID, I40E_DEV_ID_SFP_I_X722, "Intel(R) Ethernet Connection X722 for 10GbE SFP+"), 83 PVIDV(I40E_INTEL_VENDOR_ID, I40E_DEV_ID_25G_B, "Intel(R) Ethernet Controller XXV710 for 25GbE backplane"), 84 PVIDV(I40E_INTEL_VENDOR_ID, I40E_DEV_ID_25G_SFP28, "Intel(R) Ethernet Controller XXV710 for 25GbE SFP28"), |
85 PVIDV(I40E_INTEL_VENDOR_ID, I40E_DEV_ID_10G_BASE_T_BC, "Intel(R) Ethernet Controller X710 for 10GBASE-T"), 86 PVIDV(I40E_INTEL_VENDOR_ID, I40E_DEV_ID_10G_SFP, "Intel(R) Ethernet Controller X710 for 10GbE SFP+"), 87 PVIDV(I40E_INTEL_VENDOR_ID, I40E_DEV_ID_10G_B, "Intel(R) Ethernet Controller X710 for 10GbE backplane"), 88 PVIDV(I40E_INTEL_VENDOR_ID, I40E_DEV_ID_5G_BASE_T_BC, "Intel(R) Ethernet Controller V710 for 5GBASE-T"), |
|
85 /* required last entry */ 86 PVID_END 87}; 88 89/********************************************************************* 90 * Function prototypes 91 *********************************************************************/ 92/*** IFLIB interface ***/ --- 501 unchanged lines hidden (view full) --- 594 595 /* Disable LLDP from the firmware for certain NVM versions */ 596 if (((pf->hw.aq.fw_maj_ver == 4) && (pf->hw.aq.fw_min_ver < 3)) || 597 (pf->hw.aq.fw_maj_ver < 4)) { 598 i40e_aq_stop_lldp(hw, true, false, NULL); 599 pf->state |= IXL_PF_STATE_FW_LLDP_DISABLED; 600 } 601 | 89 /* required last entry */ 90 PVID_END 91}; 92 93/********************************************************************* 94 * Function prototypes 95 *********************************************************************/ 96/*** IFLIB interface ***/ --- 501 unchanged lines hidden (view full) --- 598 599 /* Disable LLDP from the firmware for certain NVM versions */ 600 if (((pf->hw.aq.fw_maj_ver == 4) && (pf->hw.aq.fw_min_ver < 3)) || 601 (pf->hw.aq.fw_maj_ver < 4)) { 602 i40e_aq_stop_lldp(hw, true, false, NULL); 603 pf->state |= IXL_PF_STATE_FW_LLDP_DISABLED; 604 } 605 |
606 /* Try enabling Energy Efficient Ethernet (EEE) mode */ 607 if (i40e_enable_eee(hw, true) == I40E_SUCCESS) 608 atomic_set_32(&pf->state, IXL_PF_STATE_EEE_ENABLED); 609 else 610 atomic_clear_32(&pf->state, IXL_PF_STATE_EEE_ENABLED); 611 |
|
602 /* Get MAC addresses from hardware */ 603 i40e_get_mac_addr(hw, hw->mac.addr); 604 error = i40e_validate_mac_addr(hw->mac.addr); 605 if (error) { 606 device_printf(dev, "validate_mac_addr failed: %d\n", error); 607 goto err_mac_hmc; 608 } 609 bcopy(hw->mac.addr, hw->mac.perm_addr, ETHER_ADDR_LEN); --- 876 unchanged lines hidden (view full) --- 1486 ifmr->ifm_active |= IFM_1000_SX; 1487 break; 1488 case I40E_PHY_TYPE_1000BASE_LX: 1489 ifmr->ifm_active |= IFM_1000_LX; 1490 break; 1491 case I40E_PHY_TYPE_1000BASE_T_OPTICAL: 1492 ifmr->ifm_active |= IFM_1000_T; 1493 break; | 612 /* Get MAC addresses from hardware */ 613 i40e_get_mac_addr(hw, hw->mac.addr); 614 error = i40e_validate_mac_addr(hw->mac.addr); 615 if (error) { 616 device_printf(dev, "validate_mac_addr failed: %d\n", error); 617 goto err_mac_hmc; 618 } 619 bcopy(hw->mac.addr, hw->mac.perm_addr, ETHER_ADDR_LEN); --- 876 unchanged lines hidden (view full) --- 1496 ifmr->ifm_active |= IFM_1000_SX; 1497 break; 1498 case I40E_PHY_TYPE_1000BASE_LX: 1499 ifmr->ifm_active |= IFM_1000_LX; 1500 break; 1501 case I40E_PHY_TYPE_1000BASE_T_OPTICAL: 1502 ifmr->ifm_active |= IFM_1000_T; 1503 break; |
1504 /* 2.5 G */ 1505 case I40E_PHY_TYPE_2_5GBASE_T: 1506 ifmr->ifm_active |= IFM_2500_T; 1507 break; 1508 /* 5 G */ 1509 case I40E_PHY_TYPE_5GBASE_T: 1510 ifmr->ifm_active |= IFM_5000_T; 1511 break; |
|
1494 /* 10 G */ 1495 case I40E_PHY_TYPE_10GBASE_SFPP_CU: 1496 ifmr->ifm_active |= IFM_10G_TWINAX; 1497 break; 1498 case I40E_PHY_TYPE_10GBASE_SR: 1499 ifmr->ifm_active |= IFM_10G_SR; 1500 break; 1501 case I40E_PHY_TYPE_10GBASE_LR: --- 344 unchanged lines hidden --- | 1512 /* 10 G */ 1513 case I40E_PHY_TYPE_10GBASE_SFPP_CU: 1514 ifmr->ifm_active |= IFM_10G_TWINAX; 1515 break; 1516 case I40E_PHY_TYPE_10GBASE_SR: 1517 ifmr->ifm_active |= IFM_10G_SR; 1518 break; 1519 case I40E_PHY_TYPE_10GBASE_LR: --- 344 unchanged lines hidden --- |