netdev
[Top] [All Lists]

Re: [PATCH linux-2.6.12-rc4-mm1] ethtool: Add NETIF_F_HW_CSUM support

To: "David S. Miller" <davem@xxxxxxxxxxxxx>
Subject: Re: [PATCH linux-2.6.12-rc4-mm1] ethtool: Add NETIF_F_HW_CSUM support
From: Jon Mason <jdmason@xxxxxxxxxx>
Date: Mon, 23 May 2005 16:32:55 -0500
Cc: netdev@xxxxxxxxxxx
In-reply-to: <20050523.142009.74748115.davem@xxxxxxxxxxxxx>
Organization: IBM
References: <20050523210757.GB5910@xxxxxxxxxx> <20050523.142009.74748115.davem@xxxxxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: KMail/1.7.2
On Monday 23 May 2005 04:20 pm, David S. Miller wrote:
> From: Jon Mason <jdmason@xxxxxxxxxx>
> Subject: [PATCH linux-2.6.12-rc4-mm1] ethtool: Add NETIF_F_HW_CSUM support
> Date: Mon, 23 May 2005 16:07:57 -0500
>
> > Added support to ethtool for NETIF_F_HW_CSUM.
> >
> > Signed-off-by: Jon Mason <jdmason@xxxxxxxxxx>
>
> You cannot blindly set these flags, you need to provide
> a method for the driver to override the implementation of
> this method so it can return and error if it cannot provide
> support for this feature.

I am only adding a generic function which gives the ability to use 
NETIF_F_HW_CSUM for ethtool tx offload (instead of only using 
NETIF_F_IP_CSUM).

If ethtool_set_tx_csum does not point to ethtool_op_set_tx_csum or 
ethtool_op_set_tx_hw_csum (or a local driver function) then it will return an 
error.  Isn't this sufficient (as it is what currently happening), or am I 
not sufficently understanding the problem?

Thanks,
Jon


<Prev in Thread] Current Thread [Next in Thread>