CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]    2026/11/04 23:49:59

Modified files:
        sys/net        : if_aggr.c 

Log message:
fix up how aggr tries to scavange a flowid for the mbuf.

Samuel Thibault on misc@ noticed that aggr(4) wasn't balancing
traffic over ports like trunk(4) did, because aggr(4) relies on
mbuf flowids where trunk(4) parses and hashes packets onto ports
as a matter of course.

if the ports don't do RSS hashing and set a flowid, aggr(4) was
supposed to use the port interface index as a cheap way to populate
a flowid, which it did, but i forgot to also
SET(m->m_pkthdr.csum_flags, M_FLOWID).

this tweaks the use of flowids in the transmit path too. if a flowid
isnt set it'll fall back to the mbuf receive interface index. locally
generated traffic should have a flowid set most of the time cos
most traffic is tcp, and tcp generates flowid.

Reply via email to