Re: Configure VF trust mode in 4.9

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I patched the OFED code into the mainline, then found out that a newer
version of iproute is able to set the trust mode. There was a lot of
code to make this work through sysfs and was redundant which is why I
think it was left out. I do have another issue with the eswitch, but
I'll bug the netdev list instead.

Thanks,
----------------
Robert LeBlanc
PGP Fingerprint 79A2 9CA4 6CC4 45DD A904  C70E E654 3BB2 FA62 B9F1


On Tue, Apr 18, 2017 at 2:36 PM, Robert LeBlanc <robert@xxxxxxxxxxxxx> wrote:
> After looking at the OFED 3.4 code compared to the mainline code, it
> seems that the 4.9.x eswitch.c contains everything needed to function
> properly, but the sriov.c doesn't have the necessary bits to call
> mlx5_eswitch_set_vport_spoofchk() or mlx5_eswitch_set_vport_trust()
> like the OFED code has.
>
> However, I can toggle the spoofchk using `ip link set eth0 vf 0
> spoofchk off|on`, but only after I set a mac address on the VF. It
> seems that the autogenerated mac on the VF isn't good enough for the
> spoofchk command. ([13904.771229] mlx5_core 0000:81:00.0:
> esw_vport_ingress_config:1222:(pid 17753): vport[1] configure ingress
> rules failed, illegal mac with spoofchk)
>
> Running `ip link set eth0 vf 0 trust on` gives: Command line is not
> complete. Try option "help"
>
> I don't know if mainline has gone a different way to configuring
> netdevs from what OFED is using. I seem to remember seeing some change
> to configuring netdevs on the mailing list in the last couple of
> months.
> ----------------
> Robert LeBlanc
> PGP Fingerprint 79A2 9CA4 6CC4 45DD A904  C70E E654 3BB2 FA62 B9F1
>
>
> On Tue, Apr 18, 2017 at 1:39 PM, Majd Dibbiny <majd@xxxxxxxxxxxx> wrote:
>>
>>> On Apr 18, 2017, at 8:57 PM, Robert LeBlanc <robert@xxxxxxxxxxxxx> wrote:
>>>
>>> We have run across how to set the VFs on a ConnectX-4 adapter with
>>> OFED 3.3 [0]. We are trying to do this without OFED in the 4.9.21
>>> kernel. From what I can tell, the ability to add the appropriate rules
>>> into the on-card switch were added into 4.9-rc1
>>> (drivers/net/ethernet/mellanox/mlx5/core/eswitch.c). I just can't
>>> figure out how to enable the settings as the /sys paths don't exist
>>> and the `ip` command doesn't take the trust mode. Can someone give us
>>> a push in the right direction?
>> Added more people that can help..
>>>
>>> [0] https://community.mellanox.com/docs/DOC-2473
>>>
>>> Thanks,
>>> ----------------
>>> Robert LeBlanc
>>> PGP Fingerprint 79A2 9CA4 6CC4 45DD A904  C70E E654 3BB2 FA62 B9F1
>>> --
>>> To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
>>> the body of a message to majordomo@xxxxxxxxxxxxxxx
>>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux