Age | Commit message (Collapse) | Author |
|
operations. This about doubles the routine's throughput.
No binary change on the 32-bit bootblocks
Discussed with miod@ long ago
|
|
By increasing the number of available TX descriptors we also get
a larger NVS message ring. Altogether this results in about 30%
performance improvement.
While here, offset all TX descriptor IDs by a fixed amount so that
the Transaction ID 0 to descriptor ID mapping produces a non-zero
result making error handling more reliable.
|
|
|
|
just use pd->m. Then pf_test() can also operate on pd.m and set
the *m0 value in the caller just before it returns.
OK sashan@
|
|
the next datagram is zero.
Tested by otto@
ok mpi@ kettnis@ otto@
|
|
When multiple RTF_CLONING routes exist for a given subnet, bringing
one of the interfaces up/down could make impossible to insert new
ARP/NDP entries.
In this case the first RTF_CONNECTED route of the multipath list no
longer corresponded to the wired interface because it had the same
priority as the carp(4) route.
This is another regression of supporting multiple RTF_CONNECTED routes.
Fix a bug with a CARP setup reported by stsp@
ok stsp@
|
|
Prodded by claudio@
|
|
Make rdomain's default loopback test pass again.
|
|
In order to stop abusing lo0 for all rdomains, a new loopback interface
will be created every time a rdomain is created. The unit number will
be the same as the rdomain, i.e. lo1 will be attached to rdomain 1.
If this loopback interface is already in use it wont be possible to create
the corresponding rdomain.
In order to know which lo(4) interface is attached to a rdomain, its index
is stored in the rtable/rdomain map.
This is a long overdue since the introduction of rtable/rdomain. It also
fixes a recent regression due to resetting the rdomain of an incoming
packet reported by semarie@, Andreas Bartelt and Nils Frohberg.
ok claudio@
|
|
|
|
|
|
This code insn't used since ART is the default.
ok vgross@
|
|
splnet() was necessary when link state changes were executed from
hardware interrupt handlers, nowdays all the changes are serialized
by the KERNEL_LOCK() so assert that it is held instead.
ok mikeb@
|
|
suggested by mpi@ and mikeb@
|
|
each counter is identified by an enum value which correspond to the
original members of the ipstat struct.
ipstat_inc(ips_foo) replaces ipstat.ips_foo++ for the actual updates.
ipstat_inc is a thin wrapper around counters_inc.
counters are still returned to userland via the ipstat struct for now.
ok mpi@ mikeb@
|
|
specifically, counters_inc, counters_add, and counters_pkt. the latter
increments both a packet counter and adds to byte counter instead of just
one counter at a time.
part of a bigger diff thats ok mpi@ mikeb@
|
|
ok mpi@ visa@ mikeb@
|
|
From patrick keshishian
|
|
|
|
Introduce a new ioctl for VNDIOCSET, the old ioctl will stay around for
a bit to cope with old vnconfig/mount_vnd.
ok deraadt@
|
|
|
|
The atomic decrement of the number of available descriptors must
be performed before sending the RNDIS message to the hypervisor
so that packet transmit completion that may execute in parallel
won't increase the value past the maximum.
|
|
doing anything for us, and remove some whitespaces from the header that
can be found near the removed lines.
ok mikeb@
|
|
This makes the serial console work properly and makes Cubieboard4 go
multi-user.
|
|
|
|
|
|
|
|
write() to write one packet. With this we also get support for writing
multiple ofp packets with a single write.
ok mikeb@
|
|
of assuming tha the NCM pointer will follow immediately after the header.
Tested by Bryan Vyhmeister and Otte Moerbeek
ok otto
|
|
proper mbuf header length.
ok mikeb@
|
|
|
|
|
|
Reported and tested by gonzalo@ on a Macbookair7,1.
|
|
|
|
|
|
the chain was being read. While here rename mbuf variable and remove
unused ones.
ok mikeb@
|
|
closef() on a socket will call soclose() which call splsoftnet(). So
make sure we release the IPL level first in error paths.
Found by Nils Frohberg while testing another diff.
ok mikeb@, bluhm@
|
|
Timers configured via rt_timer_add(9) always run at IPL_SOFTNET, so
assert that rather than calling splsoftnet().
ok bluhm@
|
|
Fix a typo introduced in m_pullup(9) refactoring and found the hard
way by semarie@ while testing another diff.
ok mikeb@, dlg@
|
|
|
|
|
|
|
|
|
|
|
|
so the userland programs can use it without having to do any special
treatment (e.g. having to read() whole packets with just 1 call or lose it).
This also allows userland to read more than one ofp header/payload with one
syscall.
ok mikeb@
|
|
|
|
ok vgross@
|
|
options.
Make sure the next hop is directly reachable if IPOPT_SSRR is set.
Input from and ok vgross@
|
|
ifa_ifwithnet() checks if a given address is directly connected. This
function predates the introduction of the BSD routing table. Nowdays
we can check if the route for the given address is marked as RTF_GATEWAY.
This works on OpenBSD because we always install RTF_CONNECTED routes
for subnets a and RTF_HOST route per p2p link.
ok vgross@
|
|
all HCs.
ok patrick@
|