[PATCH 2/4] ibmveth: Implement ethtool hooks to enable/disable checksum offload
Brian King
brking at linux.vnet.ibm.com
Fri Jul 20 04:28:26 EST 2007
Ragner Magalhaes wrote:
> ext Brian King wrote:
>> Ragner Magalhaes wrote:
>>> here also, as above ...
>>>> + 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
More information about the Linuxppc-dev
mailing list