HomeFreeBSD

Rework key_sendup_mbuf() a bit:

Description

Rework key_sendup_mbuf() a bit:

o count in_nomem counter when we have failed to allocate mbuf for

promisc socket;

o count in_msgtarget counter when we have secussfully sent data to socket;
o Since we are sending messages in a loop, returning error on first fail

interrupts the loop, and all remaining sockets will not receive this
message. So, do not return error when we have failed to send data to ALL
or REGISTERED target. Return error only for KEY_SENDUP_ONE case. Now,
when some socket has overfilled its receive buffer, this will not break
other sockets.

MFC after: 2 weeks

Details

Provenance
aeAuthored on
Parents
rS330778: Everywhere that multiple registers are accessed in sequence, lock/unlock
Branches
Unknown
Tags
Unknown