From owner-freebsd-stable@FreeBSD.ORG Wed Oct 22 15:30:58 2008 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E01DF1065673 for ; Wed, 22 Oct 2008 15:30:58 +0000 (UTC) (envelope-from dudu.meyer@gmail.com) Received: from el-out-1112.google.com (el-out-1112.google.com [209.85.162.177]) by mx1.freebsd.org (Postfix) with ESMTP id 9181D8FC13 for ; Wed, 22 Oct 2008 15:30:58 +0000 (UTC) (envelope-from dudu.meyer@gmail.com) Received: by el-out-1112.google.com with SMTP id v27so732005ele.13 for ; Wed, 22 Oct 2008 08:30:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=ZIdjT4EXaiRw1xYW+gEBEwreCPuRDBFmKFSqn10IrtE=; b=v2pgWnYoACiImAZWyFo6CbSLgH8wNyOpBI1ROPPQZUZNxCbdRG53f4dldLZLImPhyu oJlvYa9kPS/x2TGuA2yBygYwzwXjcDu6yS0034FKbVhNtAlw8jZvsM7jdRCUDde3IInD xbhZigf8cP+lMi9HO9/ZZZrLnGN/8gJ3gCPdE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=qTw9cvsqrVwCKD73U7uSF373TgABQxtc7TCAyJh6m+S63STz+RLydyYn8iQd0BiwJn ARLT+MDcXSU4NoVsN5SBBKkEIaDax1dLj+F3i5s65ckQ4HB2qYGjyd3B5PQWSkxiSUnn 7srKnocm87YOf94hBNxNVNLyi+J2oQmscHI/s= Received: by 10.64.232.16 with SMTP id e16mr8488296qbh.41.1224689457104; Wed, 22 Oct 2008 08:30:57 -0700 (PDT) Received: by 10.64.201.9 with HTTP; Wed, 22 Oct 2008 08:30:57 -0700 (PDT) Message-ID: Date: Wed, 22 Oct 2008 13:30:57 -0200 From: "Eduardo Meyer" To: "Jeremy Chadwick" In-Reply-To: <20081022152407.GA61546@icarus.home.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20081022151228.GA60664@icarus.home.lan> <20081022152407.GA61546@icarus.home.lan> Cc: stable@freebsd.org, pluknet Subject: Re: Check if interface supports Device Polling X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Oct 2008 15:30:59 -0000 On Wed, Oct 22, 2008 at 1:24 PM, Jeremy Chadwick wrote: > On Wed, Oct 22, 2008 at 08:12:28AM -0700, Jeremy Chadwick wrote: >> > # ifconfig -v rl0 caps >> > Capabilities: 48 >> >> The above patch is completely unnecessary. The -m flag in ifconfig >> will do what you want. >> >> However, the existing ifconfig code does not print POLLING as a >> capability, which is where the bug truly lies. >> >> I'll provide a patch that extends the capability list properly, and will >> allow you to determine a full capability list. > > I'm both correct and incorrect. > > Correct: ifconfig -m will show you want. No need for the patch. > > Incorrect: I missed the "POLLING" part of #define IFCAPBITS in > ifconfig.c -- it is in fact listed there. > > Maybe the polling bit is only made available if you've built a kernel > with "option DEVICE_POLLING"? For example, I can do "ifconfig em1 > polling", which returns no error, but "ifconfig -m em1" does not show > POLLING. (My kernel does NOT have DEVICE_POLLING defined.) > > In your above output, capabilities is 0x48, which means POLLING is > available, and VLAN_MTU is available. You did not provide us output of > "ifconfig -m rl0", but I'd be inclined to believe "POLLING" is shown > there... I hope. :-) > > Also, it appears ifconfig does not print TOE4 or TOE6 capability bits; > that's probably a missing feature. > > -- > | Jeremy Chadwick jdc at parodius.com | > | Parodius Networking http://www.parodius.com/ | > | UNIX Systems Administrator Mountain View, CA, USA | > | Making life hard for others since 1977. PGP: 4BD6C0CB | > > You are right. My mistake, its there, in the "capabilities" line when -m is issued. Thank you Jeremy. -- =========== Eduardo Meyer pessoal: dudu.meyer@gmail.com profissional: ddm.farmaciap@saude.gov.br