aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ixl/ixl_txrx.c
diff options
context:
space:
mode:
authorMarius Strobl <marius@FreeBSD.org>2018-07-15 18:02:50 +0000
committerMarius Strobl <marius@FreeBSD.org>2018-07-15 18:02:50 +0000
commit52a05efab98e47fc1bff520b8f8ac759e0559c63 (patch)
treee919a9ef7ac2e52cec70f68eb74be857c2075a3a /sys/dev/ixl/ixl_txrx.c
parent2bd7c570517a89f86672b17298157ca8d02ced4a (diff)
downloadsrc-52a05efab98e47fc1bff520b8f8ac759e0559c63.tar.gz
src-52a05efab98e47fc1bff520b8f8ac759e0559c63.zip
As suggested by a comment in ixl_initialize_vsi(), use if_getcapenable(9)
instead of directly interrogating ifp->if_capenable. Reviewed by: erj (ixl_initialize_vsi()) Differential Revision: https://reviews.freebsd.org/D15720 (part of)
Notes
Notes: svn path=/head/; revision=336309
Diffstat (limited to 'sys/dev/ixl/ixl_txrx.c')
-rw-r--r--sys/dev/ixl/ixl_txrx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ixl/ixl_txrx.c b/sys/dev/ixl/ixl_txrx.c
index 9199f9ec6fc9..3994e16a3d16 100644
--- a/sys/dev/ixl/ixl_txrx.c
+++ b/sys/dev/ixl/ixl_txrx.c
@@ -687,7 +687,7 @@ ixl_isc_rxd_pkt_get(void *arg, if_rxd_info_t ri)
rxr->packets++;
rxr->rx_packets++;
- if ((vsi->ifp->if_capenable & IFCAP_RXCSUM) != 0)
+ if ((if_getcapenable(vsi->ifp) & IFCAP_RXCSUM) != 0)
ixl_rx_checksum(ri, status, error, ptype);
ri->iri_flowid = le32toh(cur->wb.qword0.hi_dword.rss);
ri->iri_rsstype = ixl_ptype_to_hash(ptype);