aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristof Provost <kp@FreeBSD.org>2022-05-07 14:01:13 +0000
committerKristof Provost <kp@FreeBSD.org>2022-05-14 09:10:19 +0000
commitf4e4c5c4c22f9c902125fc8a1dcc38560b2687b0 (patch)
tree2b1604826c282294b79bc737723fa9e0fa9b0655
parent2e6f247ca49bf21deb3f6300d6da29544785a20e (diff)
in_rss: fix set but not used warning
If 'options RSS' is set. MFC after: 1 week Sponsored by: Orange Business Services (cherry picked from commit 017e7d0390870061372f8f708dcbff612983f97a)
-rw-r--r--sys/netinet/in_rss.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/netinet/in_rss.c b/sys/netinet/in_rss.c
index 05659b97fe7c..e73d2d236f92 100644
--- a/sys/netinet/in_rss.c
+++ b/sys/netinet/in_rss.c
@@ -215,7 +215,6 @@ rss_mbuf_software_hash_v4(const struct mbuf *m, int dir, uint32_t *hashval,
const struct ip *ip;
const struct tcphdr *th;
const struct udphdr *uh;
- uint32_t flowid;
uint32_t flowtype;
uint8_t proto;
int iphlen;
@@ -266,7 +265,6 @@ rss_mbuf_software_hash_v4(const struct mbuf *m, int dir, uint32_t *hashval,
* then we shouldn't just "trust" the 2-tuple hash. We need
* a 4-tuple hash.
*/
- flowid = m->m_pkthdr.flowid;
flowtype = M_HASHTYPE_GET(m);
if (flowtype != M_HASHTYPE_NONE) {