Skip to content

Commit 00418d5

Browse files
Aryan Srivastavadavem330
Aryan Srivastava
authored andcommitted
net: mvpp2: fill-in dev_port attribute
Fill this in so user-space can identify multiple ports on the same CP unit. Signed-off-by: Aryan Srivastava <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent a23ac97 commit 00418d5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c

+1
Original file line numberDiff line numberDiff line change
@@ -6907,6 +6907,7 @@ static int mvpp2_port_probe(struct platform_device *pdev,
69076907
/* 9704 == 9728 - 20 and rounding to 8 */
69086908
dev->max_mtu = MVPP2_BM_JUMBO_PKT_SIZE;
69096909
device_set_node(&dev->dev, port_fwnode);
6910+
dev->dev_port = port->id;
69106911

69116912
port->pcs_gmac.ops = &mvpp2_phylink_gmac_pcs_ops;
69126913
port->pcs_gmac.neg_mode = true;

0 commit comments

Comments
 (0)