]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/ice/base/ice_common.c
net/ice/base: enable jumbo frame during HW init
[dpdk.git] / drivers / net / ice / base / ice_common.c
index 2744c3d119340fa5f42be3c65142b83c973b32e5..ad9df0d3a226d25be4aae15d419260b23d3a8630 100644 (file)
@@ -994,6 +994,12 @@ enum ice_status ice_init_hw(struct ice_hw *hw)
 
        if (status)
                goto err_unroll_fltr_mgmt_struct;
+
+       /* enable jumbo frame support at MAC level */
+       status = ice_aq_set_mac_cfg(hw, ICE_AQ_SET_MAC_FRAME_SIZE_MAX, NULL);
+       if (status)
+               goto err_unroll_fltr_mgmt_struct;
+
        /* Obtain counter base index which would be used by flow director */
        status = ice_alloc_fd_res_cntr(hw, &hw->fd_ctr_base);
        if (status)