Author: mw Date: Thu Nov 9 12:39:26 2017 New Revision: 325587 URL: https://svnweb.freebsd.org/changeset/base/325587
Log: Fix comparing L3 type with L4 enum on RX hash in ENA driver This bug wasn't impacting anything, because both enums are indicating the same value, but it could cause a problem on API change. Submitted by: Michal Krawczyk <m...@semihalf.com> Reviewed by: byenduri_gmail.com Obtained from: Semihalf Sponsored by: Amazon, Inc. Differential Revision: https://reviews.freebsd.org/D12867 Modified: head/sys/dev/ena/ena.c Modified: head/sys/dev/ena/ena.c ============================================================================== --- head/sys/dev/ena/ena.c Thu Nov 9 12:37:19 2017 (r325586) +++ head/sys/dev/ena/ena.c Thu Nov 9 12:39:26 2017 (r325587) @@ -1400,7 +1400,7 @@ ena_rx_hash_mbuf(struct ena_ring *rx_ring, struct ena_ mbuf->m_pkthdr.flowid = ena_rx_ctx->hash; if (ena_rx_ctx->frag && - (ena_rx_ctx->l3_proto != ENA_ETH_IO_L4_PROTO_UNKNOWN)) { + (ena_rx_ctx->l3_proto != ENA_ETH_IO_L3_PROTO_UNKNOWN)) { M_HASHTYPE_SET(mbuf, M_HASHTYPE_OPAQUE_HASH); return; } _______________________________________________ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"