public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] [FCoE] Remove sa_hash_xxx:series short description
@ 2008-02-13 19:09 Yi Zou
  2008-02-13 19:09 ` [PATCH 1/4] [FCoE] hash for fc_remote_port: do not use sa_hash_xxx Yi Zou
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Yi Zou @ 2008-02-13 19:09 UTC (permalink / raw)
  To: linux-scsi; +Cc: devel

The following series remove use of all sa_hash_xxx in hash table operations
for fc_local_port, fc_remote_port, and fc_sess. sa_hash_kern.c and sa_hash.h
are removed. All abstraction using sa_hash_xxx are removed and replaced by
using hlist_head, hlist_node directly. Hash functions are in their own module
now for fc_remote_port and fc_sess.

For fc_local_port, the hash is completely removed since there is always going
to be just one fc_local_port per openfc/fcoe. For fc_remote_port, the hash by
wwpn is removed with hash by remote port FCID already there. Hash entry
counters are removed as they are used only in debugging/printting routines.
All debugging/testing functions, e.g. hash table iterate, print, are removed
as well.

Note that fc_virt_fab struct is still the place holder for the hash tables,
which eventually will be in fcs_state struct once fc_virt_fab is merged with
the fcs_state struct.

---

Yi Zou (4):
      [FCoE] 4. remove sa_hash_kern.c/sa_hash.h
      [FCoE] 3. remove hash table for fc_local_port
      [FCoE] 2. hash for fc_sess: do not use sa_hash_xxx
      [FCoE] 1. hash for fc_remote_port: do not use sa_hash_xxx


 drivers/scsi/ofc/include/fc_local_port.h    |    6 
 drivers/scsi/ofc/include/fc_remote_port.h   |    4 
 drivers/scsi/ofc/include/fc_sess.h          |    3 
 drivers/scsi/ofc/include/sa_hash.h          |   65 -----
 drivers/scsi/ofc/libfc/fc_exch.c            |    1 
 drivers/scsi/ofc/libfc/fc_local_port.c      |   85 -------
 drivers/scsi/ofc/libfc/fc_local_port_impl.h |    4 
 drivers/scsi/ofc/libfc/fc_remote_port.c     |  325 ++++++++++++---------------
 drivers/scsi/ofc/libfc/fc_sess.c            |  214 +++++++++++-------
 drivers/scsi/ofc/libfc/fc_sess_impl.h       |    3 
 drivers/scsi/ofc/libfc/fc_virt_fab.c        |    5 
 drivers/scsi/ofc/libfc/fc_virt_fab_impl.h   |   10 -
 drivers/scsi/ofc/libsa/Makefile             |    4 
 drivers/scsi/ofc/libsa/sa_hash_kern.c       |  141 ------------
 14 files changed, 298 insertions(+), 572 deletions(-)
 delete mode 100644 drivers/scsi/ofc/include/sa_hash.h
 delete mode 100644 drivers/scsi/ofc/libsa/sa_hash_kern.c

-- 
Yi Zou <yi.zou@intel.com>

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-02-13 19:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-13 19:09 [PATCH 0/4] [FCoE] Remove sa_hash_xxx:series short description Yi Zou
2008-02-13 19:09 ` [PATCH 1/4] [FCoE] hash for fc_remote_port: do not use sa_hash_xxx Yi Zou
2008-02-13 19:09 ` [PATCH 2/4] [FCoE] hash for fc_sess: " Yi Zou
2008-02-13 19:10 ` [PATCH 3/4] [FCoE] remove hash table for fc_local_port Yi Zou
2008-02-13 19:10 ` [PATCH 4/4] [FCoE] remove sa_hash_kern.c/sa_hash.h Yi Zou

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox