mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-12 00:34:43 +08:00
net: mvneta: Remove unneeded 'weigth' field
The 'weight' field is only used to pass the weigth to napi initialization function. This commit removes the field, and instead uses a fixed value to initialize the napi context. Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
56ecd2cc38
commit
dc03e21a54
@ -283,9 +283,6 @@ struct mvneta_port {
|
|||||||
u32 cause_rx_tx;
|
u32 cause_rx_tx;
|
||||||
struct napi_struct napi;
|
struct napi_struct napi;
|
||||||
|
|
||||||
/* Napi weight */
|
|
||||||
int weight;
|
|
||||||
|
|
||||||
/* Core clock */
|
/* Core clock */
|
||||||
struct clk *clk;
|
struct clk *clk;
|
||||||
u8 mcast_count[256];
|
u8 mcast_count[256];
|
||||||
@ -2968,8 +2965,6 @@ static int mvneta_probe(struct platform_device *pdev)
|
|||||||
dev->ethtool_ops = &mvneta_eth_tool_ops;
|
dev->ethtool_ops = &mvneta_eth_tool_ops;
|
||||||
|
|
||||||
pp = netdev_priv(dev);
|
pp = netdev_priv(dev);
|
||||||
|
|
||||||
pp->weight = MVNETA_RX_POLL_WEIGHT;
|
|
||||||
pp->phy_node = phy_node;
|
pp->phy_node = phy_node;
|
||||||
pp->phy_interface = phy_mode;
|
pp->phy_interface = phy_mode;
|
||||||
|
|
||||||
@ -3030,7 +3025,7 @@ static int mvneta_probe(struct platform_device *pdev)
|
|||||||
if (dram_target_info)
|
if (dram_target_info)
|
||||||
mvneta_conf_mbus_windows(pp, dram_target_info);
|
mvneta_conf_mbus_windows(pp, dram_target_info);
|
||||||
|
|
||||||
netif_napi_add(dev, &pp->napi, mvneta_poll, pp->weight);
|
netif_napi_add(dev, &pp->napi, mvneta_poll, MVNETA_RX_POLL_WEIGHT);
|
||||||
|
|
||||||
dev->features = NETIF_F_SG | NETIF_F_IP_CSUM | NETIF_F_TSO;
|
dev->features = NETIF_F_SG | NETIF_F_IP_CSUM | NETIF_F_TSO;
|
||||||
dev->hw_features |= dev->features;
|
dev->hw_features |= dev->features;
|
||||||
|
Loading…
Reference in New Issue
Block a user