[LU-9667] LNet Kernel/Userspace Interface Created: 14/Jun/17  Updated: 06/Dec/20

Status: Open
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Minor
Reporter: Sonia Sharma (Inactive) Assignee: Sonia Sharma (Inactive)
Resolution: Unresolved Votes: 0
Labels: None

Issue Links:
Blocker
is blocked by LU-12312 sanity-sec: test_31: 'network' mount ... Reopened
Gantt End to End
has to be finished together with LUDOC-437 LNet Kernel/Userspace Interface Docum... Open
Related
is related to LU-5960 Add ability to get peer and connectio... Open
is related to LU-8066 Move lustre procfs handling to sysfs ... Open
is related to LU-10756 Send Uevents for interesting Lustre c... Open
is related to LU-9680 Improve the user land to kernel space... In Progress
Rank (Obsolete): 9223372036854775807

 Description   

LNetCtl commands are used to pull information from LNet and display them in YAML format. 

Also a decision is made to use sysfs for pulling simple key/value pair related information rom kernel and IOCTL for more complex operations. So the new LNetCtl commands will be added based on this.

This ticket will track the progress on adding the sysfs infrastructure and the new LNetCtl commands.



 Comments   
Comment by James A Simmons [ 14/Jun/17 ]

Besides the sysfs work one of the things asked by the linux kernel maintainers is to look to moving from ioctls to the netlink api. I have started to explore this avenue.

Comment by James A Simmons [ 20/Jun/17 ]

l looked over your document. I don't think you mean for your stats files to all module parameters do you? You will instead need to create

/sys/fs/lnet/...

A nice effect of having /sys/fs/lnet/ko2inlnd is that we can link in the tunables that are module parameters as well.

Comment by Amir Shehata (Inactive) [ 20/Jun/17 ]

James, thanks. I'll update the doc. I'm looking into a way of making the wiki document public, so that it's easier for changes to be visible outside Intel.

Comment by Amir Shehata (Inactive) [ 23/Jun/17 ]

James, Olaf, the Sysfs Requirements doc has been updated. It's now accessible from here:
https://wiki.hpdd.intel.com/pages/viewpage.action?pageId=65700164

You should be able to add comments. The doc should be available for anonymous access as well.

Comment by Gerrit Updater [ 22/Sep/17 ]

Sonia Sharma (sonia.sharma@intel.com) uploaded a new patch: https://review.whamcloud.com/29163
Subject: LU-9667 lnet: Generic helper functions for sysfs
Project: fs/lustre-release
Branch: lnet-sysfs
Current Patch Set: 1
Commit: 8a82599e69f5ee2531f050710b444bff3114105c

Comment by Gerrit Updater [ 22/Sep/17 ]

Sonia Sharma (sonia.sharma@intel.com) uploaded a new patch: https://review.whamcloud.com/29164
Subject: LU-9667 lnet: Add o2iblnd peer sysfs structure
Project: fs/lustre-release
Branch: lnet-sysfs
Current Patch Set: 1
Commit: 78fdcd0331028fc5e88b1962ff8f9682c9fe829a

Comment by Gerrit Updater [ 06/Oct/17 ]

Sonia Sharma (sonia.sharma@intel.com) uploaded a new patch: https://review.whamcloud.com/29353
Subject: LU-9667 lnet: Userspace control show lnd peer structure
Project: fs/lustre-release
Branch: lnet-sysfs
Current Patch Set: 1
Commit: 2604b6f799b1c4a38ec559de0fb877330f5b6a5d

Comment by Gerrit Updater [ 07/Feb/18 ]

Sonia Sharma (sonia.sharma@intel.com) uploaded a new patch: https://review.whamcloud.com/31213
Subject: LU-9667 lnet: Userspace control show lnd peer structure
Project: fs/lustre-release
Branch: lnet-sysfs
Current Patch Set: 1
Commit: b095e8d013f95f482aba593866e0d9364721e75f

Comment by Gerrit Updater [ 03/Mar/18 ]

Sonia Sharma (sonia.sharma@intel.com) uploaded a new patch: https://review.whamcloud.com/31503
Subject: LU-9667 lnet: Add o2iblnd connections sysfs structure
Project: fs/lustre-release
Branch: lnet-sysfs
Current Patch Set: 1
Commit: 24cbcf492a3820ef457b7f6e6aa83a4eb97f8ffb

Comment by Gerrit Updater [ 15/Mar/18 ]

Sonia Sharma (sonia.sharma@intel.com) uploaded a new patch: https://review.whamcloud.com/31653
Subject: LU-9667 lnet: Userspace control to show lnd connections
Project: fs/lustre-release
Branch: lnet-sysfs
Current Patch Set: 1
Commit: db4c64d7e0a4f0503601023512dadb2ebf523856

Comment by Gerrit Updater [ 22/Mar/18 ]

Sonia Sharma (sonia.sharma@intel.com) uploaded a new patch: https://review.whamcloud.com/31744
Subject: LU-9667 lnet: Add LNet net sysfs structure
Project: fs/lustre-release
Branch: lnet-sysfs
Current Patch Set: 1
Commit: e8a7cae5890df6496c0f448bd4c5b32c7093c86c

Comment by Gerrit Updater [ 30/May/18 ]

Sonia Sharma (sonia.sharma@intel.com) uploaded a new patch: https://review.whamcloud.com/32579
Subject: LU-9667 lnet: Add LNet peer sysfs structure
Project: fs/lustre-release
Branch: lnet-sysfs
Current Patch Set: 1
Commit: 45101d4cc68222af27468b1c3cd233544582bafd

Comment by Gerrit Updater [ 08/Jun/18 ]

Sonia Sharma (sonia.sharma@intel.com) uploaded a new patch: https://review.whamcloud.com/32664
Subject: LU-9667 lnet: Add new structs for sysfs LND APIs
Project: fs/lustre-release
Branch: lnet-sysfs
Current Patch Set: 1
Commit: cf71d6d3fba744d771cc534bcff4f08784600614

Comment by Gerrit Updater [ 05/Jul/18 ]

Sonia Sharma (sharmaso@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/32786
Subject: LU-9667 lnet: Userspace control to show lnet ni stats
Project: fs/lustre-release
Branch: lnet-sysfs
Current Patch Set: 1
Commit: 712be994a4b4ca057d67ed63013d4260b1900c69

Comment by Gerrit Updater [ 22/Oct/18 ]

Sonia Sharma (sharmaso@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/33421
Subject: LU-9667 lnet: Userspace control to show lnd conn stats
Project: fs/lustre-release
Branch: lnet-sysfs
Current Patch Set: 1
Commit: b029af4ee79aa73c3457e9d973184067c7c06518

Comment by Gerrit Updater [ 05/Nov/18 ]

Sonia Sharma (sharmaso@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/33583
Subject: LU-9667 lnet: Add default network interface if not provided
Project: fs/lustre-release
Branch: lnet-sysfs
Current Patch Set: 1
Commit: 2bfeee24fb39e0979c12fa91ddb4cb3ecf84bfd2

Comment by Gerrit Updater [ 24/Apr/19 ]

Sonia Sharma (sharmaso@whamcloud.com) merged in patch https://review.whamcloud.com/29163/
Subject: LU-9667 lnet: Generic helper functions for sysfs
Project: fs/lustre-release
Branch: lnet-sysfs
Current Patch Set:
Commit: 728edd91b8b1e22ad1c4df928dbf811e3c4ee60c

Comment by Gerrit Updater [ 24/Apr/19 ]

Sonia Sharma (sharmaso@whamcloud.com) merged in patch https://review.whamcloud.com/33583/
Subject: LU-9667 lnet: Error out on missing network device information
Project: fs/lustre-release
Branch: lnet-sysfs
Current Patch Set:
Commit: 2e03d76ed15031bbf79effb866debdbfb334236e

Comment by Gerrit Updater [ 24/Apr/19 ]

Sonia Sharma (sharmaso@whamcloud.com) merged in patch https://review.whamcloud.com/31744/
Subject: LU-9667 lnet: Add LNet net sysfs structure
Project: fs/lustre-release
Branch: lnet-sysfs
Current Patch Set:
Commit: 0bcd24575bad5e1e2db387360a35055368705303

Comment by Gerrit Updater [ 24/Apr/19 ]

Sonia Sharma (sharmaso@whamcloud.com) merged in patch https://review.whamcloud.com/32786/
Subject: LU-9667 lnet: Userspace control to show lnet ni stats
Project: fs/lustre-release
Branch: lnet-sysfs
Current Patch Set:
Commit: 2cf017f71df28f4baac89a892b5f11f5beec831e

Comment by Gerrit Updater [ 24/Apr/19 ]

Sonia Sharma (sharmaso@whamcloud.com) merged in patch https://review.whamcloud.com/32579/
Subject: LU-9667 lnet: Add LNet peer sysfs structure
Project: fs/lustre-release
Branch: lnet-sysfs
Current Patch Set:
Commit: 385a5a9234746767a79f0ff311f4a4cfbb43c398

Comment by Gerrit Updater [ 24/Apr/19 ]

Sonia Sharma (sharmaso@whamcloud.com) merged in patch https://review.whamcloud.com/32723/
Subject: LU-9667 lnet: Userspace control to show lnet peer stats
Project: fs/lustre-release
Branch: lnet-sysfs
Current Patch Set:
Commit: 9a05fb2c0c5fbbd2c71058b174ea3ece2d4d3574

Comment by Gerrit Updater [ 24/Apr/19 ]

Sonia Sharma (sharmaso@whamcloud.com) merged in patch https://review.whamcloud.com/32664/
Subject: LU-9667 lnet: Add new structs for sysfs LND APIs
Project: fs/lustre-release
Branch: lnet-sysfs
Current Patch Set:
Commit: 478c99c5fe89d3ac2e6183570d27741bae250dba

Comment by Gerrit Updater [ 24/Apr/19 ]

Sonia Sharma (sharmaso@whamcloud.com) merged in patch https://review.whamcloud.com/29164/
Subject: LU-9667 lnet: Add o2iblnd peer sysfs structure
Project: fs/lustre-release
Branch: lnet-sysfs
Current Patch Set:
Commit: d35cd84f577d1ff92ed2c6a901a061023a3316f1

Comment by Gerrit Updater [ 24/Apr/19 ]

Sonia Sharma (sharmaso@whamcloud.com) merged in patch https://review.whamcloud.com/31503/
Subject: LU-9667 lnet: Add o2iblnd connection sysfs structure
Project: fs/lustre-release
Branch: lnet-sysfs
Current Patch Set:
Commit: 45fe6a4e91bd35a369e0d985036e687eab795581

Comment by Gerrit Updater [ 24/Apr/19 ]

Sonia Sharma (sharmaso@whamcloud.com) merged in patch https://review.whamcloud.com/29353/
Subject: LU-9667 lnet: Userspace control to show lnd peer stats
Project: fs/lustre-release
Branch: lnet-sysfs
Current Patch Set:
Commit: 3b97d74c17d856c2e8fc9f4498859ce0c0406ac6

Comment by Gerrit Updater [ 24/Apr/19 ]

Sonia Sharma (sharmaso@whamcloud.com) merged in patch https://review.whamcloud.com/33421/
Subject: LU-9667 lnet: Userspace control to show lnd conn stats
Project: fs/lustre-release
Branch: lnet-sysfs
Current Patch Set:
Commit: fb9c538b7b8af7a49f8b6b2b8baf53f75be1c854

Comment by Gerrit Updater [ 07/May/19 ]

James Simmons (uja.ornl@yahoo.com) uploaded a new patch: https://review.whamcloud.com/34821
Subject: LU-9667 lnet: Generic helper functions for sysfs
Project: fs/linux-staging
Branch: lustre/lustre
Current Patch Set: 1
Commit: 5c1a1c35aae340a199f8e3a143f113c6ce16e49a

Comment by Gerrit Updater [ 07/May/19 ]

James Simmons (uja.ornl@yahoo.com) uploaded a new patch: https://review.whamcloud.com/34822
Subject: LU-9667 lnet: Error out on missing network device information
Project: fs/linux-staging
Branch: lustre/lustre
Current Patch Set: 1
Commit: dd562d37a4b78aacd78192f7ade3149656e4d5f5

Comment by Gerrit Updater [ 07/May/19 ]

James Simmons (uja.ornl@yahoo.com) uploaded a new patch: https://review.whamcloud.com/34823
Subject: LU-9667 lnet: Add LNet net sysfs structure
Project: fs/linux-staging
Branch: lustre/lustre
Current Patch Set: 1
Commit: 5fe68ea9a342021c4f48c05b3299c1b9b59cee18

Comment by Gerrit Updater [ 07/May/19 ]

James Simmons (uja.ornl@yahoo.com) uploaded a new patch: https://review.whamcloud.com/34824
Subject: LU-9667 lnet: Add LNet peer sysfs structure
Project: fs/linux-staging
Branch: lustre/lustre
Current Patch Set: 1
Commit: 67ae871bf70d22f2543b0a8aa61714da25683c8b

Comment by James A Simmons [ 08/May/19 ]

Push to linux client so Neil could help me debug the problem.

Comment by Gerrit Updater [ 13/May/19 ]

Sonia Sharma (sharmaso@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/34857
Subject: LU-9667 lnet: Create new strusture for sysfs peer kobjects
Project: fs/lustre-release
Branch: lnet-sysfs
Current Patch Set: 1
Commit: 6a4c242f367becff792b82b7a4628c14e1d1ee05

Comment by Gerrit Updater [ 30/May/19 ]

James Simmons (uja.ornl@yahoo.com) uploaded a new patch: https://review.whamcloud.com/34994
Subject: LU-9667 lnet: test idea for canf-sanity failure
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: a4fe142f3c5bd9af58b03f4bbc6229777c3320bb

Comment by Gerrit Updater [ 06/Dec/20 ]

James Simmons (jsimmons@infradead.org) uploaded a new patch: https://review.whamcloud.com/40878
Subject: LU-9667 build: add real versioning to liblustreapi
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: b7362594447b36652c434a5eeb661dd325d8e7f7

Generated at Sat Feb 10 02:28:10 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.