From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751773Ab2JEGyp (ORCPT ); Fri, 5 Oct 2012 02:54:45 -0400 Received: from mail-wg0-f44.google.com ([74.125.82.44]:33158 "EHLO mail-wg0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751381Ab2JEGyo (ORCPT ); Fri, 5 Oct 2012 02:54:44 -0400 Message-ID: <506E7491.3000304@monstr.eu> Date: Fri, 05 Oct 2012 07:48:01 +0200 From: Michal Simek Reply-To: monstr@monstr.eu User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120827 Thunderbird/15.0 MIME-Version: 1.0 To: Ben Hutchings CC: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Anirudha Sarangi , John Linn , Grant Likely , Rob Herring , "David S. Miller" Subject: Re: [PATCH 11/11] net: xilinx: Show csum in bootlog References: <1349374497-9540-1-git-send-email-monstr@monstr.eu> <1349374497-9540-11-git-send-email-monstr@monstr.eu> <1349378144.2817.23.camel@bwh-desktop.uk.solarflarecom.com> In-Reply-To: <1349378144.2817.23.camel@bwh-desktop.uk.solarflarecom.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/04/2012 09:15 PM, Ben Hutchings wrote: > On Thu, 2012-10-04 at 20:14 +0200, Michal Simek wrote: >> Just show current setting in bootlog. > [...] >> --- a/drivers/net/ethernet/xilinx/ll_temac_main.c >> +++ b/drivers/net/ethernet/xilinx/ll_temac_main.c >> @@ -1052,12 +1052,14 @@ static int __devinit temac_of_probe(struct platform_device *op) >> /* Setup checksum offload, but default to off if not specified */ >> lp->temac_features = 0; >> p = (__be32 *)of_get_property(op->dev.of_node, "xlnx,txcsum", NULL); >> + dev_info(&op->dev, "TX_CSUM %d\n", be32_to_cpup(p)); >> if (p && be32_to_cpu(*p)) { >> lp->temac_features |= TEMAC_FEATURE_TX_CSUM; >> /* Can checksum TCP/UDP over IPv4. */ >> ndev->features |= NETIF_F_IP_CSUM; >> } >> p = (__be32 *)of_get_property(op->dev.of_node, "xlnx,rxcsum", NULL); >> + dev_info(&op->dev, "RX_CSUM %d\n", be32_to_cpup(p)); > [...] > > Is there any particular reason you think this needs to be logged by > default, rather than letting users run ethtool -k? I suggest using > dev_dbg() instead. The reason was just to show it in the bootlog. I will check ethtool support for these drivers. Thanks for your comments, Michal -- Michal Simek, Ing. (M.Eng) w: www.monstr.eu p: +42-0-721842854 Maintainer of Linux kernel 2.6 Microblaze Linux - http://www.monstr.eu/fdt/ Microblaze U-BOOT custodian