diff options
| author | Marius Strobl <marius@FreeBSD.org> | 2018-07-15 18:02:50 +0000 |
|---|---|---|
| committer | Marius Strobl <marius@FreeBSD.org> | 2018-07-15 18:02:50 +0000 |
| commit | 52a05efab98e47fc1bff520b8f8ac759e0559c63 (patch) | |
| tree | e919a9ef7ac2e52cec70f68eb74be857c2075a3a /sys/dev/ixl | |
| parent | 2bd7c570517a89f86672b17298157ca8d02ced4a (diff) | |
Notes
Diffstat (limited to 'sys/dev/ixl')
| -rw-r--r-- | sys/dev/ixl/ixl_pf_main.c | 3 | ||||
| -rw-r--r-- | sys/dev/ixl/ixl_txrx.c | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/ixl/ixl_pf_main.c b/sys/dev/ixl/ixl_pf_main.c index b529c6568e7e..5f6020343c36 100644 --- a/sys/dev/ixl/ixl_pf_main.c +++ b/sys/dev/ixl/ixl_pf_main.c @@ -1219,8 +1219,7 @@ ixl_initialize_vsi(struct ixl_vsi *vsi) /* Set VLAN receive stripping mode */ ctxt.info.valid_sections |= I40E_AQ_VSI_PROP_VLAN_VALID; ctxt.info.port_vlan_flags = I40E_AQ_VSI_PVLAN_MODE_ALL; - // TODO: Call function to get this cap bit, instead - if (vsi->ifp->if_capenable & IFCAP_VLAN_HWTAGGING) + if (if_getcapenable(vsi->ifp) & IFCAP_VLAN_HWTAGGING) ctxt.info.port_vlan_flags |= I40E_AQ_VSI_PVLAN_EMOD_STR_BOTH; else ctxt.info.port_vlan_flags |= I40E_AQ_VSI_PVLAN_EMOD_NOTHING; 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); |
