Skip to content

Commit be397ea

Browse files
rogerqdavem330
authored andcommitted
net: ethernet: am65-cpsw: Set default TX channels to maximum
am65-cpsw supports 8 TX hardware queues. Set this as default. The rationale is that some am65-cpsw devices can have up to 4 ethernet ports. If the number of TX channels have to be changed then all interfaces have to be brought down and up as the old default of 1 TX channel is too restrictive for any mqprio/taprio usage. Another reason for this change is to allow testing using kselftest:net/forwarding:ethtool_mm.sh out of the box. Signed-off-by: Roger Quadros <rogerq@kernel.org> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent ac09946 commit be397ea

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/net/ethernet/ti/am65-cpsw-nuss.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,8 @@
136136
NETIF_MSG_IFUP | NETIF_MSG_PROBE | NETIF_MSG_IFDOWN | \
137137
NETIF_MSG_RX_ERR | NETIF_MSG_TX_ERR)
138138

139+
#define AM65_CPSW_DEFAULT_TX_CHNS 8
140+
139141
static void am65_cpsw_port_set_sl_mac(struct am65_cpsw_port *slave,
140142
const u8 *dev_addr)
141143
{
@@ -2894,7 +2896,7 @@ static int am65_cpsw_nuss_probe(struct platform_device *pdev)
28942896

28952897
common->rx_flow_id_base = -1;
28962898
init_completion(&common->tdown_complete);
2897-
common->tx_ch_num = 1;
2899+
common->tx_ch_num = AM65_CPSW_DEFAULT_TX_CHNS;
28982900
common->pf_p0_rx_ptype_rrobin = false;
28992901
common->default_vlan = 1;
29002902

0 commit comments

Comments
 (0)