ing a non-zero rx queue depth dts
binding of the corresponding interface). This patch
removes the rx buffer size configuration capability.
Signed-off-by: WingMan Kwok
---
drivers/net/ethernet/ti/netcp.h |1 -
drivers/net/ethernet/ti/netcp_core.c | 35 +---
This patch makes the function __netdev_alloc_frag() non-static and
exports it so that drivers that need to specify additional flags,
such as __GFP_DMA, can use it. The currently exported function,
netdev_alloc_frag() doesn't allow passing in gfp_mask flags.
Signed-off-by: WingMan Kwok
Signe
The Keystone II DMA hardware can only access addresses in the
lower 2 GiB of SDRAM. This patch makes sure the RX buffers are
allocated using the __GFP_DMA flag so they meet this requirement.
Signed-off-by: WingMan Kwok
Signed-off-by: Reece R. Pollack
---
drivers/net/ethernet/ti/netcp_core.c
proper action. The flag can be
enabled in the corresponding netcp interface dts binding
as efuse-mac = <2> under the corresponding netcp
interface node.
Signed-off-by: WingMan Kwok
---
.../devicetree/bindings/net/keystone-netcp.txt |6 +-
drivers/net/ethernet/ti/netcp_
: WingMan Kwok
---
This patch depends on the patch set
Subject: [net-next PATCH v1 0/6] net: netcp: Bug fixes of CPSW statistics
collection
submitted earlier.
drivers/net/ethernet/ti/netcp.h |1 +
drivers/net/ethernet/ti/netcp_ethss.c | 18 ++
drivers/net/ethernet/ti
This patch set contains bug fixes and enhencements of hw ethernet
statistics processing on TI's Keystone2 CPSW ethernet switches.
v1: Removes unused defines in PATCH 3/6 based on reviewer's comment
WingMan Kwok (6):
net: netcp: Fixes the use of spin_lock_bh in timer function
This patch fixes a bug in which the timer routine synchronized
against the ethtool-triggered statistics updates with spin_lock_bh().
A timer function is itself a bottom-half, so this should be
spin_lock().
Signed-off-by: WingMan Kwok
---
drivers/net/ethernet/ti/netcp_ethss.c |5 +++--
1
whole hw statistics modules,
instead of the size of statistics-entries-interested-in (i.e. et_stats),
for internal storage. This patch fixes that.
Signed-off-by: WingMan Kwok
---
drivers/net/ethernet/ti/netcp_ethss.c | 46 +++--
1 file changed, 21 insertions(+), 25
one base, while modules 1 and 3 should point to the
other.
Signed-off-by: WingMan Kwok
---
drivers/net/ethernet/ti/netcp_ethss.c |6 +-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/ti/netcp_ethss.c
b/drivers/net/ethernet/ti/netcp_ethss.c
index
This patch adds the missing statistics for the host
and slave ports of the CPSW on K2L and K2E platforms.
Signed-off-by: WingMan Kwok
---
drivers/net/ethernet/ti/netcp_ethss.c | 177 -
1 file changed, 174 insertions(+), 3 deletions(-)
diff --git a/drivers/net
In certain applications it's beneficial to allow the CPSW h/w
stats counters to continue to increment even while the kernel
polls them. This patch implements this behavior for both 1G
and 10G ethernet subsystem modules.
Signed-off-by: WingMan Kwok
---
drivers/net/ethernet/ti/netcp_et
Different Keystone2 platforms have different number and
layouts of hw statistics modules. This patch consolidates
the statistics processing of different Keystone2 platforms
for easy maintenance.
Signed-off-by: WingMan Kwok
---
drivers/net/ethernet/ti/netcp_ethss.c | 99
one base, while modules 1 and 3 should point to the
other.
Signed-off-by: WingMan Kwok
---
drivers/net/ethernet/ti/netcp_ethss.c |6 +-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/ti/netcp_ethss.c
b/drivers/net/ethernet/ti/netcp_ethss.c
index
This patch fixes a bug in which the timer routine synchronized
against the ethtool-triggered statistics updates with spin_lock_bh().
A timer function is itself a bottom-half, so this should be
spin_lock().
Signed-off-by: WingMan Kwok
---
drivers/net/ethernet/ti/netcp_ethss.c |5 +++--
1
whole hw statistics modules,
instead of the size of statistics-entries-interested-in (i.e. et_stats),
for internal storage. This patch fixes that.
Signed-off-by: WingMan Kwok
---
drivers/net/ethernet/ti/netcp_ethss.c | 42 -
1 file changed, 21 insertions(+), 21
This patch adds the missing statistics for the host
and slave ports of the CPSW on K2L and K2E platforms.
Signed-off-by: WingMan Kwok
---
drivers/net/ethernet/ti/netcp_ethss.c | 177 -
1 file changed, 174 insertions(+), 3 deletions(-)
diff --git a/drivers/net
Different Keystone2 platforms have different number and
layouts of hw statistics modules. This patch consolidates
the statistics processing of different Keystone2 platforms
for easy maintenance.
Signed-off-by: WingMan Kwok
---
drivers/net/ethernet/ti/netcp_ethss.c | 99
In certain applications it's beneficial to allow the CPSW h/w
stats counters to continue to increment even while the kernel
polls them. This patch implements this behavior for both 1G
and 10G ethernet subsystem modules.
Signed-off-by: WingMan Kwok
---
drivers/net/ethernet/ti/netcp_et
This patch set contains bug fixes and enhencements of hw ethernet
statistics processing on TI's Keystone2 CPSW ethernet switches.
WingMan Kwok (6):
net: netcp: Fixes the use of spin_lock_bh in timer function
net: netcp: Fixes hw statistics module base setting error
net: netcp: Fixes
19 matches
Mail list logo