1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-15 15:06:42 +00:00

- Remove default NIC dependency on ulp headers

- make toe module build dependent on kernel support

Submitted by:	Chelsio Inc.
MFC after:	1 week
This commit is contained in:
Kip Macy 2008-09-24 01:19:08 +00:00
parent a63c2f9df0
commit a7db7fbd35
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=183321
12 changed files with 36 additions and 8 deletions

View File

@ -56,7 +56,6 @@ POSSIBILITY OF SUCH DAMAGE.
#include <cxgb_osdep.h>
#include <t3cdev.h>
#include <ulp/toecore/cxgb_toedev.h>
#include <sys/mbufq.h>
#ifdef LRO_SUPPORTED

View File

@ -16,4 +16,3 @@
#include <common/cxgb_sge_defs.h>
#include <common/cxgb_firmware_exports.h>
#include <common/jhash.h>
#include <ulp/toecore/cxgb_toedev.h>

View File

@ -35,7 +35,6 @@ POSSIBILITY OF SUCH DAMAGE.
#include <common/cxgb_version.h>
#include <cxgb_config.h>
#include <ulp/tom/cxgb_l2t.h>
#include <common/cxgb_tcb.h>
#include <t3cdev.h>
@ -71,6 +70,7 @@ void cxgb_remove_clients(struct t3cdev *tdev);
typedef int (*cxgb_cpl_handler_func)(struct t3cdev *dev,
struct mbuf *m, void *ctx);
struct l2t_entry;
struct cxgb_client {
char *name;
void (*add) (struct t3cdev *);

View File

@ -64,6 +64,7 @@ __FBSDID("$FreeBSD$");
#include <contrib/rdma/ib_verbs.h>
#include <cxgb_include.h>
#include <ulp/tom/cxgb_l2t.h>
#include <ulp/iw_cxgb/iw_cxgb_wr.h>
#include <ulp/iw_cxgb/iw_cxgb_hal.h>
#include <ulp/iw_cxgb/iw_cxgb_provider.h>

View File

@ -64,6 +64,7 @@ __FBSDID("$FreeBSD$");
#include <contrib/rdma/ib_user_verbs.h>
#include <cxgb_include.h>
#include <ulp/tom/cxgb_l2t.h>
#include <ulp/iw_cxgb/iw_cxgb_wr.h>
#include <ulp/iw_cxgb/iw_cxgb_hal.h>
#include <ulp/iw_cxgb/iw_cxgb_provider.h>

View File

@ -53,7 +53,7 @@ __FBSDID("$FreeBSD$");
* XXX
*/
#include <cxgb_include.h>
#include <ulp/toecore/cxgb_toedev.h>
static struct mtx offload_db_lock;
static TAILQ_HEAD(, toedev) offload_dev_list;

View File

@ -91,6 +91,7 @@ __FBSDID("$FreeBSD$");
#include <machine/bus.h>
#include <sys/mvec.h>
#include <ulp/toecore/cxgb_toedev.h>
#include <ulp/tom/cxgb_l2t.h>
#include <ulp/tom/cxgb_defs.h>
#include <ulp/tom/cxgb_tom.h>
#include <ulp/tom/cxgb_t3_ddp.h>

View File

@ -51,6 +51,7 @@ __FBSDID("$FreeBSD$");
#include <netinet/if_ether.h>
#include <cxgb_include.h>
#include <ulp/tom/cxgb_l2t.h>
#define VLAN_NONE 0xfff
#define SDL(s) ((struct sockaddr_dl *)s)

View File

@ -71,6 +71,7 @@ __FBSDID("$FreeBSD$");
#include <common/cxgb_ctl_defs.h>
#include <cxgb_offload.h>
#include <ulp/toecore/cxgb_toedev.h>
#include <ulp/tom/cxgb_l2t.h>
#include <ulp/tom/cxgb_defs.h>
#include <ulp/tom/cxgb_tom.h>
#include <ulp/tom/cxgb_t3_ddp.h>

View File

@ -82,6 +82,7 @@ __FBSDID("$FreeBSD$");
#include <common/cxgb_t3_cpl.h>
#include <cxgb_offload.h>
#include <ulp/toecore/cxgb_toedev.h>
#include <ulp/tom/cxgb_l2t.h>
#include <ulp/tom/cxgb_tom.h>
#include <ulp/tom/cxgb_defs.h>
#include <ulp/tom/cxgb_t3_ddp.h>

View File

@ -33,6 +33,7 @@ POSSIBILITY OF SUCH DAMAGE.
#ifndef CXGB_TOM_H_
#define CXGB_TOM_H_
#include <sys/protosw.h>
#include <netinet/toedev.h>
#define LISTEN_INFO_HASH_SIZE 32

View File

@ -1,15 +1,38 @@
# $FreeBSD$
SUBDIR= cxgb
SUBDIR+= toecore
SUBDIR+= tom
SUBDIR+= ${_toecore}
SUBDIR+= ${_tom}
SUBDIR+= ${_iw_cxgb}
SUBDIR+= cxgb_t3fw
.if ${MACHINE_ARCH} == "i386"
.if defined(SYSDIR)
_sysdir = ${SYSDIR}
.endif
# Based on bsd.kmod.mk but we don't modify SYSDIR in this one.
.for _dir in ${.CURDIR}/../.. ${.CURDIR}/../../.. ${.CURDIR}/../../../.. \
/sys /usr/src/sys
.if !defined(_sysdir) && exists(${_dir}/kern/) && exists(${_dir}/conf/kmod.mk)
_sysdir = ${_dir}
.endif
.endfor
.if !defined(_sysdir) || !exists(${_sysdir}/kern/) || \
!exists(${_sysdir}/conf/kmod.mk)
.error "can't find kernel source tree"
.endif
_toe_header = ${_sysdir}/netinet/toedev.h
.if exists(${_toe_header})
_toecore = toecore
_tom = tom
.endif
.if ${MACHINE_ARCH} == "i386" && exists(${_toe_header})
_iw_cxgb = iw_cxgb
.endif
.if ${MACHINE_ARCH} == "amd64"
.if ${MACHINE_ARCH} == "amd64" && exists(${_toe_header})
_iw_cxgb = iw_cxgb
.endif