[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1399141622-30654-1-git-send-email-ezequiel.garcia@free-electrons.com>
Date: Sat, 3 May 2014 15:26:55 -0300
From: Ezequiel Garcia <ezequiel.garcia@...e-electrons.com>
To: <linux-arm-kernel@...ts.infradead.org>, <netdev@...r.kernel.org>,
Willy Tarreau <w@....eu>,
Thomas Petazzoni <thomas.petazzoni@...e-electrons.com>
Cc: "David S. Miller" <davem@...emloft.net>,
Jason Cooper <jason@...edaemon.net>,
Gregory Clement <gregory.clement@...e-electrons.com>,
Sebastian Hesselbarth <sebastian.hesselbarth@...il.com>,
Andrew Lunn <andrew@...n.ch>,
Tawfik Bayouk <tawfik@...vell.com>,
Lior Amsalem <alior@...vell.com>,
Ezequiel Garcia <ezequiel.garcia@...e-electrons.com>
Subject: [PATCH 0/7] net: ethernet: marvell: Assorted fixes
This series consists of cleanups and minor improvements on mvneta, mv643xx_eth
and mvmdio drivers. None of the patches imply any functionality change, except
for the patch six "Change the number of default rx queues to one".
This patch reduces the driver's allocated resources and makes the multiqueue
path in the poll function not get taken. In other words, in the poll():
static int mvneta_poll(struct napi_struct *napi, int budget)
{
/* .. */
if (rxq_number > 1) {
/* .. */
} else {
rx_done = mvneta_rx(pp, budget, &pp->rxqs[rxq_def]);
budget -= rx_done;
}
}
the first block of the 'if' won't be taken. This should be completely harmless,
as the driver only supports the first queue, by requiring 'rxq_def' to be '0'.
This is explained by a comment in the code:
/* Our multiqueue support is not complete, so for now, only
* allow the usage of the first RX queue
*/
if (rxq_def != 0) {
dev_err(&pdev->dev, "Invalid rxq_def argument: %d\n", rxq_def);
return -EINVAL;
}
Willy, Thomas: given you've done some work on these drivers, could you review
the series and comment?
Ezequiel Garcia (7):
net: mv643xx_eth: Simplify mv643xx_eth_adjust_link()
net: mvneta: Clean-up mvneta_tx_frag_process()
net: mvneta: Check tx queue setup error in mvneta_change_mtu()
net: mvneta: Clean-up mvneta_init()
net: mvneta: Use prepare/commit API to simplify MAC address setting
net: mvneta: Change the number of default rx queues to one
net: mvmdio: Use devm_* API to simplify the code
drivers/net/ethernet/marvell/mv643xx_eth.c | 15 ++----
drivers/net/ethernet/marvell/mvmdio.c | 18 +++----
drivers/net/ethernet/marvell/mvneta.c | 86 +++++++++++++-----------------
3 files changed, 47 insertions(+), 72 deletions(-)
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists