mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-21 20:47:12 +07:00
nfp: don't use netdev_warn() before netdev is registered
Fix warning which was using netdev_warn() instead of dev_warn() to early. Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
7d2da60382
commit
87232d9615
@ -336,9 +336,9 @@ nfp_net_irqs_assign(struct nfp_net *nn, struct msix_entry *irq_entries,
|
||||
|
||||
if (dp->num_rx_rings > dp->num_r_vecs ||
|
||||
dp->num_tx_rings > dp->num_r_vecs)
|
||||
nn_warn(nn, "More rings (%d,%d) than vectors (%d).\n",
|
||||
dp->num_rx_rings, dp->num_tx_rings,
|
||||
dp->num_r_vecs);
|
||||
dev_warn(nn->dp.dev, "More rings (%d,%d) than vectors (%d).\n",
|
||||
dp->num_rx_rings, dp->num_tx_rings,
|
||||
dp->num_r_vecs);
|
||||
|
||||
dp->num_rx_rings = min(dp->num_r_vecs, dp->num_rx_rings);
|
||||
dp->num_tx_rings = min(dp->num_r_vecs, dp->num_tx_rings);
|
||||
|
Loading…
Reference in New Issue
Block a user