Thread (10 messages) flat view 10 messages, 3 authors, 2017-09-22

Re: [PATCH net 2/4] net:ethernet:aquantia: Fix Tx queue hangups

From: Igor Russkikh <hidden>
Date: 2017-09-21 14:32:04

Thanks for the comments, Yunsheng,
quoted
 
+static int aq_nic_update_link_status(struct aq_nic_s *self)
+{
+	int err = self->aq_hw_ops.hw_get_link_status(self->aq_hw);
+
+	if (err < 0)
+		return -1;
why not just return err?
Agreed, that could be improved.
quoted
+	if (self->link_status.mbps != self->aq_hw->aq_link_status.mbps)
+		pr_info("%s: link change old %d new %d\n",
+			AQ_CFG_DRV_NAME, self->link_status.mbps,
+			self->aq_hw->aq_link_status.mbps);
You has ndev in struct aq_nic_s *self, why not use netdev_*?
We are planning to introduce a generic rework commit separately and use netif_* set of macro's through all the driver's code.

-- 
BR, Igor
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help