Skip to contentSkip to conversation

Does a VF know that it is "trusted"?

Intel-wired-lan Shannon Nelson 2 participants 5 messages May 15, 2018

lore
Share & tools
lore
#0 lore raw

If the admin has set the trusted attribute on a VF, e.g.
ip link set dev eth4 vf 1 trust on
does the vf know it is trusted?

Is there an accepted (and simple?) way for the VF to check for its trust level?

sln

Signature · 3 lines
==================================================
Shannon Nelson           shannon.nelson at oracle.com
Parents can't afford to be squeamish
#1 lore raw

For ixgbevf at least it isn't told it is "trusted" or not. But you could ask for something that would require it to be and based on the reply you should be able to infer.

-Don

Quoted 22 lines

-----Original Message-----
From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On Behalf Of Shannon Nelson
Sent: Tuesday, May 15, 2018 10:24 AM
To: Intel Wired LAN <[email protected]>
Subject: [Intel-wired-lan] Does a VF know that it is "trusted"?

If the admin has set the trusted attribute on a VF, e.g.
ip link set dev eth4 vf 1 trust on
does the vf know it is trusted?

Is there an accepted (and simple?) way for the VF to check for its trust level?

sln
--
==================================================
Shannon Nelson shannon.nelson at oracle.com
Parents can't afford to be squeamish
_______________________________________________
Intel-wired-lan mailing list
Intel-wired-lan at osuosl.org
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan

#2 lore raw

No, the intent is that the VF does not know its trusted or not. It asks and if it *is* trusted, then the PF grants the request. VF only knows if the request was granted or not. That is the current design anyway. Mitch can probably comment more.

Thanks,

Carolyn

Quoted 42 lines

-----Original Message-----
From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On Behalf Of Skidmore, Donald C
Sent: Tuesday, May 15, 2018 10:30 AM
To: Shannon Nelson <[email protected]>; Intel Wired LAN <intel- wired-lan at lists.osuosl.org>
Subject: Re: [Intel-wired-lan] Does a VF know that it is "trusted"?

For ixgbevf at least it isn't told it is "trusted" or not. But you could ask for something that would require it to be and based on the reply you should be able to infer.

-Don

Quoted 2 lines

-----Original Message-----
From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On

Behalf Of

Quoted 10 lines

Shannon Nelson
Sent: Tuesday, May 15, 2018 10:24 AM
To: Intel Wired LAN <[email protected]>
Subject: [Intel-wired-lan] Does a VF know that it is "trusted"?

If the admin has set the trusted attribute on a VF, e.g.
ip link set dev eth4 vf 1 trust on
does the vf know it is trusted?

Is there an accepted (and simple?) way for the VF to check for its trust

level?

Quoted 10 lines

sln
--
==================================================
Shannon Nelson shannon.nelson at oracle.com
Parents can't afford to be squeamish
_______________________________________________
Intel-wired-lan mailing list
Intel-wired-lan at osuosl.org
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan

_______________________________________________
Intel-wired-lan mailing list
Intel-wired-lan at osuosl.org
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan

#3 lore raw
Quoted 2 lines · Carolyn

No, the intent is that the VF does not know its trusted or not. It asks and if it *is* trusted, then the PF grants the request. VF only knows if the request was granted or not. That is the current design anyway. Mitch can probably comment more.

Thanks - that's what I thought, but wanted to be sure. The case I have in mind is where the VF might advertise additional netdev features if it knows it is trusted. Obviously, I'm thinking about IPsec offloads, but I would think this could apply to other features as well.

The problem I see is that right now, if IPsec offload capability is added to the VF, but only allowed when trusted, the VF must blindly advertise its support even if the PF is just going to NAK the request. That leads to a poor user experience.

Hmmm...

sln

Quoted 46 lines

Thanks,

Carolyn

Quoted 42 lines

-----Original Message-----
From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On Behalf Of Skidmore, Donald C
Sent: Tuesday, May 15, 2018 10:30 AM
To: Shannon Nelson <[email protected]>; Intel Wired LAN <intel- wired-lan at lists.osuosl.org>
Subject: Re: [Intel-wired-lan] Does a VF know that it is "trusted"?

For ixgbevf at least it isn't told it is "trusted" or not. But you could ask for something that would require it to be and based on the reply you should be able to infer.

-Don

Quoted 2 lines

-----Original Message-----
From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On

Behalf Of

Quoted 10 lines

Shannon Nelson
Sent: Tuesday, May 15, 2018 10:24 AM
To: Intel Wired LAN <[email protected]>
Subject: [Intel-wired-lan] Does a VF know that it is "trusted"?

If the admin has set the trusted attribute on a VF, e.g.
ip link set dev eth4 vf 1 trust on
does the vf know it is trusted?

Is there an accepted (and simple?) way for the VF to check for its trust

level?

Quoted 10 lines

sln
--
==================================================
Shannon Nelson shannon.nelson at oracle.com
Parents can't afford to be squeamish
_______________________________________________
Intel-wired-lan mailing list
Intel-wired-lan at osuosl.org
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan

_______________________________________________
Intel-wired-lan mailing list
Intel-wired-lan at osuosl.org
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan

#4 lore raw
Quoted 21 lines

-----Original Message-----
From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On Behalf Of Shannon Nelson
Sent: Tuesday, May 15, 2018 11:13 AM
To: Wyborny, Carolyn <[email protected]>; Skidmore, Donald C <[email protected]>; Intel Wired LAN <intel-wired-
lan at lists.osuosl.org>
Subject: Re: [Intel-wired-lan] Does a VF know that it is "trusted"?

Quoted 1 line · Carolyn

No, the intent is that the VF does not know its trusted or not. It asks and if it

*is* trusted, then the PF grants the request. VF only knows if the request was granted or not. That is the current design anyway. Mitch can probably comment more.

Quoted 1 line

Thanks - that's what I thought, but wanted to be sure. The case I have in mind is where the VF might advertise additional netdev features if it knows it is trusted. Obviously, I'm thinking about IPsec offloads, but I would think this could apply to other features as well.

Quoted 9 lines

The problem I see is that right now, if IPsec offload capability is added to the VF, but only allowed when trusted, the VF must blindly advertise its support even if the PF is just going to NAK the request. That leads to a poor user experience.

Hmmm...

sln

The VF could advertise it's supported until it gets a NAK on the related operations? Or some mechanism to check if a feature is enabled could be added?

Thanks,
Jake