Similarly to r338257,338306 try to fold the two consecutive
#ifdef RSS section in udp_output() into one by moving a '}' outside of the conditional block. MFC after: 2 months Event: Waterloo Hackathon 2019
This commit is contained in:
parent
7115eaf80e
commit
f9a6e8d72f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=348060
@ -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.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user