1. 13 Sep, 2018 2 commits
    • Arseny Maslennikov's avatar
      IB/ipoib: Use dev_port to expose network interface port numbers · 9b8b2a32
      Arseny Maslennikov authored
      Some InfiniBand network devices have multiple ports on the same PCI
      function. This initializes the `dev_port' sysfs field of those
      network interfaces with their port number.
      
      Prior to this the kernel erroneously used the `dev_id' sysfs
      field of those network interfaces to convey the port number to userspace.
      
      The use of `dev_id' was considered correct until Linux 3.15,
      when another field, `dev_port', was defined for this particular
      purpose and `dev_id' was reserved for distinguishing stacked ifaces
      (e.g: VLANs) with the same hardware address as their parent device.
      
      Similar fixes to net/mlx4_en and many other drivers, which started
      exporting this information through `dev_id' before 3.15, were accepted
      into the kernel 4 years ago.
      See 76a066f2 (`net/mlx4_en: Expose port number through sysfs').
      Signed-off-by: default avatarArseny Maslennikov <ar@cs.msu.ru>
      Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
      9b8b2a32
    • Arseny Maslennikov's avatar
      Documentation/ABI: document /sys/class/net/*/dev_port · 4c0b6534
      Arseny Maslennikov authored
      The sysfs field was introduced 4 years ago along with fixes to various
      drivers that erroneously used `dev_id' for that purpose, but it was not
      properly documented anywhere.
      See commit v3.14-rc3-739-g3f85944f.
      Signed-off-by: default avatarArseny Maslennikov <ar@cs.msu.ru>
      Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
      4c0b6534
  2. 12 Sep, 2018 12 commits
  3. 11 Sep, 2018 24 commits
  4. 06 Sep, 2018 2 commits