From: Mike Christie <michaelc@cs.wisc.edu>
To: James.Smart@Emulex.Com
Cc: linux-scsi@vger.kernel.org
Subject: Re: [RFC] Netlink and user-space buffer pointers
Date: Thu, 20 Apr 2006 16:51:09 -0500 [thread overview]
Message-ID: <4448024D.3030800@cs.wisc.edu> (raw)
In-Reply-To: <4447E91E.7030603@emulex.com>
snipped lkml and netdev. I do not think they care do they.
James Smart wrote:
> Note: We've transitioned off topic. If what this means is "there isn't a
> good
> way except by ioctls (which still isn't easily portable) or system calls",
> then that's ok. Then at least we know the limits and can look at other
> implementation alternatives.
>
So we have
1. sysfs: prbably bad becuase to pass down every attr for the command we
need a seperate file. This does not seem like it meets the binary sysfs
file requirement.
2. configfs: again bad becuase we have to pass down eveyr attr for the
command in a speperate file.
3. ioctl: Christoph has not allowed scsi drivers to add ioctls so I
doubt he would let some other scsi code let it.
4. syscall:
5. netlink: netdev guys do not want use to pass pointers. So we either
have a worst case double copy (copy from userspace to network and
network to buffer that is within the LLDs queue limits (do like sg where
it as a preallocated buffer)) or if we used the bio code like how the
ll_rw_blk.c does just fail if the command is to large. In some cases the
io may just be too large and have to fail though.
5A. modify netlink to copy data to a buffer that is within some sort of
limits we can DMA from.
5B. debate with netdev guys about passing poitners, in which case we
could have some of the problem 5 has in that when we map data we do not
have much control over the pages so we may have to drop down to a copy
to some preallocate buffer or fail model.
6. char device
7. what else...
next prev parent reply other threads:[~2006-04-20 21:51 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-17 20:44 [RFC] FC Transport : Async Events via netlink interface James Smart
2006-04-18 16:01 ` Mike Anderson
2006-04-19 12:52 ` James Smart
2006-04-19 12:57 ` [RFC] Netlink and user-space buffer pointers James Smart
2006-04-19 16:22 ` Patrick McHardy
2006-04-19 17:08 ` James Smart
2006-04-19 17:16 ` Patrick McHardy
2006-04-19 16:26 ` Stephen Hemminger
2006-04-19 17:05 ` James Smart
2006-04-19 21:32 ` Mike Christie
2006-04-20 14:33 ` James Smart
2006-04-20 17:45 ` Mike Christie
2006-04-20 17:52 ` Mike Christie
2006-04-20 17:58 ` Mike Christie
2006-04-20 20:03 ` James Smart
2006-04-20 20:35 ` Mike Christie
2006-04-20 20:40 ` Mike Christie
2006-04-20 21:41 ` Mike Christie
2006-04-20 21:51 ` Mike Christie [this message]
2006-04-20 23:07 ` Mike Christie
2006-04-20 23:44 ` Andrew Vasquez
2006-04-20 20:18 ` Douglas Gilbert
2006-04-19 14:59 ` [RFC] FC Transport : Async Events via netlink interface Matthew Wilcox
2006-04-19 16:11 ` James Smart
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=4448024D.3030800@cs.wisc.edu \
--to=michaelc@cs.wisc.edu \
--cc=James.Smart@Emulex.Com \
--cc=linux-scsi@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).