diff options
| author | Bjoern A. Zeeb <bz@FreeBSD.org> | 2019-05-21 19:18:55 +0000 |
|---|---|---|
| committer | Bjoern A. Zeeb <bz@FreeBSD.org> | 2019-05-21 19:18:55 +0000 |
| commit | f9a6e8d72f2b2eb6baf71491e3ebc6fb57123104 (patch) | |
| tree | a6971e40180777b097a53360071b3928cbf37b9e /sys | |
| parent | 7115eaf80e733873b6ff84505ee22dacd767544a (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/netinet/udp_usrreq.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c index 7ea3d56c8c8d3..9613c43ee42d7 100644 --- a/sys/netinet/udp_usrreq.c +++ b/sys/netinet/udp_usrreq.c @@ -1505,8 +1505,9 @@ udp_output(struct inpcb *inp, struct mbuf *m, struct sockaddr *addr, if (flowtype != M_HASHTYPE_NONE) { m->m_pkthdr.flowid = flowid; M_HASHTYPE_SET(m, flowtype); + } #ifdef RSS - } else { + else { uint32_t hash_val, hash_type; /* * Calculate an appropriate RSS hash for UDP and @@ -1529,10 +1530,8 @@ udp_output(struct inpcb *inp, struct mbuf *m, struct sockaddr *addr, m->m_pkthdr.flowid = hash_val; M_HASHTYPE_SET(m, hash_type); } -#endif } -#ifdef RSS /* * Don't override with the inp cached flowid value. * |
