|
74 | 74 | #include "fec.h"
|
75 | 75 |
|
76 | 76 | static void set_multicast_list(struct net_device *ndev);
|
77 |
| -static void fec_enet_itr_coal_init(struct net_device *ndev); |
| 77 | +static void fec_enet_itr_coal_set(struct net_device *ndev); |
78 | 78 |
|
79 | 79 | #define DRIVER_NAME "fec"
|
80 | 80 |
|
@@ -1220,8 +1220,7 @@ fec_restart(struct net_device *ndev)
|
1220 | 1220 | writel(0, fep->hwp + FEC_IMASK);
|
1221 | 1221 |
|
1222 | 1222 | /* Init the interrupt coalescing */
|
1223 |
| - fec_enet_itr_coal_init(ndev); |
1224 |
| - |
| 1223 | + fec_enet_itr_coal_set(ndev); |
1225 | 1224 | }
|
1226 | 1225 |
|
1227 | 1226 | static int fec_enet_ipc_handle_init(struct fec_enet_private *fep)
|
@@ -2856,19 +2855,6 @@ static int fec_enet_set_coalesce(struct net_device *ndev,
|
2856 | 2855 | return 0;
|
2857 | 2856 | }
|
2858 | 2857 |
|
2859 |
| -static void fec_enet_itr_coal_init(struct net_device *ndev) |
2860 |
| -{ |
2861 |
| - struct ethtool_coalesce ec; |
2862 |
| - |
2863 |
| - ec.rx_coalesce_usecs = FEC_ITR_ICTT_DEFAULT; |
2864 |
| - ec.rx_max_coalesced_frames = FEC_ITR_ICFT_DEFAULT; |
2865 |
| - |
2866 |
| - ec.tx_coalesce_usecs = FEC_ITR_ICTT_DEFAULT; |
2867 |
| - ec.tx_max_coalesced_frames = FEC_ITR_ICFT_DEFAULT; |
2868 |
| - |
2869 |
| - fec_enet_set_coalesce(ndev, &ec, NULL, NULL); |
2870 |
| -} |
2871 |
| - |
2872 | 2858 | static int fec_enet_get_tunable(struct net_device *netdev,
|
2873 | 2859 | const struct ethtool_tunable *tuna,
|
2874 | 2860 | void *data)
|
@@ -3623,6 +3609,10 @@ static int fec_enet_init(struct net_device *ndev)
|
3623 | 3609 | fep->rx_align = 0x3;
|
3624 | 3610 | fep->tx_align = 0x3;
|
3625 | 3611 | #endif
|
| 3612 | + fep->rx_pkts_itr = FEC_ITR_ICFT_DEFAULT; |
| 3613 | + fep->tx_pkts_itr = FEC_ITR_ICFT_DEFAULT; |
| 3614 | + fep->rx_time_itr = FEC_ITR_ICTT_DEFAULT; |
| 3615 | + fep->tx_time_itr = FEC_ITR_ICTT_DEFAULT; |
3626 | 3616 |
|
3627 | 3617 | /* Check mask of the streaming and coherent API */
|
3628 | 3618 | ret = dma_set_mask_and_coherent(&fep->pdev->dev, DMA_BIT_MASK(32));
|
|
0 commit comments