provide follow changes:
[o-du/phy.git] / misc / xran-v20.20-dpdk18.08.patch
1 diff -Naur a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c
2 --- a/drivers/net/i40e/i40e_ethdev.c    2018-08-10 05:11:26.000000000 +0800
3 +++ b/drivers/net/i40e/i40e_ethdev.c    2020-03-19 18:58:31.033622891 +0800
4 @@ -2207,7 +2207,7 @@
5         /* Map queues with MSIX interrupt */
6         main_vsi->nb_used_qps = dev->data->nb_rx_queues -
7                 pf->nb_cfg_vmdq_vsi * RTE_LIBRTE_I40E_QUEUE_NUM_PER_VM;
8 -       i40e_vsi_queues_bind_intr(main_vsi, I40E_ITR_INDEX_DEFAULT);
9 +       i40e_vsi_queues_bind_intr(main_vsi, I40E_ITR_INDEX_NONE);
10         i40e_vsi_enable_queues_intr(main_vsi);
11  
12         /* Map VMDQ VSI queues with MSIX interrupt */
13 @@ -2217,6 +2217,10 @@
14                                           I40E_ITR_INDEX_DEFAULT);
15                 i40e_vsi_enable_queues_intr(pf->vmdq[i].vsi);
16         }
17 +       i40e_aq_debug_write_global_register(hw,
18 +                                       0x0012A504,
19 +                                       0, NULL);
20 +
21  
22         /* enable FDIR MSIX interrupt */
23         if (pf->fdir.fdir_vsi) {
24 diff -Naur a/drivers/net/i40e/i40e_ethdev_vf.c b/drivers/net/i40e/i40e_ethdev_vf.c
25 --- a/drivers/net/i40e/i40e_ethdev_vf.c 2018-08-10 05:11:26.000000000 +0800
26 +++ b/drivers/net/i40e/i40e_ethdev_vf.c 2020-03-19 18:59:39.875620796 +0800
27 @@ -640,7 +640,7 @@
28  
29         map_info = (struct virtchnl_irq_map_info *)cmd_buffer;
30         map_info->num_vectors = 1;
31 -       map_info->vecmap[0].rxitr_idx = I40E_ITR_INDEX_DEFAULT;
32 +       map_info->vecmap[0].rxitr_idx = I40E_ITR_INDEX_NONE;
33         map_info->vecmap[0].vsi_id = vf->vsi_res->vsi_id;
34         /* Alway use default dynamic MSIX interrupt */
35         map_info->vecmap[0].vector_id = vector_id;
36 diff -Naur a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c
37 --- a/drivers/net/ixgbe/ixgbe_ethdev.c  2018-08-10 05:11:26.000000000 +0800
38 +++ b/drivers/net/ixgbe/ixgbe_ethdev.c  2020-03-19 19:00:48.164618719 +0800
39 @@ -3705,7 +3705,7 @@
40                  * except for 82598EB, which remains constant.
41                  */
42                 if (dev_conf->txmode.mq_mode == ETH_MQ_TX_NONE &&
43 -                               hw->mac.type != ixgbe_mac_82598EB)
44 +                               hw->mac.type != ixgbe_mac_82598EB && hw->mac.type != ixgbe_mac_82599EB)
45                         dev_info->max_tx_queues = IXGBE_NONE_MODE_TX_NB_QUEUES;
46         }
47         dev_info->min_rx_bufsize = 1024; /* cf BSIZEPACKET in SRRCTL register */