Thread (4 messages) flat view 4 messages, 2 authors, 2021-02-02

Re: [PATCH net-next RESEND 2/2] net/mlx5: E-Switch, Implement devlink port function cmds to control roce

From: Or Gerlitz <hidden>
Date: 2021-02-02 19:14:51
Also in: linux-rdma

On Tue, Feb 2, 2021 at 10:08 AM Yishai Hadas [off-list ref] wrote:
Implement devlink port function commands to enable / disable roce.
This is used to control the roce device capabilities.
[..]
quoted hunk ↗ jump to hunk
+++ b/drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
@@ -122,8 +122,9 @@ struct mlx5_vport_info {
        int                     link_state;
        u32                     min_rate;
        u32                     max_rate;
-       bool                    spoofchk;
-       bool                    trusted;
+       u8                      spoofchk: 1;
+       u8                      trusted: 1;
+       u8                      roce_enabled: 1;
 };
This struct has attributes which have e-switch vport affiliation where
roce enable/disable
is a property of the vhca function-over-the-e-wire -- it's that we do
something specific
in the e-switching to enforce  - sounds like a problematic location to
land the bit..
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help