mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/
synced 2026-04-18 06:33:43 -04:00
ice: Call ice_aq_set_mac_cfg
As per the specification, the driver needs to call set_mac_cfg (opcode 0x0603) to be able to exercise jumbo frames. Call the function during initialization and the post reset rebuild flow. Signed-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
committed by
Jeff Kirsher
parent
28bf26724f
commit
4244910568
@@ -1068,6 +1068,25 @@ struct ice_aqc_set_phy_cfg_data {
|
||||
u8 rsvd1;
|
||||
};
|
||||
|
||||
/* Set MAC Config command data structure (direct 0x0603) */
|
||||
struct ice_aqc_set_mac_cfg {
|
||||
__le16 max_frame_size;
|
||||
u8 params;
|
||||
#define ICE_AQ_SET_MAC_PACE_S 3
|
||||
#define ICE_AQ_SET_MAC_PACE_M (0xF << ICE_AQ_SET_MAC_PACE_S)
|
||||
#define ICE_AQ_SET_MAC_PACE_TYPE_M BIT(7)
|
||||
#define ICE_AQ_SET_MAC_PACE_TYPE_RATE 0
|
||||
#define ICE_AQ_SET_MAC_PACE_TYPE_FIXED ICE_AQ_SET_MAC_PACE_TYPE_M
|
||||
u8 tx_tmr_priority;
|
||||
__le16 tx_tmr_value;
|
||||
__le16 fc_refresh_threshold;
|
||||
u8 drop_opts;
|
||||
#define ICE_AQ_SET_MAC_AUTO_DROP_MASK BIT(0)
|
||||
#define ICE_AQ_SET_MAC_AUTO_DROP_NONE 0
|
||||
#define ICE_AQ_SET_MAC_AUTO_DROP_BLOCKING_PKTS BIT(0)
|
||||
u8 reserved[7];
|
||||
};
|
||||
|
||||
/* Restart AN command data structure (direct 0x0605)
|
||||
* Also used for response, with only the lport_num field present.
|
||||
*/
|
||||
@@ -1774,6 +1793,7 @@ struct ice_aq_desc {
|
||||
struct ice_aqc_download_pkg download_pkg;
|
||||
struct ice_aqc_set_mac_lb set_mac_lb;
|
||||
struct ice_aqc_alloc_free_res_cmd sw_res_ctrl;
|
||||
struct ice_aqc_set_mac_cfg set_mac_cfg;
|
||||
struct ice_aqc_set_event_mask set_event_mask;
|
||||
struct ice_aqc_get_link_status get_link_status;
|
||||
struct ice_aqc_event_lan_overflow lan_overflow;
|
||||
@@ -1870,6 +1890,7 @@ enum ice_adminq_opc {
|
||||
/* PHY commands */
|
||||
ice_aqc_opc_get_phy_caps = 0x0600,
|
||||
ice_aqc_opc_set_phy_cfg = 0x0601,
|
||||
ice_aqc_opc_set_mac_cfg = 0x0603,
|
||||
ice_aqc_opc_restart_an = 0x0605,
|
||||
ice_aqc_opc_get_link_status = 0x0607,
|
||||
ice_aqc_opc_set_event_mask = 0x0613,
|
||||
|
||||
Reference in New Issue
Block a user