Thread (5 messages) flat view 5 messages, 2 authors, 2007-07-19

Re: [PATCH 2/4] ibmveth: Implement ethtool hooks to enable/disable checksum offload

From: Brian King <hidden>
Date: 2007-07-19 18:28:31
Also in: linuxppc-dev

Ragner Magalhaes wrote:
ext Brian King wrote:
quoted
Ragner Magalhaes wrote:
quoted
here also, as above ...
quoted
+	if (data && (dev->features & NETIF_F_IP_CSUM))
+		return 0;
+	if (!data && !(dev->features & NETIF_F_IP_CSUM))
+		return 0;
This change would make the line > 80 columns, which I prefer to avoid.
Updated patch attached which addresses the first comment.
I think would not be ugly to make.

	if ((data && (dev->features & NETIF_F_IP_CSUM)) ||
		(!data && !(dev->features & NETIF_F_IP_CSUM)))
		return 0;
I find that less readable than what I currently have.

-Brian

-- 
Brian King
Linux on Power Virtualization
IBM Linux Technology Center
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help