[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20101130161831.GA28788@rere.qmqm.pl>
Date: Tue, 30 Nov 2010 17:18:31 +0100
From: MichałMirosław <mirq-linux@...e.qmqm.pl>
To: Ben Hutchings <bhutchings@...arflare.com>
Cc: netdev@...r.kernel.org, Jesse Gross <jesse@...ira.com>
Subject: Re: [PATCH] net: Fix too optimistic NETIF_F_HW_CSUM features
On Tue, Nov 30, 2010 at 03:51:58PM +0000, Ben Hutchings wrote:
> > > Why are you disabling IPv6 checksum offload? From a quick look at the
> > > driver, I think the hardware does support it.
> >
> > In vxge_xmit() (at drivers/net/vxge/vxge-main.c:922 in net-next) there
> > is the following code, that suggested otherwise:
> >
> > if (skb->ip_summed == CHECKSUM_PARTIAL)
> > vxge_hw_fifo_txdl_cksum_set_bits(dtr,
> > VXGE_HW_FIFO_TXD_TX_CKO_IPV4_EN |
> > VXGE_HW_FIFO_TXD_TX_CKO_TCP_EN |
> > VXGE_HW_FIFO_TXD_TX_CKO_UDP_EN);
>
> I bet IPV4_EN refers to the IPv4 header checksum. Since IPv6 doesn't
> have a header checksum, there won't be a flag for it here.
That makes sense. I'll fix that.
Thanks,
Michał Mirosław
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists