head	1.20;
access;
symbols
	RELENG_8_4:1.20.0.2
	RELENG_9_1_0_RELEASE:1.16.2.4.2.2
	RELENG_9_1:1.16.2.4.0.2
	RELENG_9_1_BP:1.16.2.4
	RELENG_8_3_0_RELEASE:1.14.2.3.6.1
	RELENG_8_3:1.14.2.3.0.6
	RELENG_8_3_BP:1.14.2.3
	RELENG_9_0_0_RELEASE:1.16.2.1.2.1
	RELENG_9_0:1.16.2.1.0.2
	RELENG_9_0_BP:1.16.2.1
	RELENG_9:1.16.0.2
	RELENG_9_BP:1.16
	RELENG_7_4_0_RELEASE:1.8.2.4.4.1
	RELENG_8_2_0_RELEASE:1.14.2.3.4.1
	RELENG_7_4:1.8.2.4.0.4
	RELENG_7_4_BP:1.8.2.4
	RELENG_8_2:1.14.2.3.0.4
	RELENG_8_2_BP:1.14.2.3
	RELENG_8_1_0_RELEASE:1.14.2.3.2.1
	RELENG_8_1:1.14.2.3.0.2
	RELENG_8_1_BP:1.14.2.3
	RELENG_7_3_0_RELEASE:1.8.2.4.2.1
	RELENG_7_3:1.8.2.4.0.2
	RELENG_7_3_BP:1.8.2.4
	RELENG_8_0_0_RELEASE:1.14.2.1.2.1
	RELENG_8_0:1.14.2.1.0.2
	RELENG_8_0_BP:1.14.2.1
	RELENG_8:1.14.0.2
	RELENG_8_BP:1.14
	RELENG_7_2_0_RELEASE:1.8.2.3.4.1
	RELENG_7_2:1.8.2.3.0.4
	RELENG_7_2_BP:1.8.2.3
	RELENG_7_1_0_RELEASE:1.8.2.3.2.1
	RELENG_7_1:1.8.2.3.0.2
	RELENG_7_1_BP:1.8.2.3
	RELENG_7:1.8.0.2;
locks; strict;
comment	@# @;


1.20
date	2012.11.17.01.52.54;	author svnexp;	state Exp;
branches
	1.20.2.1;
next	1.19;

1.19
date	2012.06.19.07.34.13;	author np;	state Exp;
branches;
next	1.18;

1.18
date	2012.05.30.13.55.43;	author uqs;	state Exp;
branches;
next	1.17;

1.17
date	2012.05.25.03.00.34;	author bz;	state Exp;
branches;
next	1.16;

1.16
date	2010.02.24.10.16.18;	author np;	state Exp;
branches
	1.16.2.1;
next	1.15;

1.15
date	2009.10.05.20.21.41;	author np;	state Exp;
branches;
next	1.14;

1.14
date	2009.06.19.23.34.32;	author kmacy;	state Exp;
branches
	1.14.2.1;
next	1.13;

1.13
date	2008.11.12.21.30.39;	author bz;	state Exp;
branches;
next	1.12;

1.12
date	2008.09.23.03.16.54;	author kmacy;	state Exp;
branches;
next	1.11;

1.11
date	2008.08.12.00.27.32;	author kmacy;	state Exp;
branches;
next	1.10;

1.10
date	2008.07.18.06.12.31;	author kmacy;	state Exp;
branches;
next	1.9;

1.9
date	2008.04.19.03.22.42;	author kmacy;	state Exp;
branches;
next	1.8;

1.8
date	2008.02.26.23.05.05;	author kmacy;	state Exp;
branches
	1.8.2.1;
next	1.7;

1.7
date	2008.02.26.03.02.19;	author kmacy;	state Exp;
branches;
next	1.6;

1.6
date	2008.02.23.01.04.19;	author kmacy;	state Exp;
branches;
next	1.5;

1.5
date	2008.01.26.01.00.56;	author kmacy;	state Exp;
branches;
next	1.4;

1.4
date	2008.01.13.22.31.59;	author kmacy;	state Exp;
branches;
next	1.3;

1.3
date	2007.12.17.08.17.51;	author kmacy;	state Exp;
branches;
next	1.2;

1.2
date	2007.12.16.05.34.18;	author kmacy;	state Exp;
branches;
next	1.1;

1.1
date	2007.12.15.22.03.19;	author kmacy;	state Exp;
branches;
next	;

1.20.2.1
date	2012.11.17.01.52.54;	author svnexp;	state dead;
branches;
next	1.20.2.2;

1.20.2.2
date	2013.03.28.13.05.19;	author svnexp;	state Exp;
branches;
next	;

1.16.2.1
date	2011.09.23.00.51.37;	author kensmith;	state Exp;
branches
	1.16.2.1.2.1;
next	1.16.2.2;

1.16.2.2
date	2012.07.01.09.17.55;	author np;	state Exp;
branches;
next	1.16.2.3;

1.16.2.3
date	2012.07.01.09.35.15;	author np;	state Exp;
branches;
next	1.16.2.4;

1.16.2.4
date	2012.07.01.12.00.36;	author np;	state Exp;
branches
	1.16.2.4.2.1;
next	1.16.2.5;

1.16.2.5
date	2012.11.17.11.37.16;	author svnexp;	state Exp;
branches;
next	;

1.16.2.1.2.1
date	2011.11.11.04.20.22;	author kensmith;	state Exp;
branches;
next	1.16.2.1.2.2;

1.16.2.1.2.2
date	2012.11.17.08.37.13;	author svnexp;	state Exp;
branches;
next	;

1.16.2.4.2.1
date	2012.08.05.23.54.33;	author kensmith;	state Exp;
branches;
next	1.16.2.4.2.2;

1.16.2.4.2.2
date	2012.11.17.08.48.04;	author svnexp;	state Exp;
branches;
next	;

1.14.2.1
date	2009.08.03.08.13.06;	author kensmith;	state Exp;
branches
	1.14.2.1.2.1;
next	1.14.2.2;

1.14.2.2
date	2009.11.12.00.20.31;	author np;	state Exp;
branches;
next	1.14.2.3;

1.14.2.3
date	2010.04.05.23.29.27;	author np;	state Exp;
branches
	1.14.2.3.2.1
	1.14.2.3.4.1
	1.14.2.3.6.1;
next	1.14.2.4;

1.14.2.4
date	2012.11.17.10.36.55;	author svnexp;	state Exp;
branches;
next	;

1.14.2.1.2.1
date	2009.10.25.01.10.29;	author kensmith;	state Exp;
branches;
next	;

1.14.2.3.2.1
date	2010.06.14.02.09.06;	author kensmith;	state Exp;
branches;
next	;

1.14.2.3.4.1
date	2010.12.21.17.09.25;	author kensmith;	state Exp;
branches;
next	;

1.14.2.3.6.1
date	2012.03.03.06.15.13;	author kensmith;	state Exp;
branches;
next	1.14.2.3.6.2;

1.14.2.3.6.2
date	2012.11.17.08.25.32;	author svnexp;	state Exp;
branches;
next	;

1.8.2.1
date	2008.04.18.02.45.38;	author kmacy;	state Exp;
branches;
next	1.8.2.2;

1.8.2.2
date	2008.07.28.23.37.33;	author kmacy;	state Exp;
branches;
next	1.8.2.3;

1.8.2.3
date	2008.08.22.01.23.39;	author kmacy;	state Exp;
branches
	1.8.2.3.2.1
	1.8.2.3.4.1;
next	1.8.2.4;

1.8.2.4
date	2010.01.21.12.18.29;	author np;	state Exp;
branches
	1.8.2.4.2.1
	1.8.2.4.4.1;
next	1.8.2.5;

1.8.2.5
date	2012.11.17.08.06.45;	author svnexp;	state Exp;
branches;
next	;

1.8.2.3.2.1
date	2008.11.25.02.59.29;	author kensmith;	state Exp;
branches;
next	;

1.8.2.3.4.1
date	2009.04.15.03.14.26;	author kensmith;	state Exp;
branches;
next	;

1.8.2.4.2.1
date	2010.02.10.00.26.20;	author kensmith;	state Exp;
branches;
next	;

1.8.2.4.4.1
date	2010.12.21.17.10.29;	author kensmith;	state Exp;
branches;
next	1.8.2.4.4.2;

1.8.2.4.4.2
date	2012.11.17.08.17.26;	author svnexp;	state Exp;
branches;
next	;


desc
@@


1.20
log
@Switching exporter and resync
@
text
@# $FreeBSD: head/sys/modules/cxgb/cxgb/Makefile 237263 2012-06-19 07:34:13Z np $

.include <bsd.own.mk>

CXGB = ${.CURDIR}/../../../dev/cxgb
.PATH: ${CXGB} ${CXGB}/common ${CXGB}/sys

KMOD=	if_cxgb
SRCS=	cxgb_mc5.c cxgb_vsc8211.c cxgb_ael1002.c cxgb_mv88e1xxx.c 
SRCS+=	cxgb_xgmac.c cxgb_vsc7323.c cxgb_t3_hw.c cxgb_main.c cxgb_aq100x.c
SRCS+=  cxgb_sge.c cxgb_tn1010.c
SRCS+=	device_if.h bus_if.h pci_if.h
SRCS+=	opt_inet.h opt_inet6.h opt_zero.h opt_sched.h
SRCS+=	uipc_mvec.c

CFLAGS+= -g -DDEFAULT_JUMBO -I${CXGB}

.if !defined(KERNBUILDDIR)
.if ${MK_INET_SUPPORT} != "no"
opt_inet.h:
	@@echo "#define INET 1" > ${.TARGET}
	@@echo "#define TCP_OFFLOAD 1" >> ${.TARGET}
.endif

.if ${MK_INET6_SUPPORT} != "no"
opt_inet6.h:
	@@echo "#define INET6 1" > ${.TARGET}
.endif
.endif

.include <bsd.kmod.mk>
@


1.20.2.1
log
@file Makefile was added on branch RELENG_8_4 on 2013-03-28 13:05:19 +0000
@
text
@d1 31
@


1.20.2.2
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/248810
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@a0 16
# $FreeBSD: releng/8.4/sys/modules/cxgb/cxgb/Makefile 206220 2010-04-05 23:29:27Z np $

CXGB = ${.CURDIR}/../../../dev/cxgb
.PATH: ${CXGB} ${CXGB}/common ${CXGB}/sys

KMOD=	if_cxgb
SRCS=	cxgb_mc5.c cxgb_vsc8211.c cxgb_ael1002.c cxgb_mv88e1xxx.c 
SRCS+=	cxgb_xgmac.c cxgb_vsc7323.c cxgb_t3_hw.c cxgb_main.c cxgb_aq100x.c
SRCS+=  cxgb_sge.c cxgb_offload.c cxgb_tn1010.c
SRCS+=	device_if.h bus_if.h pci_if.h
SRCS+=	opt_inet.h opt_zero.h opt_sched.h
SRCS+=	uipc_mvec.c

CFLAGS+= -g -DDEFAULT_JUMBO -I${CXGB}

.include <bsd.kmod.mk>
@


1.19
log
@SVN rev 237263 on 2012-06-19 07:34:13Z by np

- Updated TOE support in the kernel.

- Stateful TCP offload drivers for Terminator 3 and 4 (T3 and T4) ASICs.
  These are available as t3_tom and t4_tom modules that augment cxgb(4)
  and cxgbe(4) respectively.  The cxgb/cxgbe drivers continue to work as
  usual with or without these extra features.

- iWARP driver for Terminator 3 ASIC (kernel verbs).  T4 iWARP in the
  works and will follow soon.

Build-tested with make universe.

30s overview
============
What interfaces support TCP offload?  Look for TOE4 and/or TOE6 in the
capabilities of an interface:
# ifconfig -m | grep TOE

Enable/disable TCP offload on an interface (just like any other ifnet
capability):
# ifconfig cxgbe0 toe
# ifconfig cxgbe0 -toe

Which connections are offloaded?  Look for toe4 and/or toe6 in the
output of netstat and sockstat:
# netstat -np tcp | grep toe
# sockstat -46c | grep toe

Reviewed by:	bz, gnn
Sponsored by:	Chelsio communications.
MFC after:	~3 months (after 9.1, and after ensuring MFC is feasible)
@
text
@d1 1
a1 1
# $FreeBSD$
@


1.18
log
@SVN rev 236311 on 2012-05-30 13:55:43Z by uqs

Unbreak make depend.
@
text
@d11 1
a11 1
SRCS+=  cxgb_sge.c cxgb_offload.c cxgb_tn1010.c
d22 1
@


1.17
log
@SVN rev 235963 on 2012-05-25 03:00:34Z by bz

MFp4 bz_ipv6_fast:

  Allow LRO to work on IPv6 as well.
  Fix the module Makefile to at least properly inlcude opt_inet6.h
  and allow builds without INET or INET6.

  Sponsored by:	The FreeBSD Foundation
  Sponsored by:	iXsystems

Reviewed by:	gnn (as part of the whole)
MFC After:	3 days
@
text
@d3 2
@


1.16
log
@SVN rev 204274 on 2010-02-24 10:16:18Z by np

There is no need to test __FreeBSD_version for features that have
been around for a long time now (7.1-ish or even earlier); assume
they are present.  These includes MSI, TSO, LRO, VLAN, INTR_FILTERS,
FIRMWARE, etc.

Also, eliminate some dead code and clean up in other places as part
of this quick once-over.

MFC after:	1 week
@
text
@d11 1
a11 1
SRCS+=	opt_inet.h opt_zero.h opt_sched.h
d16 12
@


1.16.2.1
log
@SVN rev 225736 on 2011-09-23 00:51:37Z by kensmith

Copy head to stable/9 as part of 9.0-RELEASE release cycle.

Approved by:	re (implicit)
@
text
@@


1.16.2.2
log
@SVN rev 237916 on 2012-07-01 09:17:55Z by np

MFC r231317, r235963 (bz@@), r234831, r234833.

r231317
Add IPv6 TSO (including TSO+VLAN) support to cxgb(4).

r235963 (bz@@)
Allow LRO to work on IPv6 as well.
Fix the module Makefile to at least properly inlcude opt_inet6.h
and allow builds without INET or INET6.

r234831
Make sure that the firmware version is available in
dev.t4nex.X.firmware_version even if the driver fails to attach
properly.  At least it'll be easy to tell what we're dealing with.

r234833:
Change the default to not use packet counters to generate rx interrupts.
Rely solely on the timer based mechanism.

Update man page to reflect this change.
@
text
@d11 1
a11 1
SRCS+=	opt_inet.h opt_inet6.h opt_zero.h opt_sched.h
a15 12
.if !defined(KERNBUILDDIR)
.if ${MK_INET_SUPPORT} != "no"
opt_inet.h:
	@@echo "#define INET 1" > ${.TARGET}
.endif

.if ${MK_INET6_SUPPORT} != "no"
opt_inet6.h:
	@@echo "#define INET6 1" > ${.TARGET}
.endif
.endif

@


1.16.2.3
log
@SVN rev 237918 on 2012-07-01 09:35:15Z by np

Partial MFC of r236311 (uqs@@):

Unbreak make depend.
@
text
@a2 2
.include <bsd.own.mk>

@


1.16.2.4
log
@SVN rev 237920 on 2012-07-01 12:00:36Z by np

Backport just the sys/{dev,modules}/cxgb{,e}/ parts of r237263, and then
disable the TOE and iWARP modules in the Makefiles (they won't compile
without the rest of r237263).

This reduces diffs between the cxgb/cxgbe drivers in head and 9 and
makes it easy to MFC other fixes to 9.
@
text
@d11 1
a11 1
SRCS+=  cxgb_sge.c cxgb_tn1010.c
a21 1
	@@echo "#define TCP_OFFLOAD 1" >> ${.TARGET}
@


1.16.2.5
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 242902
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r242902 | dteske | 2012-11-11 23:29:45 +0000 (Sun, 11 Nov 2012) | 10 lines
## SVN ##
## SVN ## Fix a regression introduced by SVN r211417 that saw the breakage of a feature
## SVN ## documented in usr.sbin/sysinstall/help/shortcuts.hlp (reproduced below):
## SVN ##
## SVN ## If /usr/sbin/sysinstall is linked to another filename, say
## SVN ## `/usr/local/bin/configPackages', then the basename will be used
## SVN ## as an implicit command name.
## SVN ##
## SVN ## Reviewed by:	adrian (co-mentor)
## SVN ## Approved by:	adrian (co-mentor)
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d1 1
a1 1
# $FreeBSD: stable/9/sys/modules/cxgb/cxgb/Makefile 237920 2012-07-01 12:00:36Z np $
@


1.16.2.4.2.1
log
@SVN rev 239080 on 2012-08-05 23:54:33Z by kensmith

Copy stable/9 to releng/9.1 as part of the 9.1-RELEASE release process.

Approved by:	re (implicit)
@
text
@@


1.16.2.4.2.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/9.1/sys/modules/cxgb/cxgb/Makefile 237920 2012-07-01 12:00:36Z np $
@


1.16.2.1.2.1
log
@SVN rev 227445 on 2011-11-11 04:20:22Z by kensmith

Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release
cycle.

Approved by:	re (implicit)
@
text
@@


1.16.2.1.2.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/9.0/sys/modules/cxgb/cxgb/Makefile 204274 2010-02-24 10:16:18Z np $
@


1.15
log
@SVN rev 197791 on 2009-10-05 20:21:41Z by np

cxgb(4) updates, including:
- support for the new Gen-2, BT, and LP-CR cards.
- T3 firmware 7.7.0
- shared "common code" updates.

Approved by:	gnn (mentor)
Obtained from:	Chelsio
MFC after:	1 month
@
text
@a14 8
CFLAGS+= -DDISABLE_MBUF_IOVEC
#CFLAGS+= -DIFNET_MULTIQUEUE
#CFLAGS+= -DDISABLE_MBUF_IOVEC
#CFLAGS+= -DDEBUG -DDEBUG_PRINT
#CFLAGS+= -DINVARIANT_SUPPORT -DINVARIANTS 
#CFLAGS+= -DWITNESS
#CFLAGS += -DLOCK_PROFILING
#CFLAGS+= -DWITNESS
@


1.14
log
@SVN rev 194521 on 2009-06-19 23:34:32Z by kmacy

Greatly simplify cxgb by removing almost all of the custom mbuf management logic

- remove mbuf iovec - useful, but adds too much complexity when isolated to
   the driver

- remove driver private caching - insufficient benefit over UMA to justify
  the added complexity and maintenance overhead

- remove separate logic for managing multiple transmit queues, with the
  new drbr routines the control flow can be made to much more closely resemble
  legacy drivers

- remove dedicated service threads, with per-cpu callouts one can get the same
  benefit much more simply by registering a callout 1 tick in the future if there
  are still buffered packets

- remove embedded mbuf usage - Jeffr's changes will (I hope) soon be integrated
  greatly reducing the overhead of using kernel APIs for reference counting
  clusters

- add hysteresis to descriptor coalescing logic

- add coalesce threshold sysctls to allow users to decide at run-time
  between optimizing for forwarding / UDP or optimizing for TCP

- add once per second watchdog to effectively close the very rare races
  occurring from coalescing

- incorporate Navdeep's changes to the initialization path required to
  convert port and adapter locks back to ordinary mutexes (silencing BPF
  LOR complaints)

- enable prefetches in get_packet and tx cleaning

Reviewed by:	navdeep@@
MFC after:	2 weeks
@
text
@d8 1
a8 1
SRCS+=	cxgb_xgmac.c cxgb_vsc7323.c cxgb_t3_hw.c cxgb_main.c 
@


1.14.2.1
log
@SVN rev 196045 on 2009-08-03 08:13:06Z by kensmith

Copy head to stable/8 as part of 8.0 Release cycle.

Approved by:	re (Implicit)
@
text
@@


1.14.2.2
log
@SVN rev 199206 on 2009-11-12 00:20:31Z by np

MFC r197791

cxgb(4) updates, including:
- support for the new Gen-2, BT, and LP-CR cards.
- T3 firmware 7.7.0
- shared "common code" updates.
@
text
@d8 1
a8 1
SRCS+=	cxgb_xgmac.c cxgb_vsc7323.c cxgb_t3_hw.c cxgb_main.c cxgb_aq100x.c
@


1.14.2.3
log
@SVN rev 206220 on 2010-04-05 23:29:27Z by np

cxgb(4) MFCs: r204271,r204274,r204348,r204921,r205944,r205945,r205946,r205947,r205948,r205949,r205950,r206109

r204271:
Accessing an mbuf after it has been handed off to the hardware is a bad
race as it could already have been tx'd and freed by that time.  Place
the bpf tap just _before_ writing the gen bit.

This fixes a panic when running tcpdump on a cxgb interface.

r204274:
There is no need to test __FreeBSD_version for features that have
been around for a long time now (7.1-ish or even earlier); assume
they are present.  These includes MSI, TSO, LRO, VLAN, INTR_FILTERS,
FIRMWARE, etc.

Also, eliminate some dead code and clean up in other places as part
of this quick once-over.

r204348:
Support IFCAP_VLANHWTSO in cxgb(4).  It works with or without vlanhwtag.
While here, remove old DPRINTFs and tidy up the capability code a bit.

r204921:
Better TwinAx transceiver detection.

Originally submitted by: <Bruno dot Bittner at isilon dot com>
(This is a rewritten, corrected version of that patch)

r205944:
Refresh the firmware version immediately after it is upgraded (or downgraded).

r205945:
Improved PHY EDC settings.

r205946:
Do not attempt to retrieve interrupt information before it is available.

r205947:
Fix build with "nooptions INET"

r205948:
Fix tx drop statistics.

r205949:
Fix signed/unsigned mix-up that allowed txq->in_use to grow beyond txq->size.

r205950:
Multiple fixes related to queue set sizing and resources:

- Only the tunnelq (TXQ_ETH) requires a buf_ring, an ifq, and the watchdog/timer
  callouts.  Do not allocate these for the other tx queues.

- Use 16k jumbo clusters only on offload capable cards by default.

- Do not allocate a full tx ring for the offload queue if the card is not
  offload capable.

- Slightly better freelist size calculation.

- Fix nmbjumbo4 typo, remove unneeded global variables.

r206109:
Increase response queue size to avoid starvation, add a counter
to track it when it does occur.
@
text
@d15 8
@


1.14.2.4
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 242909
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r242909 | dim | 2012-11-12 07:47:19 +0000 (Mon, 12 Nov 2012) | 20 lines
## SVN ##
## SVN ## MFC r242625:
## SVN ##
## SVN ## Remove duplicate const specifiers in many drivers (I hope I got all of
## SVN ## them, please let me know if not).  Most of these are of the form:
## SVN ##
## SVN ## static const struct bzzt_type {
## SVN ##       [...list of members...]
## SVN ## } const bzzt_devs[] = {
## SVN ##       [...list of initializers...]
## SVN ## };
## SVN ##
## SVN ## The second const is unnecessary, as arrays cannot be modified anyway,
## SVN ## and if the elements are const, the whole thing is const automatically
## SVN ## (e.g. it is placed in .rodata).
## SVN ##
## SVN ## I have verified this does not change the binary output of a full kernel
## SVN ## build (except for build timestamps embedded in the object files).
## SVN ##
## SVN ## Reviewed by:	yongari, marius
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d1 1
a1 1
# $FreeBSD: stable/8/sys/modules/cxgb/cxgb/Makefile 206220 2010-04-05 23:29:27Z np $
@


1.14.2.3.6.1
log
@SVN rev 232438 on 2012-03-03 06:15:13Z by kensmith

Copy stable/8 to releng/8.3 as part of 8.3-RELEASE release cycle.

Approved by:	re (implicit)
@
text
@@


1.14.2.3.6.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/8.3/sys/modules/cxgb/cxgb/Makefile 206220 2010-04-05 23:29:27Z np $
@


1.14.2.3.4.1
log
@SVN rev 216617 on 2010-12-21 17:09:25Z by kensmith

Copy stable/8 to releng/8.2 in preparation for FreeBSD-8.2 release.

Approved by:	re (implicit)
@
text
@@


1.14.2.3.2.1
log
@SVN rev 209145 on 2010-06-14 02:09:06Z by kensmith

Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.

Approved by:	re (implicit)
@
text
@@


1.14.2.1.2.1
log
@SVN rev 198460 on 2009-10-25 01:10:29Z by kensmith

Copy stable/8 to releng/8.0 as part of 8.0-RELEASE release procedure.

Approved by:	re (implicit)
@
text
@@


1.13
log
@SVN rev 184893 on 2008-11-12 21:30:39Z by bz

Add opt_inet.h which has been needed since r184714, r184715 introducing
checks for #ifdef INET.

Submitted by:	kmacy (r184876, I splitted lines)
MFC after:	54 days
@
text
@d12 1
a12 1
SRCS+=	uipc_mvec.c cxgb_support.c cxgb_multiq.c 
@


1.12
log
@SVN rev 183292 on 2008-09-23 03:16:54Z by kmacy

Update cxgb include paths to not require prefixing with dev/cxgb

Submitted by:	Chelsio Inc.
@
text
@d10 2
a11 1
SRCS+=	device_if.h bus_if.h pci_if.h opt_zero.h opt_sched.h
@


1.11
log
@SVN rev 181616 on 2008-08-12 00:27:32Z by kmacy

Remove cxgb private lro implementation and switch to using system implementation.

Obtained from:	Chelsio Inc.
MFC after:	1 week
@
text
@d13 1
a13 1
CFLAGS+= -DCONFIG_CHELSIO_T3_CORE -g -DCONFIG_DEFINED -DDEFAULT_JUMBO -I${CXGB} -DSMP
@


1.10
log
@SVN rev 180583 on 2008-07-18 06:12:31Z by kmacy

import vendor fixes to cxgb
@
text
@d9 1
a9 1
SRCS+=  cxgb_sge.c cxgb_lro.c cxgb_offload.c cxgb_tn1010.c
@


1.9
log
@move cxgb_lt2.[ch] from NIC to TOE
move most offload functionality from NIC to TOE
factor out all socket and inpcb direct access
factor out access to locking in incpb, pcbinfo, and sockbuf
@
text
@d9 1
a9 1
SRCS+=  cxgb_sge.c cxgb_lro.c cxgb_offload.c 
@


1.8
log
@move remaining binaries in to blob headers
@
text
@d9 3
a11 4
SRCS+=  cxgb_sge.c cxgb_lro.c cxgb_offload.c cxgb_l2t.c
SRCS+=	device_if.h bus_if.h pci_if.h opt_zero.h opt_sched.h opt_global.h 
SRCS+=	uipc_mvec.c cxgb_support.c 
SRCS+=	cxgb_multiq.c 
@


1.8.2.1
log
@MFC of 1.133 import and fixes:
- add support for T3C
- add multicast support
- update copyrights
- add infrastructure for multiple transmit queues
- add support for compiling firmware in to the kernel
- add conditional define for enabling link at device attach
- exit tick handler if shutdown is in progress
- add sysctls for dumping transmit queues
- use jumbo clusters for large packets
- add pcpu caching
- add inline mbuf header on receive

- upgrade to version 5.0 of the firmware

Supported by: Chelsio Inc.
@
text
@d9 4
a12 3
SRCS+=  cxgb_sge.c cxgb_lro.c cxgb_offload.c 
SRCS+=	device_if.h bus_if.h pci_if.h opt_zero.h 
SRCS+=	uipc_mvec.c cxgb_support.c cxgb_multiq.c
d14 4
a17 1
CFLAGS+= -DCONFIG_CHELSIO_T3_CORE -g -DCONFIG_DEFINED -DDEFAULT_JUMBO -I${CXGB}
d19 4
a22 1
#CFLAGS+= -DINVARIANT_SUPPORT -DINVARIANTS -DWITNESS
d24 1
a24 2

.include <bsd.kmod.mk>@


1.8.2.2
log
@SVN rev 180944 on 2008-07-28 23:37:33Z by kmacy

MFC the following:
  - vendor bug fixes
  - driver side of iwarp support
  - driver side of TOE support
  - Makefile cleanup
@
text
@d7 1
a7 1
SRCS=   cxgb_mc5.c cxgb_vsc8211.c cxgb_ael1002.c cxgb_mv88e1xxx.c 
d9 5
a13 7
SRCS+=  cxgb_sge.c cxgb_lro.c cxgb_offload.c cxgb_tn1010.c
SRCS+=	device_if.h bus_if.h pci_if.h opt_zero.h opt_sched.h
SRCS+=	uipc_mvec.c cxgb_support.c cxgb_multiq.c 
CFLAGS+= -DCONFIG_CHELSIO_T3_CORE -g -DCONFIG_DEFINED -DDEFAULT_JUMBO -I${CXGB} -DSMP
CFLAGS+= -DDISABLE_MBUF_IOVEC
#CFLAGS+= -DIFNET_MULTIQUEUE
#CFLAGS+= -DDISABLE_MBUF_IOVEC
a14 4
#CFLAGS+= -DINVARIANT_SUPPORT -DINVARIANTS 
#CFLAGS+= -DWITNESS
#CFLAGS += -DLOCK_PROFILING
#CFLAGS+= -DWITNESS
d18 1
a18 1
.include <bsd.kmod.mk>
@


1.8.2.3
log
@SVN rev 181980 on 2008-08-22 01:23:39Z by kmacy

MFC 181616:
Remove cxgb private lro implementation and switch to using system implementation.

Obtained from:	Chelsio Inc.
@
text
@d9 1
a9 1
SRCS+=  cxgb_sge.c cxgb_offload.c cxgb_tn1010.c
@


1.8.2.4
log
@SVN rev 202745 on 2010-01-21 12:18:29Z by np

MFC r194917,r194918,r197043,r197791,r199239,r199240,r200003,r201907,r202671,r202678:

r194917:
About to add 10Gbase-T to known media types, this is just a whitespace
cleanup before that commit.  No functional impact.

r194918:
Add 10Gbase-T to known ethernet media types

Some parts of r194521 (convert the port and adapter locks from sx_locks to
regular mutexes).

r197043:
There is no need to log anything for a ctrlq stall or restart.  These are
normal events.

r197791:
cxgb(4) updates, including:
- support for the new Gen-2, BT, and LP-CR cards.
- T3 firmware 7.7.0
- shared "common code" updates.

r199239:
The 10GBASE-T card should use an IPG of 1.  Also enable the check
for low power startup on this card.

r199240:
Don't disable the XGMAC's tx on ifconfig down.  It is unnecessary
and can cause false backpressure in the chip.  Fix a us/ms mixup
while here.

r200003:
T3 firmware 7.8.0 for cxgb(4)

r201907:
Extra parantheses to keep certain compilers happy.

r202671:
Fix for a cxgb(4) panic.  cxgb_ioctl can be called by the IP and IPv6
layers with non-sleepable locks held.  Don't (potentially) sleep in
those situations.

r202678:
Complain if freelist queue sizes are significantly less than desired.
@
text
@d8 1
a8 1
SRCS+=	cxgb_xgmac.c cxgb_vsc7323.c cxgb_t3_hw.c cxgb_main.c cxgb_aq100x.c
@


1.8.2.5
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: stable/7/sys/modules/cxgb/cxgb/Makefile 202745 2010-01-21 12:18:29Z np $
@


1.8.2.4.4.1
log
@SVN rev 216618 on 2010-12-21 17:10:29Z by kensmith

Copy stable/7 to releng/7.4 in preparation for FreeBSD-7.4 release.

Approved by:	re (implicit)
@
text
@@


1.8.2.4.4.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/7.4/sys/modules/cxgb/cxgb/Makefile 202745 2010-01-21 12:18:29Z np $
@


1.8.2.4.2.1
log
@SVN rev 203736 on 2010-02-10 00:26:20Z by kensmith

Copy stable/7 to releng/7.3 as part of the 7.3-RELEASE process.

Approved by:	re (implicit)
@
text
@@


1.8.2.3.4.1
log
@SVN rev 191087 on 2009-04-15 03:14:26Z by kensmith

Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.

Approved by:	re (implicit)
@
text
@@


1.8.2.3.2.1
log
@SVN rev 185281 on 2008-11-25 02:59:29Z by kensmith

Create releng/7.1 in preparation for moving into RC phase of 7.1 release
cycle.

Approved by:	re (implicit)
@
text
@@


1.7
log
@Move firmware in to separate module that can be compiled statically in to the kernel
Add utility for converting future firmware revs to a C header file
@
text
@a21 1

a23 19

.if ${MACHINE_ARCH} != "ia64"

t3b_protocol_sram-1.1.0.bin: ${CXGB}/t3b_protocol_sram-1.1.0.bin.gz.uu
	uudecode -p < ${CXGB}/t3b_protocol_sram-1.1.0.bin.gz.uu \
	| gzip -dc > ${.TARGET}

FIRMWS+= t3b_protocol_sram-1.1.0.bin:t3bps110
CLEANFILES+= t3b_protocol_sram-1.1.0.bin

t3b_tp_eeprom-1.1.0.bin: ${CXGB}/t3b_tp_eeprom-1.1.0.bin.gz.uu
	uudecode -p < ${CXGB}/t3b_tp_eeprom-1.1.0.bin.gz.uu \
	| gzip -dc > ${.TARGET}

FIRMWS+= t3b_tp_eeprom-1.1.0.bin:t3btpe110
CLEANFILES+= t3b_tp_eeprom-1.1.0.bin


.endif
@


1.6
log
@- update firmware to 5.0
- add support for T3C
- add DDP support (zero-copy receive)
- fix TOE transmit of large requests
- fix shutdown so that sockets don't remain in CLOSING state indefinitely
- register listeners when an interface is brought up after tom is loaded
- fix setting of multicast filter
- enable link at device attach
- exit tick handler if shutdown is in progress
- add helper for logging TCB
- add sysctls for dumping transmit queues

- note that TOE wxill not be MFC'd until after 7.0 has been finalized

MFC after: 3 days
@
text
@d11 1
a11 1
SRCS+=	uipc_mvec.c cxgb_support.c
a26 7
# ld is broken on ia64
t3fw-5.0.0.bin: ${CXGB}/t3fw-5.0.0.bin.gz.uu
	uudecode -p < ${CXGB}/t3fw-5.0.0.bin.gz.uu \
	| gzip -dc > ${.TARGET}

FIRMWS= t3fw-5.0.0.bin:t3fw500
CLEANFILES+= t3fw-5.0.0.bin
a43 2


@


1.5
log
@add opt_global.h dependency
@
text
@d10 1
a10 1
SRCS+=	device_if.h bus_if.h pci_if.h opt_zero.h opt_sched.h opt_global.h
d15 2
d18 1
a18 1
#CFLAGS+= -DIFNET_MULTIQUEUE
d21 3
a23 1
#CFLAGS+= -DDEBUG -DDEBUG_PRINT
d28 2
a29 2
t3fw-4.7.0.bin: ${CXGB}/t3fw-4.7.0.bin.gz.uu
	uudecode -p < ${CXGB}/t3fw-4.7.0.bin.gz.uu \
d32 2
a33 2
FIRMWS= t3fw-4.7.0.bin:t3fw470
CLEANFILES+= t3fw-4.7.0.bin
@


1.4
log
@add cxgb_multiq.c to the build
@
text
@d10 1
a10 1
SRCS+=	device_if.h bus_if.h pci_if.h opt_zero.h opt_sched.h
@


1.3
log
@Make TCP offload work on HEAD (modulo negative interaction between sbcompress
and t3_push_frames).
 - Import latest changes to cxgb_main.c and cxgb_sge.c from toestack p4 branch
 - make driver local copy of tcp_subr.c and tcp_usrreq.c and override tcp_usrreqs so
   TOE can also functions on versions with unmodified TCP

- add cxgb back to the build
@
text
@d12 1
a12 1
#SRCS+=	cxgb_multiq.c 
@


1.2
log
@Don't use old style mbuf iovec interface
@
text
@d11 2
a12 2
SRCS+=	uipc_mvec.c 
#SRCS+=	cxgb_multiq.c cxgb_support.c
d15 1
a15 1
CFLAGS+= -DDISABLE_MBUF_IOVEC
@


1.1
log
@Move NIC driver (cxgb) into its own directory. Add toecore to support
registering different TOMs.
@
text
@d15 1
@

