The branch main has been updated by erj:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=b7b40e4a38d8521a40494d868d0870dfb9d6d77d

commit b7b40e4a38d8521a40494d868d0870dfb9d6d77d
Author:     Krzysztof Galazka <[email protected]>
AuthorDate: 2022-05-24 16:08:57 +0000
Commit:     Eric Joyner <[email protected]>
CommitDate: 2022-05-24 16:12:49 +0000

    ixl(4): Add support for I710 devices and remove non-inclusive language
    
    Intel introduces a new line of 1G Ethernet adapters
    with Device ID 0x0DD2. While at that also remove
    non-inclusive language.
    
    Signed-off-by: Eric Joyner <[email protected]>
    
    Reviewed by:    kbowling@
    Tested by:      [email protected]
    MFC after:      1 week
    Sponsored by:   Intel Corporation
    Differential Revision:  https://reviews.freebsd.org/D34924
---
 sys/dev/ixl/i40e_common.c | 7 +++++--
 sys/dev/ixl/i40e_devids.h | 4 +++-
 sys/dev/ixl/i40e_status.h | 2 +-
 sys/dev/ixl/if_ixl.c      | 3 ++-
 4 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/sys/dev/ixl/i40e_common.c b/sys/dev/ixl/i40e_common.c
index 1a7ec04f3089..c8d97f395efd 100644
--- a/sys/dev/ixl/i40e_common.c
+++ b/sys/dev/ixl/i40e_common.c
@@ -66,6 +66,7 @@ enum i40e_status_code i40e_set_mac_type(struct i40e_hw *hw)
                case I40E_DEV_ID_10G_B:
                case I40E_DEV_ID_10G_SFP:
                case I40E_DEV_ID_5G_BASE_T_BC:
+               case I40E_DEV_ID_1G_BASE_T_BC:
                case I40E_DEV_ID_20G_KR2:
                case I40E_DEV_ID_20G_KR2_A:
                case I40E_DEV_ID_25G_B:
@@ -195,8 +196,8 @@ const char *i40e_stat_str(struct i40e_hw *hw, enum 
i40e_status_code stat_err)
                return "I40E_ERR_INVALID_MAC_ADDR";
        case I40E_ERR_DEVICE_NOT_SUPPORTED:
                return "I40E_ERR_DEVICE_NOT_SUPPORTED";
-       case I40E_ERR_MASTER_REQUESTS_PENDING:
-               return "I40E_ERR_MASTER_REQUESTS_PENDING";
+       case I40E_ERR_PRIMARY_REQUESTS_PENDING:
+               return "I40E_ERR_PRIMARY_REQUESTS_PENDING";
        case I40E_ERR_INVALID_LINK_SETTINGS:
                return "I40E_ERR_INVALID_LINK_SETTINGS";
        case I40E_ERR_AUTONEG_NOT_COMPLETE:
@@ -6670,6 +6671,7 @@ enum i40e_status_code i40e_write_phy_register(struct 
i40e_hw *hw,
        case I40E_DEV_ID_10G_BASE_T4:
        case I40E_DEV_ID_10G_BASE_T_BC:
        case I40E_DEV_ID_5G_BASE_T_BC:
+       case I40E_DEV_ID_1G_BASE_T_BC:
        case I40E_DEV_ID_10G_BASE_T_X722:
        case I40E_DEV_ID_25G_B:
        case I40E_DEV_ID_25G_SFP28:
@@ -6708,6 +6710,7 @@ enum i40e_status_code i40e_read_phy_register(struct 
i40e_hw *hw,
        case I40E_DEV_ID_10G_BASE_T4:
        case I40E_DEV_ID_10G_BASE_T_BC:
        case I40E_DEV_ID_5G_BASE_T_BC:
+       case I40E_DEV_ID_1G_BASE_T_BC:
        case I40E_DEV_ID_10G_BASE_T_X722:
        case I40E_DEV_ID_25G_B:
        case I40E_DEV_ID_25G_SFP28:
diff --git a/sys/dev/ixl/i40e_devids.h b/sys/dev/ixl/i40e_devids.h
index bb6cfba071da..60fe881e4712 100644
--- a/sys/dev/ixl/i40e_devids.h
+++ b/sys/dev/ixl/i40e_devids.h
@@ -58,9 +58,11 @@
 #define I40E_DEV_ID_10G_B              0x104F
 #define I40E_DEV_ID_10G_SFP            0x104E
 #define I40E_DEV_ID_5G_BASE_T_BC       0x101F
+#define I40E_DEV_ID_1G_BASE_T_BC       0x0DD2
 #define I40E_IS_X710TL_DEVICE(d) \
        (((d) == I40E_DEV_ID_10G_BASE_T_BC) || \
-       ((d) == I40E_DEV_ID_5G_BASE_T_BC))
+       ((d) == I40E_DEV_ID_5G_BASE_T_BC) || \
+       ((d) == I40E_DEV_ID_1G_BASE_T_BC))
 #define I40E_DEV_ID_VF                 0x154C
 #define I40E_DEV_ID_VF_HV              0x1571
 #define I40E_DEV_ID_ADAPTIVE_VF                0x1889
diff --git a/sys/dev/ixl/i40e_status.h b/sys/dev/ixl/i40e_status.h
index 16dd569c60db..abba820ff8bb 100644
--- a/sys/dev/ixl/i40e_status.h
+++ b/sys/dev/ixl/i40e_status.h
@@ -49,7 +49,7 @@ enum i40e_status_code {
        I40E_ERR_ADAPTER_STOPPED                = -9,
        I40E_ERR_INVALID_MAC_ADDR               = -10,
        I40E_ERR_DEVICE_NOT_SUPPORTED           = -11,
-       I40E_ERR_MASTER_REQUESTS_PENDING        = -12,
+       I40E_ERR_PRIMARY_REQUESTS_PENDING       = -12,
        I40E_ERR_INVALID_LINK_SETTINGS          = -13,
        I40E_ERR_AUTONEG_NOT_COMPLETE           = -14,
        I40E_ERR_RESET_FAILED                   = -15,
diff --git a/sys/dev/ixl/if_ixl.c b/sys/dev/ixl/if_ixl.c
index 975aaef0d5c6..cb3ce72a95ed 100644
--- a/sys/dev/ixl/if_ixl.c
+++ b/sys/dev/ixl/if_ixl.c
@@ -49,7 +49,7 @@
  *********************************************************************/
 #define IXL_DRIVER_VERSION_MAJOR       2
 #define IXL_DRIVER_VERSION_MINOR       3
-#define IXL_DRIVER_VERSION_BUILD       1
+#define IXL_DRIVER_VERSION_BUILD       2
 
 #define IXL_DRIVER_VERSION_STRING                      \
     __XSTRING(IXL_DRIVER_VERSION_MAJOR) "."            \
@@ -86,6 +86,7 @@ static pci_vendor_info_t ixl_vendor_info_array[] =
        PVIDV(I40E_INTEL_VENDOR_ID, I40E_DEV_ID_10G_SFP, "Intel(R) Ethernet 
Controller X710 for 10GbE SFP+"),
        PVIDV(I40E_INTEL_VENDOR_ID, I40E_DEV_ID_10G_B, "Intel(R) Ethernet 
Controller X710 for 10GbE backplane"),
        PVIDV(I40E_INTEL_VENDOR_ID, I40E_DEV_ID_5G_BASE_T_BC, "Intel(R) 
Ethernet Controller V710 for 5GBASE-T"),
+       PVIDV(I40E_INTEL_VENDOR_ID, I40E_DEV_ID_1G_BASE_T_BC, "Intel(R) 
Ethernet Controller I710 for 1GBASE-T"),
        /* required last entry */
        PVID_END
 };

Reply via email to