Skip to content

Commit

Permalink
net: ethernet: ti: am65-cpsw: move to pf_p0_rx_ptype_rrobin init in p…
Browse files Browse the repository at this point in the history
…robe

The pf_p0_rx_ptype_rrobin is global parameter so move its initialization in
probe.

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Grygorii Strashko authored and David S. Miller committed Jun 30, 2020
1 parent 7bcffde commit 5182404
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/net/ethernet/ti/am65-cpsw-nuss.c
Original file line number Diff line number Diff line change
Expand Up @@ -1894,8 +1894,6 @@ static int am65_cpsw_nuss_init_ndev_2g(struct am65_cpsw_common *common)
netif_napi_add(port->ndev, &common->napi_rx,
am65_cpsw_nuss_rx_poll, NAPI_POLL_WEIGHT);

common->pf_p0_rx_ptype_rrobin = false;

return ret;
}

Expand Down Expand Up @@ -2038,6 +2036,7 @@ static int am65_cpsw_nuss_probe(struct platform_device *pdev)
common->rx_flow_id_base = -1;
init_completion(&common->tdown_complete);
common->tx_ch_num = 1;
common->pf_p0_rx_ptype_rrobin = false;

ret = dma_coerce_mask_and_coherent(dev, DMA_BIT_MASK(48));
if (ret) {
Expand Down

0 comments on commit 5182404

Please sign in to comment.