net: bcmasp: Fix network filter wake for asp-3.0
Subsystems (3)
Justin Chen
maintainerPATCH 1/1 net: bcmasp: Fix network filter wake for asp-3.0
We need to apply the tx_chan_offset to the netfilter cfg channel or the output channel will be incorrect for asp-3.0 and newer.
Fixes e9f31435ee7d ("net: bcmasp: Add support for asp-v3.0")
Signed-off-by Justin Chen <[email protected]>
--- drivers/net/ethernet/broadcom/asp2/bcmasp.c | 5 +++-- drivers/net/ethernet/broadcom/asp2/bcmasp.h | 1 + 2 files changed, 4 insertions(+), 2 deletions(-)
drivers/net/ethernet/broadcom/asp2/bcmasp.c +3 -2
@@ -156,7 +156,7 @@ static void bcmasp_netfilt_hw_en_wake(struct bcmasp_priv *priv,ASP_RX_FILTER_NET_OFFSET_L4 (32 ), ASP_RX_FILTER_NET_OFFSET(nfilt->hw_index + 1)); - rx_filter_core_wl(priv, ASP_RX_FILTER_NET_CFG_CH(nfilt->port + 8) | + rx_filter_core_wl(priv, ASP_RX_FILTER_NET_CFG_CH(nfilt->ch) | ASP_RX_FILTER_NET_CFG_EN | ASP_RX_FILTER_NET_CFG_L2_EN | ASP_RX_FILTER_NET_CFG_L3_EN |
@@ -166,7 +166,7 @@ static void bcmasp_netfilt_hw_en_wake(struct bcmasp_priv *priv,ASP_RX_FILTER_NET_CFG_UMC (nfilt->port), ASP_RX_FILTER_NET_CFG(nfilt->hw_index)); - rx_filter_core_wl(priv, ASP_RX_FILTER_NET_CFG_CH(nfilt->port + 8) | + rx_filter_core_wl(priv, ASP_RX_FILTER_NET_CFG_CH(nfilt->ch) | ASP_RX_FILTER_NET_CFG_EN | ASP_RX_FILTER_NET_CFG_L2_EN | ASP_RX_FILTER_NET_CFG_L3_EN |
@@ -714,6 +714,7 @@ struct bcmasp_net_filter *bcmasp_netfilt_get_init(struct bcmasp_intf *intf, nfilter = &priv->net_filters[open_index]; nfilter->claimed = true; nfilter->port = intf->port; + nfilter->ch = intf->channel + priv->tx_chan_offset; nfilter->hw_index = open_index; }
drivers/net/ethernet/broadcom/asp2/bcmasp.h +1 -0
@@ -348,6 +348,7 @@ struct bcmasp_net_filter {bool wake_filter;int port; +int ch;unsigned int hw_index; };
Signature · 1 line
2.34.1
Quoted 5 lines · Justin Chen
We need to apply the
tx_chan_offsetto the netfilter cfg channel or the output channel will be incorrect for asp-3.0 and newer.Fixes e9f31435ee7d ("net: bcmasp: Add support for asp-v3.0")Signed-off-by Justin Chen <[email protected]>
Reviewed-by Florian Fainelli <[email protected]>
Signature · 1 line
Florian
This patch was applied to netdev/net.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <[email protected]>:
Quoted 9 lines · On Tue, 20 Jan 2026 11:23:39 -0800 you wrote:
We need to apply the
tx_chan_offsetto the netfilter cfg channel or the output channel will be incorrect for asp-3.0 and newer.Fixes e9f31435ee7d ("net: bcmasp: Add support for asp-v3.0")Signed-off-by Justin Chen <[email protected]>--- drivers/net/ethernet/broadcom/asp2/bcmasp.c | 5 +++-- drivers/net/ethernet/broadcom/asp2/bcmasp.h | 1 + 2 files changed, 4 insertions(+), 2 deletions(-)
Here is the summary with links:
- net: bcmasp: Fix network filter wake for asp-3.0
https://git.kernel.org/netdev/net/c/bbb11b8d758d
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html