Page MenuHomeFreeBSD

D46708.id143504.diff
No OneTemporary

D46708.id143504.diff

Index: sys/dev/ixgbe/if_sriov.c
===================================================================
--- sys/dev/ixgbe/if_sriov.c
+++ sys/dev/ixgbe/if_sriov.c
@@ -100,7 +100,7 @@
if (vf->flags & IXGBE_VF_CTS)
msg |= IXGBE_VT_MSGTYPE_CTS;
- sc->hw.mbx.ops.write(&sc->hw, &msg, 1, vf->pool);
+ sc->hw.mbx.ops[0].write(&sc->hw, &msg, 1, vf->pool);
}
static inline void
@@ -374,7 +374,7 @@
resp[0] = IXGBE_VF_RESET | ack | IXGBE_VT_MSGTYPE_CTS;
bcopy(vf->ether_addr, &resp[1], ETHER_ADDR_LEN);
resp[3] = hw->mac.mc_filter_type;
- hw->mbx.ops.write(hw, resp, IXGBE_VF_PERMADDR_MSG_LEN, vf->pool);
+ hw->mbx.ops[0].write(hw, resp, IXGBE_VF_PERMADDR_MSG_LEN, vf->pool);
} /* ixgbe_vf_reset_msg */
@@ -565,7 +565,7 @@
resp[IXGBE_VF_TRANS_VLAN] = (vf->default_vlan != 0);
resp[IXGBE_VF_DEF_QUEUE] = 0;
- hw->mbx.ops.write(hw, resp, IXGBE_VF_GET_QUEUES_RESP_LEN, vf->pool);
+ hw->mbx.ops[0].write(hw, resp, IXGBE_VF_GET_QUEUES_RESP_LEN, vf->pool);
} /* ixgbe_vf_get_queues */
@@ -582,7 +582,7 @@
hw = &sc->hw;
- error = hw->mbx.ops.read(hw, msg, IXGBE_VFMAILBOX_SIZE, vf->pool);
+ error = hw->mbx.ops[0].read(hw, msg, IXGBE_VFMAILBOX_SIZE, vf->pool);
if (error != 0)
return;
@@ -643,13 +643,13 @@
vf = &sc->vfs[i];
if (vf->flags & IXGBE_VF_ACTIVE) {
- if (hw->mbx.ops.check_for_rst(hw, vf->pool) == 0)
+ if (hw->mbx.ops[0].check_for_rst(hw, vf->pool) == 0)
ixgbe_process_vf_reset(sc, vf);
- if (hw->mbx.ops.check_for_msg(hw, vf->pool) == 0)
+ if (hw->mbx.ops[0].check_for_msg(hw, vf->pool) == 0)
ixgbe_process_vf_msg(ctx, vf);
- if (hw->mbx.ops.check_for_ack(hw, vf->pool) == 0)
+ if (hw->mbx.ops[0].check_for_ack(hw, vf->pool) == 0)
ixgbe_process_vf_ack(sc, vf);
}
}

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 17, 7:26 AM (3 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14672503
Default Alt Text
D46708.id143504.diff (1 KB)

Event Timeline