From: Stefan Richter <stefanr@s5r6.in-berlin.de>
To: Randy Dunlap <randy.dunlap@oracle.com>
Cc: linux-kernel@vger.kernel.org,
Kristian Hoegsberg <krh@bitplanet.net>,
linux1394-devel@lists.sourceforge.net
Subject: Re: [review patch 1/2] firewire: new driver: nosy - IEEE 1394 traffic sniffer
Date: Thu, 22 Jul 2010 19:26:03 +0200 [thread overview]
Message-ID: <4C487F2B.4040405@s5r6.in-berlin.de> (raw)
In-Reply-To: <20100722090751.682f3b00.randy.dunlap@oracle.com>
Randy Dunlap wrote:
> On Thu, 22 Jul 2010 11:56:38 +0200 (CEST) Stefan Richter wrote:
>> --- a/drivers/firewire/Kconfig
>> +++ b/drivers/firewire/Kconfig
>> @@ -66,4 +66,27 @@ config FIREWIRE_NET
>>
>> source "drivers/ieee1394/Kconfig"
>>
>> +config FIREWIRE_NOSY
>> + tristate "Nosy - a FireWire traffic sniffer for PCILynx cards"
>> + depends on PCI
>
> Just curious: why not depends on IEEE1394_PCILYNX ?
This is a stand-alone driver that interacts neither with the old nor
with the new FireWire kernel subsystem. It contains only the minimum of
DMA programming that is required to get PCILynx' snoop mode (a catch-all
reception DMA) up and running.
IEEE1394_PCILYNX alias pcilynx on the other hand is a bigger card driver
which implements several transmit and receive DMA modes as required by a
low-level driver of the ieee1394 stack.¹
Thus, nosy does not use code from or share code with anything in
drivers/ieee1394/.
¹) except for isochronous transmission and reception; this was initially
also provided by pcilynx but became outdated early on in the history of
the ieee1394 stack when video1394 was added; and except for physical DMA
that the sbp2 driver requires
If you have a PCILynx card, you can bind either pcilynx or nosy to it.
(As the kernel's build system works, I think nosy is going to be bound
before pcilynx if both are present.) However, nosy the bus analyzer
provides better value than pcilynx the ieee1394 lowlevel driver that
lacks 3/4 of the functionality that ohci1394 offers.
>> --- /dev/null
>> +++ b/drivers/firewire/nosy-user.h
>> @@ -0,0 +1,25 @@
>> +#ifndef __nosy_user_h
>> +#define __nosy_user_h
>> +
>> +#include <linux/ioctl.h>
>> +#include <linux/types.h>
>> +
>> +#define NOSY_IOC_GET_STATS _IOR('&', 0, struct nosy_stats)
>> +#define NOSY_IOC_START _IO('&', 1)
>> +#define NOSY_IOC_STOP _IO('&', 2)
>> +#define NOSY_IOC_FILTER _IOW('&', 2, __u32)
>
> Please add '&' to Documentation/ioctl/ioctl-number.txt.
Right, I will send a follow-up patch which does this if there are no
fundamental objections to this ioctl allocation.
--
Stefan Richter
-=====-==-=- -=== =-==-
http://arcgraph.de/sr/
next prev parent reply other threads:[~2010-07-22 17:26 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-22 9:55 [review patch 0/2] new driver: Nosy, a low-budget FireWire packet sniffer Stefan Richter
2010-07-22 9:56 ` [review patch 1/2] firewire: new driver: nosy - IEEE 1394 traffic sniffer Stefan Richter
2010-07-22 16:07 ` Randy Dunlap
2010-07-22 17:26 ` Stefan Richter [this message]
2010-07-22 17:50 ` [review patch 3/2] firewire: nosy: note ioctls in ioctl-number.txt Stefan Richter
2010-07-22 18:04 ` Stefan Richter
2010-07-22 9:58 ` [review patch 2/2] tools/firewire: add nosy-dump, frontend to the driver nosy Stefan Richter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4C487F2B.4040405@s5r6.in-berlin.de \
--to=stefanr@s5r6.in-berlin.de \
--cc=krh@bitplanet.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linux1394-devel@lists.sourceforge.net \
--cc=randy.dunlap@oracle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox