| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
Thanks to Garrett Cooper for reporting the issue.
MFC after: 3 days
X-MFC: 238501
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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)
|
|
|
|
| |
MFC after: 1 month
|
|
|
|
| |
'netstat -sp pfsync' got broken. Fix this.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
__uint16_t, we can partially undo r228668.
Note the remark "Work around a clang false positive with format string
warnings and ntohs macros (see LLVM PR 11313)" was actually incorrect.
Before r232745, on some arches, the ntohs() macros did in fact return
int, not uint16_t, so clang was right in warning about the %hu format
string.
MFC after: 2 weeks
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
get rid of testing explicitly for clang (using ${CC:T:Mclang}) in
individual Makefiles.
Instead, use the following extra macros, for use with clang:
- NO_WERROR.clang (disables -Werror)
- NO_WCAST_ALIGN.clang (disables -Wcast-align)
- NO_WFORMAT.clang (disables -Wformat and friends)
- CLANG_NO_IAS (disables integrated assembler)
- CLANG_OPT_SMALL (adds flags for extra small size optimizations)
As a side effect, this enables setting CC/CXX/CPP in src.conf instead of
make.conf! For clang, use the following:
CC=clang
CXX=clang++
CPP=clang-cpp
MFC after: 2 weeks
|
|
|
|
|
|
|
|
|
|
|
|
| |
Extend the so far IPv4-only support for multiple routing tables (FIBs)
introduced in r178888 to IPv6 providing feature parity.
This includes an extended rtalloc(9) KPI for IPv6, the necessary
adjustments to the network stack, and user land support as in netstat.
Sponsored by: Cisco Systems, Inc.
Reviewed by: melifaro (basically)
MFC after: 10 days
|
|
|
|
|
|
|
| |
SCTP statistics when there is not SCTP in the kernel.
This problem was reported by Sean Mahood.
MFC after: 1 week.
|
|
|
|
| |
breaks ABI, but makes probability of ABI breakage in future less.
|
|
|
|
|
|
|
| |
error: variable 'ifnetfound' set but not used
Approved by: dim
MFC after: 3 days
|
|
|
|
|
|
|
|
|
|
| |
The index() and rindex() functions were marked LEGACY in the 2001
revision of POSIX and were subsequently removed from the 2008 revision.
The strchr() and strrchr() functions are part of the C standard.
This makes the source code a lot more consistent, as most of these C
files also call into other str*() routines. In fact, about a dozen
already perform strchr() calls.
|
| |
|
|
|
|
|
|
|
|
|
| |
o Teach netstat(1) -z to reset these stats sysctls.
PR: bin/153206
Reviewed by: glebuis
Sponsored by: NGINX, Inc.
MFC after: 1 month
|
|
|
|
|
|
|
| |
formats in usr.bin/netstat/atalk.c by conditionally adding NO_WFORMAT to
the Makefile instead.
MFC after: 1 week
|
|
|
|
|
|
| |
printf format warnings and conditional operators.
MFC after: 1 week
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Correctly handle -a.
* -A isn't supported.
* Show all closed 1-to-1 and 1-to-many style sockets.
* Show all listening 1-to-many style sockets.
* Use consistent formatting for -W.
PR: 150642
Approved by: re@
MFC after: 4 weeks.
|
|
|
|
|
|
| |
other address type.
MFC after: 4 weeks
|
|
|
|
|
|
|
|
| |
net.isr.dispatch, and about per-protocol dispatch policies.
MFC after: 3 weeks
Reviewed by: bz
Sponsored by: Juniper Networks, Inc.
|
|
|
|
|
|
| |
(I didn't try to fix negative TCP timers with -x.)
MFC after: 3 days
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
each workstream, rather than on every protocol, is prettier, it makes
machine-parsing of netstat -Q output a lot harder. Repeat the information
and hope that the user forgives us slightly dense formatting.
MFC after: 3 days
Reported by: bz
Sponsored by: Juniper Networks
|
|
|
|
|
|
| |
Reported by: bz
MFC after: 3 days
Sponsored by: Juniper Networks
|
|
|
|
|
|
|
|
| |
stack from the output of `netstat -ani'.
- The node-local multicast address in the output of `netstat -rn'
should be handled as well.
Spotted by: Bernd Walter <ticso__at__cicely7.cicely.de>
|
|
|
|
|
|
|
|
|
| |
is in accordance with the information provided at
ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
Also add $FreeBSD$ to a few files to keep svn happy.
Discussed with: imp, rwatson
|
| |
|
|
|
|
|
| |
Pointed out by: brucec@
MFC after: 3 weeks
|
|
|
|
|
|
|
| |
field printed an absolute value rather than the delta from the last value
Approved by: emaste (mentor)
MFC after: 1 week
|
|
|
|
|
|
|
|
|
|
| |
Retransmitted Packets
Zero Window Advertisements
Out of Order Receives
These statistics are available via the -T argument to
netstat(1).
MFC after: 2 weeks
|
|
|
|
|
|
| |
Found by: clang
Submitted by: Norberto Lopes, nlopes dot ml at gmail dot com
Approved by: rpaulo (mentor)
|
|
|
|
| |
Submitted by: Maxim Dounin
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
starting from netgraph import in 1999.
netstat(8) used pointer to node as node address, oops. That didn't
work, we need the node ID in brackets to successfully address a node.
We can't look into ng_node, due to inability to include netgraph/netgraph.h
in userland code. So let the node make a hint for a userland, storing
the node ID in its private data.
MFC after: 2 weeks
|
|
|
|
|
|
|
| |
netstat -Q.
MFC after: 6 days
Sponsored by: Juniper Networks
|
|
|
|
|
|
|
|
|
| |
query routines. This code is necessarily more fragile in the presence of
kernel changes than querying the kernel via sysctl (the default), but
useful when investigating crashes or live kernel state via firewire.
MFC after: 1 week
Sponsored by: Juniper Networks
|
|
|
|
|
| |
Suggested by: bz
MFC after: 1 week
|
|
|
|
|
|
|
|
| |
Currently supports only reporting on live systems via sysctl, kmem support
needs to be edded.
MFC after: 1 week
Sponsored by: Juniper Networks
|
|
|
|
|
|
|
|
| |
exits netstat after _howmany_ outputs.
Requested by: thomasa
Reviewed by: freebsd-net (bms, old version in early 2007)
MFC after: 1 month
|
|
|
|
| |
needed.
|
|
|
|
| |
Tested with: make universe
|
| |
|
|
|
|
| |
Tested by: glebius
|
|
|
|
|
|
|
| |
Try to version the struct in a backward compatible way.
People asked for the versioning of the stats structs in general before.
MFC after: 5 days
|
|
|
|
|
|
|
|
|
| |
input path when showing informations about the interfaces.
Obtained from: Sandvine Incorporated
Reviewed by: emaste
Sponsored by: Sandvine Incorporated
MFC: 2 weeks
|
|
|
|
|
|
|
|
| |
otherwise sign extension leads to unlikely values when in the negative
range of the signed short structure fields that hold the statistics.
The type used to hold routing statistics is arguably also incorrect.
MFC after: 3 days
|
|
|
|
|
|
|
| |
only for the kvm case, as we supported SOCK_SEQPACKET via sysctl already.
Sponsored by: Google
MFC after: 3 months
|
| |
|
|
|
|
|
|
|
|
|
| |
feature when you have a seemingly stuck socket and want to figure
out why it has not been closed yet.
No plans to MFC this, as it changes the netstat sysctl ABI.
Reviewed by: andre, rwatson, Eric Van Gyzen
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
New counters now exist for:
requests sent
replies sent
requests received
replies received
packets received
total packets dropped due to no ARP entry
entrys timed out
Duplicate IPs seen
The new statistics are seen in the netstat command
when it is given the -s command line switch.
MFC after: 2 weeks
In collaboration with: bz
|
|
|
|
| |
Approved by: re (kib)
|