[PATCH v2] net: qcom/emac: Allocate buffers from local node

2018-05-17 Thread Hemanth Puranik
Currently we use non-NUMA aware allocation for TPD and RRD buffers, this patch modifies to use NUMA friendly allocation. Signed-off-by: Hemanth Puranik <hpura...@codeaurora.org> --- Change since v1: - Addressed comments related to ordering drivers/net/ethernet/qualcomm/emac/emac-mac

[PATCH] net: qcom/emac: Allocate buffers from local node

2018-05-17 Thread Hemanth Puranik
Currently we use non-NUMA aware allocation for TPD and RRD buffers, this patch modifies to use NUMA friendly allocation. Signed-off-by: Hemanth Puranik <hpura...@codeaurora.org> --- drivers/net/ethernet/qualcomm/emac/emac-mac.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-)

[PATCH] net: qcom/emac: Encapsulate sgmii ops under one structure

2018-05-15 Thread Hemanth Puranik
This patch introduces ops structure for sgmii, This by ensures that we do not need dummy functions in case of emulation platforms. Signed-off-by: Hemanth Puranik <hpura...@codeaurora.org> --- drivers/net/ethernet/qualcomm/emac/emac-mac.c | 5 +- drivers/net/ethernet/qualcomm/ema

[PATCH] net: qcom/emac: Use proper free methods during TX

2018-03-05 Thread Hemanth Puranik
freeing the buffers. Signed-off-by: Hemanth Puranik <hpura...@codeaurora.org> --- drivers/net/ethernet/qualcomm/emac/emac-mac.c | 23 ++- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/drivers/net/ethernet/qualcomm/emac/emac-mac.c b/drivers/net/ethernet/qu

[PATCH] net: qcom/emac: Change the order of mac up and sgmii open

2017-12-17 Thread Hemanth Puranik
for delay based tasks to be done in sgmii open which will result in NETDEV watchdog - As per the documentation the order of init should be sgmii, mac, rings and DMA Signed-off-by: Hemanth Puranik <hpura...@codeaurora.org> --- drivers/net/ethernet/qualcomm/emac/emac.c | 6 +++--- 1

[PATCH] net: qcom/emac: Reduce timeout for mdio read/write

2017-12-15 Thread Hemanth Puranik
Currently mdio read/write takes around ~115us as the timeout between status check is set to 100us. By reducing the timeout to 1us mdio read/write takes ~15us to complete. This improves the link up event response. Signed-off-by: Hemanth Puranik <hpura...@codeaurora.org> --- drivers/net/et