Thread (36 messages) flat view 36 messages, 7 authors, 2019-11-16

Re: [net-next, 1/2] enetc: Configure the Time-Aware Scheduler via tc-taprio offload

From: David Miller <hidden>
Date: 2019-11-12 05:51:00
Also in: lkml

From: Po Liu <redacted>
Date: Mon, 11 Nov 2019 04:41:26 +0000
+fsl-enetc-$(CONFIG_NET_SCH_TAPRIO) += enetc_qos.o
Code is Kconfig guarded.
+	case TC_SETUP_QDISC_TAPRIO:
+		return enetc_setup_tc_taprio(ndev, type_data);
Yet invoked unconditionally.

I can see just by reading your code that various configurations will
result in link errors.

 ...
+int enetc_setup_tc_taprio(struct net_device *ndev, void *type_data)
+{
+	struct tc_taprio_qopt_offload *taprio = type_data;
+	struct enetc_ndev_priv *priv = netdev_priv(ndev);
+	int i;
+
+	for (i = 0; i < priv->num_tx_rings; i++)
+		enetc_set_bdr_prio(&priv->si->hw,
+				   priv->tx_ring[i]->index,
+				   taprio->enable ? i : 0);
+
+	return enetc_setup_taprio(ndev, taprio);
+}
-- 
2.17.1
  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help