Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F164220810
D1646.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
868 B
Referenced Files
None
Subscribers
None
D1646.diff
View Options
Index: sys/dev/ixl/if_ixl.c
===================================================================
--- sys/dev/ixl/if_ixl.c
+++ sys/dev/ixl/if_ixl.c
@@ -5518,6 +5518,22 @@
}
static void
+ixl_vf_reset_msg(struct ixl_pf *pf, struct ixl_vf *vf, void *msg,
+ uint16_t msg_size)
+{
+
+ if (msg_size != 0) {
+ i40e_send_vf_nack(pf, vf, I40E_VIRTCHNL_OP_RESET_VF,
+ I40E_ERR_PARAM);
+ return;
+ }
+
+ ixl_reset_vf(pf, vf);
+
+ /* No response to a reset message. */
+}
+
+static void
ixl_handle_vf_msg(struct ixl_pf *pf, struct i40e_arq_event_info *event)
{
struct ixl_vf *vf;
@@ -5545,6 +5561,9 @@
case I40E_VIRTCHNL_OP_VERSION:
ixl_vf_version_msg(pf, vf, msg, msg_size);
break;
+ case I40E_VIRTCHNL_OP_RESET_VF:
+ ixl_vf_reset_msg(pf, vf, msg, msg_size);
+ break;
default:
i40e_send_vf_nack(pf, vf, opcode, I40E_ERR_NOT_IMPLEMENTED);
break;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jul 30, 6:52 PM (1 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35752800
Default Alt Text
D1646.diff (868 B)
Attached To
Mode
D1646: Add support for RESET_VF VC message
Attached
Detach File
Event Timeline
Log In to Comment