In Axi Ethernet MCDMA configuration with the existing
driver we are hard coding max 16 queues for num_queues
private structure variable it should be user configuriable.
Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
Acked-by: Harini Katakam <harinik@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
lp->ndev = ndev;
lp->dev = &pdev->dev;
lp->options = XAE_OPTION_DEFAULTS;
- lp->num_queues = XAE_MAX_QUEUES;
+ lp->num_queues = num_queues;
lp->is_tsn = of_property_read_bool(pdev->dev.of_node, "xlnx,tsn");
/* Map device registers */
ethres = platform_get_resource(pdev, IORESOURCE_MEM, 0);