NetBSD Problem Report #50933

From www@NetBSD.org  Thu Mar 10 13:34:19 2016
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id E2ED37A13C
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 10 Mar 2016 13:34:19 +0000 (UTC)
Message-Id: <20160310133418.7F1057ACB9@mollari.NetBSD.org>
Date: Thu, 10 Mar 2016 13:34:18 +0000 (UTC)
From: 6bone@6bone.informatik.uni-leipzig.de
Reply-To: 6bone@6bone.informatik.uni-leipzig.de
To: gnats-bugs@NetBSD.org
Subject: can not enable the interface capabilities at ixg0
X-Send-Pr-Version: www-1.0

>Number:         50933
>Category:       kern
>Synopsis:       can not enable the interface capabilities at ixg0
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    dyoung
>State:          analyzed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Mar 10 13:35:00 +0000 2016
>Closed-Date:    
>Last-Modified:  Fri May 20 04:29:56 +0000 2016
>Originator:     Uwe Toenjes
>Release:        netbsd-7
>Organization:
University of Leipzig
>Environment:
NetBSD 6bone.informatik.uni-leipzig.de 7.0_STABLE NetBSD 7.0_STABLE (MYCONF7.gdb) #0: Sat Feb 13 12:32:12 CET 2016  root@6bone.informatik.uni-leipzig.de:/usr/obj/sys/arch/amd64/compile/MYCONF7.gdb amd64

>Description:
ifconfig ixg0 reports

ixg0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
        capabilities=fff80<TSO4,IP4CSUM_Rx,IP4CSUM_Tx,TCP4CSUM_Rx>
        capabilities=fff80<TCP4CSUM_Tx,UDP4CSUM_Rx,UDP4CSUM_Tx,TCP6CSUM_Rx>
        capabilities=fff80<TCP6CSUM_Tx,UDP6CSUM_Rx,UDP6CSUM_Tx,TSO6,LRO>
        enabled=42b80<TSO4,IP4CSUM_Rx,IP4CSUM_Tx,TCP4CSUM_Tx>
        enabled=42b80<UDP4CSUM_Tx,TSO6>
        ec_capabilities=7<VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU>
        ec_enabled=7<VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU>
        address: a0:36:9f:26:8e:7c
        media: Ethernet autoselect

I try to activate the capabilities.

I try to activate the capabilities.

ifconfig ixg0 tso4 tso6 - works
ifconfig ixg0 ip4csum - works

ifconfig ixg0 tcp4csum
ifconfig: SIOCSIFCAP: Invalid argument

ifconfig ixg0 tcp4csum-rx
ifconfig: SIOCSIFCAP: Invalid argument

ifconfig ixg0 udp4csum-tx - works

ifconfig ixg0 udp4csum-rx
ifconfig: SIOCSIFCAP: Invalid argument

ifconfig ixg0 udp4csum
ifconfig: SIOCSIFCAP: Invalid argument

The same for tcp6csum and udp6csum

>How-To-Repeat:

>Fix:

>Release-Note:

>Audit-Trail:
From: Hauke Fath <hf@spg.tu-darmstadt.de>
To: gnats-bugs@NetBSD.org
Cc: kern-bug-people@netbsd.org, gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
Subject: Re: kern/50933: can not enable the interface capabilities at ixg0 
Date: Thu, 12 May 2016 16:41:57 +0200

 [ixg(4) rejecting some of the capabilities it lists as supported]

 I can confirm this problem.=20

 FWIW, it is also present in a netbsd-7 kernel with ixg(4) backported=20
 from -current.

 Cheerio,
 hauke

 --=20
      The ASCII Ribbon Campaign                    Hauke Fath
 ()     No HTML/RTF in email            Institut f=FCr Nachrichtentechnik
 /\     No Word docs in email                     TU Darmstadt
      Respect for open standards              Ruf +49-6151-16-21344

Responsible-Changed-From-To: kern-bug-people->msaitoh
Responsible-Changed-By: msaitoh@NetBSD.org
Responsible-Changed-When: Thu, 19 May 2016 06:50:11 +0000
Responsible-Changed-Why:
mine.


From: David Young <dyoung@pobox.com>
To: gnats-bugs@NetBSD.org
Cc: kern-bug-people@netbsd.org, gnats-admin@netbsd.org,
	netbsd-bugs@netbsd.org
Subject: Re: kern/50933: can not enable the interface capabilities at ixg0
Date: Thu, 19 May 2016 15:02:03 -0500

 On Thu, Mar 10, 2016 at 01:35:00PM +0000, 6bone@6bone.informatik.uni-leipzig.de wrote:
 > >Number:         50933
 > >Category:       kern
 > >Synopsis:       can not enable the interface capabilities at ixg0
 > >Confidential:   no
 > >Severity:       serious
 > >Priority:       medium
 > >Responsible:    kern-bug-people
 > >State:          open
 > >Class:          sw-bug
 > >Submitter-Id:   net
 > >Arrival-Date:   Thu Mar 10 13:35:00 +0000 2016
 > >Originator:     Uwe Toenjes
 > >Release:        netbsd-7
 > >Organization:
 > University of Leipzig
 > >Environment:
 > NetBSD 6bone.informatik.uni-leipzig.de 7.0_STABLE NetBSD 7.0_STABLE (MYCONF7.gdb) #0: Sat Feb 13 12:32:12 CET 2016  root@6bone.informatik.uni-leipzig.de:/usr/obj/sys/arch/amd64/compile/MYCONF7.gdb amd64
 > 
 > >Description:
 > ifconfig ixg0 reports
 > 
 > ixg0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
 >         capabilities=fff80<TSO4,IP4CSUM_Rx,IP4CSUM_Tx,TCP4CSUM_Rx>
 >         capabilities=fff80<TCP4CSUM_Tx,UDP4CSUM_Rx,UDP4CSUM_Tx,TCP6CSUM_Rx>
 >         capabilities=fff80<TCP6CSUM_Tx,UDP6CSUM_Rx,UDP6CSUM_Tx,TSO6,LRO>
 >         enabled=42b80<TSO4,IP4CSUM_Rx,IP4CSUM_Tx,TCP4CSUM_Tx>
 >         enabled=42b80<UDP4CSUM_Tx,TSO6>
 >         ec_capabilities=7<VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU>
 >         ec_enabled=7<VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU>
 >         address: a0:36:9f:26:8e:7c
 >         media: Ethernet autoselect
 > 
 > I try to activate the capabilities.
 > 
 > I try to activate the capabilities.
 > 
 > ifconfig ixg0 tso4 tso6 - works
 > ifconfig ixg0 ip4csum - works
 > 
 > ifconfig ixg0 tcp4csum
 > ifconfig: SIOCSIFCAP: Invalid argument

 On ixg, all of the L4 checksum-offload capabilities (tcp4csum, tcp6csum,
 udp4csum, udp6csum) have to be activated/deactivated together, because
 that is how the hardware works.  If that is not already mentioned in the
 manual page, my apologies.

 I would argue that given the limitations of SIOCSIFCAP, today, this is
 the least bad way for ixg offload capabilities to work.  I'd be happy to
 talk on tech-net about how to bring the ioctl interface up to snuff.

 Dave

 -- 
 David Young
 dyoung@pobox.com    Urbana, IL    (217) 721-9981

Responsible-Changed-From-To: msaitoh->dyoung
Responsible-Changed-By: msaitoh@NetBSD.org
Responsible-Changed-When: Fri, 20 May 2016 04:29:56 +0000
Responsible-Changed-Why:
Please add note to the manual :)


State-Changed-From-To: open->analyzed
State-Changed-By: msaitoh@NetBSD.org
State-Changed-When: Fri, 20 May 2016 04:29:56 +0000
State-Changed-Why:
This is not a bug but the limitation of the chip.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.