Closed BijieXu closed 1 year ago
I step into the code execution with windbg, and here is the process: windbg.txt
We have fixed this problem by modifying the .inf file to allow creating multiple network interfaces. Close this ticket.
@BijieXu I realize this was a while ago but can you share what you modified in the INF to allow creating multiple network interfaces?
The NumberOfNetworkInterfaces keyword can be added to the INF to support multiple adapter creation: https://learn.microsoft.com/en-us/windows-hardware/drivers/netcx/inf-files-for-netadaptercx-client-drivers
@grimbeaver and @amrutha-chandramohan , exactly, just add "NumberOfNetworkInterfaces" to inf.
` nfp-win: update inf to support 2 ports on one device Add a registry entry 'NumberOfNetworkInterfaces' to specify the # of ports
Signed-off-by: Bijie Xu bijie.xu@corigine.com`
@amrutha-chandramohan and @BijieXu thanks that seems to do the trick.
Hi MS team,
I'm developing the NIC driver for our NIC adapter. Our card hardware has 1 PCIE device but 2 physical network ports.
In this case, we need to create a WDFDEVICE for the PCIE device, and 2 NETADAPTER instances on the WDFDevice to represent the 2 physical ports. I checked the official document and seems this mode is supported.
We are creating these items in the callback "EvtDriverDeviceAdd". We have no problem creating the WDFDEVICE, and the 1st NETADAPTER. But it return error when creating the 2nd NETADAPTER. the errno is "-2147483622" which is "STATUS_NO_MORE_ENTRIES". Is there anything wrong here?
Here is part of the code.