Ira Weiny wrote:
Jason Gunthorpe<jguntho...@obsidianresearch.com> wrote:
How do you feel about having counters_ext appear in ethernet mode and
disappear in IB mode?
That might get complicated with ports which can be either mode.
Ira (reviving this thread),
At the ib core level, the link layer sysfs attribute is read only.
At the mlx4 VPI level support, a port has given link layer at certain
point of time, and further, AFAIK, this isn't something that can be
changed in the life-cycle of the ib device exported by mlx4_ib, which is
deleted/re-added when the port link layer change, see commit
7ff93f8b7ecbc36e7ffc5c11a61643821c1bfee5 which states " When the type of
a port is changed, all mlx4 interfaces are unregistered, and then
registered again with the new port types"
Still, this patch makes the decision when the ib device is added, so you
have a point here w.r.t to future devices which could change their link
layer at run time, I'll look on that.
Or.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html