Changeset View
Changeset View
Standalone View
Standalone View
stable/11/sys/dev/ixgbe/if_sriov.c
Show First 20 Lines • Show All 614 Lines • ▼ Show 20 Lines | ixgbe_process_vf_msg(struct adapter *adapter, struct ixgbe_vf *vf) | ||||
default: | default: | ||||
ixgbe_send_vf_nack(adapter, vf, msg[0]); | ixgbe_send_vf_nack(adapter, vf, msg[0]); | ||||
} | } | ||||
} /* ixgbe_process_vf_msg */ | } /* ixgbe_process_vf_msg */ | ||||
/* Tasklet for handling VF -> PF mailbox messages */ | /* Tasklet for handling VF -> PF mailbox messages */ | ||||
void | void | ||||
ixgbe_handle_mbx(void *context, int pending) | ixgbe_handle_mbx(void *context) | ||||
{ | { | ||||
struct adapter *adapter; | struct adapter *adapter; | ||||
struct ixgbe_hw *hw; | struct ixgbe_hw *hw; | ||||
struct ixgbe_vf *vf; | struct ixgbe_vf *vf; | ||||
int i; | int i; | ||||
adapter = context; | adapter = context; | ||||
hw = &adapter->hw; | hw = &adapter->hw; | ||||
▲ Show 20 Lines • Show All 261 Lines • ▼ Show 20 Lines | ixgbe_add_vf(device_t dev, u16 vfnum, const nvlist_t *config) | ||||
IXGBE_CORE_UNLOCK(adapter); | IXGBE_CORE_UNLOCK(adapter); | ||||
return (0); | return (0); | ||||
} /* ixgbe_add_vf */ | } /* ixgbe_add_vf */ | ||||
#else | #else | ||||
void | void | ||||
ixgbe_handle_mbx(void *context, int pending) | ixgbe_handle_mbx(void *context) | ||||
{ | { | ||||
UNREFERENCED_2PARAMETER(context, pending); | UNREFERENCED_1PARAMETER(context); | ||||
} /* ixgbe_handle_mbx */ | } /* ixgbe_handle_mbx */ | ||||
inline int | inline int | ||||
ixgbe_vf_que_index(int mode, int vfnum, int num) | ixgbe_vf_que_index(int mode, int vfnum, int num) | ||||
{ | { | ||||
UNREFERENCED_2PARAMETER(mode, vfnum); | UNREFERENCED_2PARAMETER(mode, vfnum); | ||||
return num; | return num; | ||||
} /* ixgbe_vf_que_index */ | } /* ixgbe_vf_que_index */ | ||||
#endif | #endif |