[ofa-general] Re: [PATCH 4/16 v2] IB/ipoib: Add checksum offload support for ipoib

Or Gerlitz ogerlitz at voltaire.com
Sun Jan 27 04:51:39 PST 2008


Eli Cohen wrote:
> --- a/drivers/infiniband/ulp/ipoib/ipoib_cm.c
> +++ b/drivers/infiniband/ulp/ipoib/ipoib_cm.c
> @@ -1234,6 +1234,11 @@ static ssize_t set_mode(struct device *d, struct device_attribute *attr,
>  		set_bit(IPOIB_FLAG_ADMIN_CM, &priv->flags);
>  		ipoib_warn(priv, "enabling connected mode "
>  			   "will cause multicast packet drops\n");
> +
> +		dev->features &= ~NETIF_F_IP_CSUM;

if adding NETIF_F_IP_CSUM brings in NETIF_F_SG, why not ANDing here with 
~NETIF_F_SG as well?

> +
> +		priv->tx_wr.send_flags &= ~IB_SEND_IP_CSUM;




More information about the general mailing list