Print this page
Update i40e for new devices, prototype changes
*** 13,22 ****
--- 13,23 ----
* Copyright 2015 OmniTI Computer Consulting, Inc. All rights reserved.
* Copyright 2019 Joyent, Inc.
* Copyright 2017 Tegile Systems, Inc. All rights reserved.
* Copyright 2020 RackTop Systems, Inc.
* Copyright 2020 Ryan Zezeski
+ * Copyright 2021 Oxide Computer Company
*/
/*
* i40e - Intel 10/40 Gb Ethernet driver
*
*** 588,597 ****
--- 589,604 ----
i40e->i40e_link_speed = 100;
break;
case I40E_LINK_SPEED_1GB:
i40e->i40e_link_speed = 1000;
break;
+ case I40E_LINK_SPEED_2_5GB:
+ i40e->i40e_link_speed = 2500;
+ break;
+ case I40E_LINK_SPEED_5GB:
+ i40e->i40e_link_speed = 5000;
+ break;
case I40E_LINK_SPEED_10GB:
i40e->i40e_link_speed = 10000;
break;
case I40E_LINK_SPEED_20GB:
i40e->i40e_link_speed = 20000;
*** 1345,1355 ****
i40e_error(i40e, "failed to configure hardware memory cache: "
"%d", rc);
return (B_FALSE);
}
! (void) i40e_aq_stop_lldp(hw, TRUE, NULL);
rc = i40e_get_mac_addr(hw, hw->mac.addr);
if (rc != I40E_SUCCESS) {
i40e_error(i40e, "failed to retrieve hardware mac address: %d",
rc);
--- 1352,1362 ----
i40e_error(i40e, "failed to configure hardware memory cache: "
"%d", rc);
return (B_FALSE);
}
! (void) i40e_aq_stop_lldp(hw, TRUE, FALSE, NULL);
rc = i40e_get_mac_addr(hw, hw->mac.addr);
if (rc != I40E_SUCCESS) {
i40e_error(i40e, "failed to retrieve hardware mac address: %d",
rc);
*** 3176,3186 ****
i40e_error(i40e, "failed to set default VSI: %d", err);
rc = B_FALSE;
goto done;
}
! err = i40e_aq_set_mac_config(hw, i40e->i40e_frame_max, B_TRUE, 0, NULL);
if (err != I40E_SUCCESS) {
i40e_error(i40e, "failed to set MAC config: %d", err);
rc = B_FALSE;
goto done;
}
--- 3183,3194 ----
i40e_error(i40e, "failed to set default VSI: %d", err);
rc = B_FALSE;
goto done;
}
! err = i40e_aq_set_mac_config(hw, i40e->i40e_frame_max, B_TRUE, 0,
! B_FALSE, NULL);
if (err != I40E_SUCCESS) {
i40e_error(i40e, "failed to set MAC config: %d", err);
rc = B_FALSE;
goto done;
}