svn commit: r279873 - projects/cxl_iscsi/sys/dev/cxgbe

Navdeep Parhar np at FreeBSD.org
Wed Mar 11 06:06:26 UTC 2015


Author: np
Date: Wed Mar 11 06:06:24 2015
New Revision: 279873
URL: https://svnweb.freebsd.org/changeset/base/279873

Log:
  t4_iscsi_init sets up global chip registers.  Make sure it doesn't
  give the impression that it's doing something port or ifnet specific.

Modified:
  projects/cxl_iscsi/sys/dev/cxgbe/offload.h
  projects/cxl_iscsi/sys/dev/cxgbe/t4_main.c

Modified: projects/cxl_iscsi/sys/dev/cxgbe/offload.h
==============================================================================
--- projects/cxl_iscsi/sys/dev/cxgbe/offload.h	Wed Mar 11 05:54:14 2015	(r279872)
+++ projects/cxl_iscsi/sys/dev/cxgbe/offload.h	Wed Mar 11 06:06:24 2015	(r279873)
@@ -156,7 +156,7 @@ int t4_register_uld(struct uld_info *);
 int t4_unregister_uld(struct uld_info *);
 int t4_activate_uld(struct adapter *, int);
 int t4_deactivate_uld(struct adapter *, int);
-void t4_iscsi_init(struct ifnet *, unsigned int, const unsigned int *);
+void t4_iscsi_init(struct adapter *, u_int, const u_int *);
 int uld_active(struct adapter *, int);
 #endif
 #endif

Modified: projects/cxl_iscsi/sys/dev/cxgbe/t4_main.c
==============================================================================
--- projects/cxl_iscsi/sys/dev/cxgbe/t4_main.c	Wed Mar 11 05:54:14 2015	(r279872)
+++ projects/cxl_iscsi/sys/dev/cxgbe/t4_main.c	Wed Mar 11 06:06:24 2015	(r279873)
@@ -8190,11 +8190,8 @@ t4_ioctl(struct cdev *dev, unsigned long
 
 #ifdef TCP_OFFLOAD
 void
-t4_iscsi_init(struct ifnet *ifp, unsigned int tag_mask,
-    const unsigned int *pgsz_order)
+t4_iscsi_init(struct adapter *sc, u_int tag_mask, const u_int *pgsz_order)
 {
-	struct port_info *pi = ifp->if_softc;
-	struct adapter *sc = pi->adapter;
 
 	t4_write_reg(sc, A_ULP_RX_ISCSI_TAGMASK, tag_mask);
 	t4_write_reg(sc, A_ULP_RX_ISCSI_PSZ, V_HPZ0(pgsz_order[0]) |


More information about the svn-src-projects mailing list