summaryrefslogtreecommitdiff
path: root/sys/dev/igc
diff options
context:
space:
mode:
authorJustin Hibbits <jhibbits@FreeBSD.org>2022-08-19 19:48:39 +0000
committerJustin Hibbits <jhibbits@FreeBSD.org>2022-12-21 20:36:59 +0000
commitec22a3a259193685afaea1667a39266264c65fd3 (patch)
tree001cc297a12a4661d66e343101fa0063374e6aae /sys/dev/igc
parent79422a716d7cc7857e8b94ccea98ff68b38f6324 (diff)
Diffstat (limited to 'sys/dev/igc')
-rw-r--r--sys/dev/igc/if_igc.c16
-rw-r--r--sys/dev/igc/if_igc.h2
2 files changed, 9 insertions, 9 deletions
diff --git a/sys/dev/igc/if_igc.c b/sys/dev/igc/if_igc.c
index a98f0a78f474..60f796010232 100644
--- a/sys/dev/igc/if_igc.c
+++ b/sys/dev/igc/if_igc.c
@@ -797,7 +797,7 @@ igc_if_init(if_ctx_t ctx)
{
struct igc_adapter *adapter = iflib_get_softc(ctx);
if_softc_ctx_t scctx = adapter->shared;
- struct ifnet *ifp = iflib_get_ifp(ctx);
+ if_t ifp = iflib_get_ifp(ctx);
struct igc_tx_queue *tx_que;
int i;
@@ -1079,7 +1079,7 @@ static int
igc_if_set_promisc(if_ctx_t ctx, int flags)
{
struct igc_adapter *adapter = iflib_get_softc(ctx);
- struct ifnet *ifp = iflib_get_ifp(ctx);
+ if_t ifp = iflib_get_ifp(ctx);
u32 reg_rctl;
int mcnt = 0;
@@ -1133,7 +1133,7 @@ static void
igc_if_multi_set(if_ctx_t ctx)
{
struct igc_adapter *adapter = iflib_get_softc(ctx);
- struct ifnet *ifp = iflib_get_ifp(ctx);
+ if_t ifp = iflib_get_ifp(ctx);
u8 *mta; /* Multicast array memory */
u32 reg_rctl = 0;
int mcnt = 0;
@@ -1762,7 +1762,7 @@ igc_initialize_rss_mapping(struct igc_adapter *adapter)
static int
igc_setup_interface(if_ctx_t ctx)
{
- struct ifnet *ifp = iflib_get_ifp(ctx);
+ if_t ifp = iflib_get_ifp(ctx);
struct igc_adapter *adapter = iflib_get_softc(ctx);
if_softc_ctx_t scctx = adapter->shared;
@@ -1991,7 +1991,7 @@ igc_initialize_receive_unit(if_ctx_t ctx)
{
struct igc_adapter *adapter = iflib_get_softc(ctx);
if_softc_ctx_t scctx = adapter->shared;
- struct ifnet *ifp = iflib_get_ifp(ctx);
+ if_t ifp = iflib_get_ifp(ctx);
struct igc_hw *hw = &adapter->hw;
struct igc_rx_queue *que;
int i;
@@ -2060,7 +2060,7 @@ igc_initialize_receive_unit(if_ctx_t ctx)
}
psize = scctx->isc_max_frame_size;
/* are we on a vlan? */
- if (ifp->if_vlantrunk != NULL)
+ if (if_vlantrunkinuse(ifp))
psize += VLAN_TAG_SIZE;
IGC_WRITE_REG(&adapter->hw, IGC_RLPML, psize);
} else {
@@ -2386,7 +2386,7 @@ static uint64_t
igc_if_get_counter(if_ctx_t ctx, ift_counter cnt)
{
struct igc_adapter *adapter = iflib_get_softc(ctx);
- struct ifnet *ifp = iflib_get_ifp(ctx);
+ if_t ifp = iflib_get_ifp(ctx);
switch (cnt) {
case IFCOUNTER_COLLISIONS:
@@ -2903,7 +2903,7 @@ static void
igc_print_debug_info(struct igc_adapter *adapter)
{
device_t dev = iflib_get_dev(adapter->ctx);
- struct ifnet *ifp = iflib_get_ifp(adapter->ctx);
+ if_t ifp = iflib_get_ifp(adapter->ctx);
struct tx_ring *txr = &adapter->tx_queues->txr;
struct rx_ring *rxr = &adapter->rx_queues->rxr;
diff --git a/sys/dev/igc/if_igc.h b/sys/dev/igc/if_igc.h
index 86a02266a81c..545005f55f4c 100644
--- a/sys/dev/igc/if_igc.h
+++ b/sys/dev/igc/if_igc.h
@@ -336,7 +336,7 @@ struct igc_rx_queue {
/* Our adapter structure */
struct igc_adapter {
- struct ifnet *ifp;
+ if_t ifp;
struct igc_hw hw;
if_softc_ctx_t shared;