Thread (5 messages) flat view 5 messages, 4 authors, 2018-10-12

RE: [PATCH net-next] hv_netvsc: fix vf serial matching with pci slot info

From: Vitaly Kuznetsov <vkuznets@redhat.com>
Date: 2018-10-12 06:27:51
Also in: lkml

Haiyang Zhang [off-list ref] writes:
quoted
-----Original Message-----
From: Haiyang Zhang <redacted>
Sent: Thursday, October 11, 2018 4:15 PM
To: davem@davemloft.net; netdev@vger.kernel.org
Cc: Haiyang Zhang <haiyangz@microsoft.com>; KY Srinivasan
[off-list ref]; Stephen Hemminger [off-list ref];
olaf@aepfle.de; vkuznets [off-list ref];
devel@linuxdriverproject.org; linux-kernel@vger.kernel.org
Subject: [PATCH net-next] hv_netvsc: fix vf serial matching with pci slot info

From: Haiyang Zhang <haiyangz@microsoft.com>

The VF device's serial number is saved as a string in PCI slot's kobj name, not
the slot->number. This patch corrects the netvsc driver, so the VF device can be
successfully paired with synthetic NIC.

Fixes: 00d7ddba1143 ("hv_netvsc: pair VF based on serial number")
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Thanks Stephen for the reminder -- I added the "reported-by" here:

Reported-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Thanks) 

The difference in the hack I sent to Stephen was that instead of using
kstrtou32() and checking the return value I opted for snprintf() and
doing strncmp().

-- 
Vitaly
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help