PASST networking with onboard NIC

2024-11-14 Thread Lytle, Ben
Hello, Laurent!

I have a question about the proper way to use passt networking with a machine's 
onboard NIC (ie. without specifying a -device).
Is there a way to connect -netdev 
stream,id=net0,server=off,addr.type=unix,addr.path=/tmp/passt_1.socket to an 
onboard nic using -nic ?

Thanks!
Ben


Re: PASST networking with onboard NIC

2024-11-14 Thread Lytle, Ben
>> I have a question about the proper way to use passt networking with a 
>> machine's onboard
>> NIC (ie. without specifying a |-device|).
>> Is there a way to connect |-netdev 
>> stream,id=net0,server=off,addr.type=unix,addr.path=/
>> tmp/passt_1.socket| to an onboard nic using |-nic| ?
>
> No, I don't think the -nic option is able to parse the stream backend 
> parameters (like
> "addr.type", "addr.path", ...).

I figured that was the case, as I've tried many combinations for those options.
I appreciate the confirmation!

Ben

____________
From: Laurent Vivier 
Sent: Thursday, November 14, 2024 11:57 AM
To: Lytle, Ben 
Cc: qemu-discuss@nongnu.org 
Subject: Re: PASST networking with onboard NIC

On 14/11/2024 17:44, Lytle, Ben wrote:
> Hello, Laurent!

Hi Ben,

>
> I have a question about the proper way to use passt networking with a 
> machine's onboard
> NIC (ie. without specifying a |-device|).
> Is there a way to connect |-netdev 
> stream,id=net0,server=off,addr.type=unix,addr.path=/
> tmp/passt_1.socket| to an onboard nic using |-nic| ?

No, I don't think the -nic option is able to parse the stream backend 
parameters (like
"addr.type", "addr.path", ...).

Thanks,
Laurent




Re: PASST networking with onboard NIC

2024-11-21 Thread Lytle, Ben
>>> I have a question about the proper way to use passt networking with a 
>>> machine's onboard
>>> NIC (ie. without specifying a |-device|).
>>> Is there a way to connect |-netdev 
>>> stream,id=net0,server=off,addr.type=unix,addr.path=/
>>> tmp/passt_1.socket| to an onboard nic using |-nic| ?
>>
>> No, I don't think the -nic option is able to parse the stream backend 
>> parameters (like
>> "addr.type", "addr.path", ...).
>>
>> I figured that was the case, as I've tried many combinations for those 
>> options.
>> I appreciate the confirmation!
>
> I think you might be able to work-around the problem by using the legacy 
> "-net nic" option:
>
> -netdev 
> stream,id=net0,server=off,addr.type=unix,addr.path=/tmp/passt_1.socket -net 
> nic,netdev=net0

Thanks for the suggestion, Thomas. I tried that out, but still no luck.
I guess it's not possible to do this in qemu quite yet.

Ben